Interface ProductAssignmentMissingError
- All Superinterfaces:
ErrorObject
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
ProductAssignmentMissingError productAssignmentMissingError = ProductAssignmentMissingError.builder()
.message("{message}")
.product(productBuilder -> productBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductAssignmentMissingError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductAssignmentMissingErrorbuilder(ProductAssignmentMissingError template) create builder for ProductAssignmentMissingError instancecopyDeep()deepCopy(ProductAssignmentMissingError template) factory method to create a deep copy of ProductAssignmentMissingError@NotNull StringgetCode()Error identifier.@NotNull StringFor Product Selection of mode Individual, the message is:"A Product Variant Selection can only be set for a Product that has previously been added to the Product Selection."For Product Selection of mode IndividualExclusion, the message is:"A Variant Exclusion can only be set for a Product that has previously been added to the Product Selection of type Individual Exclusion."@NotNull @Valid ProductReferenceof()factory methodof(ProductAssignmentMissingError template) factory method to create a shallow copy ProductAssignmentMissingErrorvoidsetMessage(String message) For Product Selection of mode Individual, the message is:"A Product Variant Selection can only be set for a Product that has previously been added to the Product Selection."For Product Selection of mode IndividualExclusion, the message is:"A Variant Exclusion can only be set for a Product that has previously been added to the Product Selection of type Individual Exclusion."voidsetProduct(ProductReference product) static com.fasterxml.jackson.core.type.TypeReference<ProductAssignmentMissingError>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.error.ErrorObject
setValue, values, withErrorObject
-
Field Details
-
PRODUCT_ASSIGNMENT_MISSING
discriminator value for ProductAssignmentMissingError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:ErrorObjectError identifier.
- Specified by:
getCodein interfaceErrorObject- Returns:
- code
-
getMessage
For Product Selection of mode Individual, the message is:
"A Product Variant Selection can only be set for a Product that has previously been added to the Product Selection."For Product Selection of mode IndividualExclusion, the message is:"A Variant Exclusion can only be set for a Product that has previously been added to the Product Selection of type Individual Exclusion."- Specified by:
getMessagein interfaceErrorObject- Returns:
- message
-
getProduct
- Returns:
- product
-
setMessage
For Product Selection of mode Individual, the message is:
"A Product Variant Selection can only be set for a Product that has previously been added to the Product Selection."For Product Selection of mode IndividualExclusion, the message is:"A Variant Exclusion can only be set for a Product that has previously been added to the Product Selection of type Individual Exclusion."- Specified by:
setMessagein interfaceErrorObject- Parameters:
message- value to be set
-
setProduct
- Parameters:
product- value to be set
-
of
factory method- Returns:
- instance of ProductAssignmentMissingError
-
of
factory method to create a shallow copy ProductAssignmentMissingError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductAssignmentMissingError copyDeep()- Specified by:
copyDeepin interfaceErrorObject
-
deepCopy
@Nullable static ProductAssignmentMissingError deepCopy(@Nullable ProductAssignmentMissingError template) factory method to create a deep copy of ProductAssignmentMissingError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductAssignmentMissingError- Returns:
- builder
-
builder
create builder for ProductAssignmentMissingError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductAssignmentMissingError
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-