Class GraphQLEditPreviewFailedErrorBuilder
java.lang.Object
com.commercetools.api.models.error.GraphQLEditPreviewFailedErrorBuilder
- All Implemented Interfaces:
Builder<GraphQLEditPreviewFailedError>
public class GraphQLEditPreviewFailedErrorBuilder
extends Object
implements Builder<GraphQLEditPreviewFailedError>
GraphQLEditPreviewFailedErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
GraphQLEditPreviewFailedError graphQLEditPreviewFailedError = GraphQLEditPreviewFailedError.builder()
.result(resultBuilder -> resultBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds GraphQLEditPreviewFailedError with checking for non-null required valuesbuilds GraphQLEditPreviewFailedError without checking for non-null required valuesState of the OrderEdit where thestagedActions
cannot be applied to the Order.Error-specific additional fields.of()
factory method for an instance of GraphQLEditPreviewFailedErrorBuilderof
(GraphQLEditPreviewFailedError template) create builder for GraphQLEditPreviewFailedError instanceresult
(OrderEditPreviewFailure result) State of the OrderEdit where thestagedActions
cannot be applied to the Order.State of the OrderEdit where thestagedActions
cannot be applied to the Order.Error-specific additional fields.State of the OrderEdit where thestagedActions
cannot be applied to the Order.
-
Constructor Details
-
GraphQLEditPreviewFailedErrorBuilder
public GraphQLEditPreviewFailedErrorBuilder()
-
-
Method Details
-
values
Error-specific additional fields.
- Parameters:
values
- properties to be set- Returns:
- Builder
-
addValue
Error-specific additional fields.
- Parameters:
key
- property namevalue
- property value- Returns:
- Builder
-
result
public GraphQLEditPreviewFailedErrorBuilder result(Function<OrderEditPreviewFailureBuilder, OrderEditPreviewFailureBuilder> builder) State of the OrderEdit where the
stagedActions
cannot be applied to the Order.- Parameters:
builder
- function to build the result value- Returns:
- Builder
-
withResult
public GraphQLEditPreviewFailedErrorBuilder withResult(Function<OrderEditPreviewFailureBuilder, OrderEditPreviewFailure> builder) State of the OrderEdit where the
stagedActions
cannot be applied to the Order.- Parameters:
builder
- function to build the result value- Returns:
- Builder
-
result
State of the OrderEdit where the
stagedActions
cannot be applied to the Order.- Parameters:
result
- value to be set- Returns:
- Builder
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getResult
State of the OrderEdit where the
stagedActions
cannot be applied to the Order.- Returns:
- result
-
build
builds GraphQLEditPreviewFailedError with checking for non-null required values- Specified by:
build
in interfaceBuilder<GraphQLEditPreviewFailedError>
- Returns:
- GraphQLEditPreviewFailedError
-
buildUnchecked
builds GraphQLEditPreviewFailedError without checking for non-null required values- Returns:
- GraphQLEditPreviewFailedError
-
of
factory method for an instance of GraphQLEditPreviewFailedErrorBuilder- Returns:
- builder
-
of
create builder for GraphQLEditPreviewFailedError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-