Interface ProductSelectionProductExcludedMessage
- All Superinterfaces:
BaseResource
,DomainResource<Message>
,Identifiable<Message>
,Message
,Versioned<Message>
Generated after a successful Exclude Product update action.
Example to create an instance using the builder pattern
ProductSelectionProductExcludedMessage productSelectionProductExcludedMessage = ProductSelectionProductExcludedMessage.builder()
.id("{id}")
.version(0.3)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.sequenceNumber(0.3)
.resource(resourceBuilder -> resourceBuilder)
.resourceVersion(0.3)
.product(productBuilder -> productBuilder)
.variantExclusion(variantExclusionBuilder -> variantExclusionBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductSelectionProductExcludedMessage -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductSelectionProductExcludedMessagecreate builder for ProductSelectionProductExcludedMessage instancefactory method to create a deep copy of ProductSelectionProductExcludedMessage@NotNull @Valid ProductReference
Product that was excluded from the Product Selection.@NotNull @Valid ProductVariantExclusion
Product Variant Exclusion after the Exclude Product update action.of()
factory methodof
(ProductSelectionProductExcludedMessage template) factory method to create a shallow copy ProductSelectionProductExcludedMessagevoid
setProduct
(ProductReference product) Product that was excluded from the Product Selection.void
setVariantExclusion
(ProductVariantExclusion variantExclusion) Product Variant Exclusion after the Exclude Product update action.static com.fasterxml.jackson.core.type.TypeReference<ProductSelectionProductExcludedMessage>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withProductSelectionProductExcludedMessage
(Function<ProductSelectionProductExcludedMessage, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResource
Methods inherited from interface com.commercetools.api.models.DomainResource
get
Methods inherited from interface com.commercetools.api.models.message.Message
getCreatedAt, getCreatedBy, getId, getLastModifiedAt, getLastModifiedBy, getResource, getResourceUserProvidedIdentifiers, getResourceVersion, getSequenceNumber, getType, getVersion, setCreatedAt, setCreatedBy, setId, setLastModifiedAt, setLastModifiedBy, setResource, setResourceUserProvidedIdentifiers, setResourceVersion, setSequenceNumber, setVersion, withMessage
-
Field Details
-
PRODUCT_SELECTION_PRODUCT_EXCLUDED
discriminator value for ProductSelectionProductExcludedMessage- See Also:
-
-
Method Details
-
getProduct
Product that was excluded from the Product Selection.
- Returns:
- product
-
getVariantExclusion
Product Variant Exclusion after the Exclude Product update action.
- Returns:
- variantExclusion
-
setProduct
Product that was excluded from the Product Selection.
- Parameters:
product
- value to be set
-
setVariantExclusion
Product Variant Exclusion after the Exclude Product update action.
- Parameters:
variantExclusion
- value to be set
-
of
factory method- Returns:
- instance of ProductSelectionProductExcludedMessage
-
of
factory method to create a shallow copy ProductSelectionProductExcludedMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductSelectionProductExcludedMessage deepCopy(@Nullable ProductSelectionProductExcludedMessage template) factory method to create a deep copy of ProductSelectionProductExcludedMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSelectionProductExcludedMessage- Returns:
- builder
-
builder
static ProductSelectionProductExcludedMessageBuilder builder(ProductSelectionProductExcludedMessage template) create builder for ProductSelectionProductExcludedMessage instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductSelectionProductExcludedMessage
default <T> T withProductSelectionProductExcludedMessage(Function<ProductSelectionProductExcludedMessage, 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<ProductSelectionProductExcludedMessage> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-