Class GraphQLProductAssignmentMissingErrorBuilder
java.lang.Object
com.commercetools.api.models.error.GraphQLProductAssignmentMissingErrorBuilder
- All Implemented Interfaces:
Builder<GraphQLProductAssignmentMissingError>
public class GraphQLProductAssignmentMissingErrorBuilder
extends Object
implements Builder<GraphQLProductAssignmentMissingError>
GraphQLProductAssignmentMissingErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
GraphQLProductAssignmentMissingError graphQLProductAssignmentMissingError = GraphQLProductAssignmentMissingError.builder()
.product(productBuilder -> productBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds GraphQLProductAssignmentMissingError with checking for non-null required valuesbuilds GraphQLProductAssignmentMissingError without checking for non-null required valuesReference to the Product for which the error was returned.Error-specific additional fields.of()
factory method for an instance of GraphQLProductAssignmentMissingErrorBuilderof
(GraphQLProductAssignmentMissingError template) create builder for GraphQLProductAssignmentMissingError instanceproduct
(ProductReference product) Reference to the Product for which the error was returned.Reference to the Product for which the error was returned.Error-specific additional fields.Reference to the Product for which the error was returned.
-
Constructor Details
-
GraphQLProductAssignmentMissingErrorBuilder
public GraphQLProductAssignmentMissingErrorBuilder()
-
-
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
-
product
public GraphQLProductAssignmentMissingErrorBuilder product(Function<ProductReferenceBuilder, ProductReferenceBuilder> builder) Reference to the Product for which the error was returned.
- Parameters:
builder
- function to build the product value- Returns:
- Builder
-
withProduct
public GraphQLProductAssignmentMissingErrorBuilder withProduct(Function<ProductReferenceBuilder, ProductReference> builder) Reference to the Product for which the error was returned.
- Parameters:
builder
- function to build the product value- Returns:
- Builder
-
product
Reference to the Product for which the error was returned.
- Parameters:
product
- value to be set- Returns:
- Builder
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getProduct
Reference to the Product for which the error was returned.
- Returns:
- product
-
build
builds GraphQLProductAssignmentMissingError with checking for non-null required values- Specified by:
build
in interfaceBuilder<GraphQLProductAssignmentMissingError>
- Returns:
- GraphQLProductAssignmentMissingError
-
buildUnchecked
builds GraphQLProductAssignmentMissingError without checking for non-null required values- Returns:
- GraphQLProductAssignmentMissingError
-
of
factory method for an instance of GraphQLProductAssignmentMissingErrorBuilder- Returns:
- builder
-
of
public static GraphQLProductAssignmentMissingErrorBuilder of(GraphQLProductAssignmentMissingError template) create builder for GraphQLProductAssignmentMissingError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-