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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for GraphQLProductAssignmentMissingError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for GraphQLProductAssignmentMissingErrorbuilder(GraphQLProductAssignmentMissingError template) create builder for GraphQLProductAssignmentMissingError instancecopyDeep()deepCopy(GraphQLProductAssignmentMissingError template) factory method to create a deep copy of GraphQLProductAssignmentMissingError@NotNull StringgetCode()One of the error codes that is listed on the Errors page.@NotNull @Valid ProductReferenceof()factory methodof(GraphQLProductAssignmentMissingError template) factory method to create a shallow copy GraphQLProductAssignmentMissingErrorvoidsetProduct(ProductReference product) static com.fasterxml.jackson.core.type.TypeReference<GraphQLProductAssignmentMissingError>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor 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:GraphQLErrorObjectOne of the error codes that is listed on the Errors page.
- Specified by:
getCodein interfaceGraphQLErrorObject- Returns:
- code
-
getProduct
- Returns:
- product
-
setProduct
- 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
-
copyDeep
GraphQLProductAssignmentMissingError copyDeep()- Specified by:
copyDeepin interfaceGraphQLErrorObject
-
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
-