Interface GraphQLProductAssignmentMissingError
- All Superinterfaces:
GraphQLErrorObject
Returned when a Product is not assigned to the Product Selection. The error is returned as a failed response either to the Set Variant Selection or to the Set Variant Exclusion update action.
Example to create an instance using the builder pattern
GraphQLProductAssignmentMissingError graphQLProductAssignmentMissingError = GraphQLProductAssignmentMissingError.builder()
.product(productBuilder -> productBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLProductAssignmentMissingError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLProductAssignmentMissingErrorbuilder
(GraphQLProductAssignmentMissingError template) create builder for GraphQLProductAssignmentMissingError instancedeepCopy
(GraphQLProductAssignmentMissingError template) factory method to create a deep copy of GraphQLProductAssignmentMissingError@NotNull String
getCode()
One of the error codes that is listed on the Errors page.@NotNull @Valid ProductReference
Reference to the Product for which the error was returned.of()
factory methodof
(GraphQLProductAssignmentMissingError template) factory method to create a shallow copy GraphQLProductAssignmentMissingErrorvoid
setProduct
(ProductReference product) Reference to the Product for which the error was returned.static com.fasterxml.jackson.core.type.TypeReference<GraphQLProductAssignmentMissingError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
setValue, values, withGraphQLErrorObject
-
Field Details
-
PRODUCT_ASSIGNMENT_MISSING
discriminator value for GraphQLProductAssignmentMissingError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
One of the error codes that is listed on the Errors page.
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Returns:
- code
-
getProduct
Reference to the Product for which the error was returned.
- Returns:
- product
-
setProduct
Reference to the Product for which the error was returned.
- Parameters:
product
- value to be set
-
of
factory method- Returns:
- instance of GraphQLProductAssignmentMissingError
-
of
factory method to create a shallow copy GraphQLProductAssignmentMissingError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static GraphQLProductAssignmentMissingError deepCopy(@Nullable GraphQLProductAssignmentMissingError template) factory method to create a deep copy of GraphQLProductAssignmentMissingError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLProductAssignmentMissingError- Returns:
- builder
-
builder
static GraphQLProductAssignmentMissingErrorBuilder builder(GraphQLProductAssignmentMissingError template) create builder for GraphQLProductAssignmentMissingError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLProductAssignmentMissingError
default <T> T withGraphQLProductAssignmentMissingError(Function<GraphQLProductAssignmentMissingError, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<GraphQLProductAssignmentMissingError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-