Interface ProductSelectionVariantExclusionChangedMessage
- All Superinterfaces:
BaseResource
,DomainResource<Message>
,Identifiable<Message>
,Message
,Versioned<Message>
Generated after a successful Set Variant Exclusion update action.
Example to create an instance using the builder pattern
ProductSelectionVariantExclusionChangedMessage productSelectionVariantExclusionChangedMessage = ProductSelectionVariantExclusionChangedMessage.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)
.oldVariantExclusion(oldVariantExclusionBuilder -> oldVariantExclusionBuilder)
.newVariantExclusion(newVariantExclusionBuilder -> newVariantExclusionBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductSelectionVariantExclusionChangedMessage -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductSelectionVariantExclusionChangedMessagecreate builder for ProductSelectionVariantExclusionChangedMessage instancefactory method to create a deep copy of ProductSelectionVariantExclusionChangedMessage@NotNull @Valid ProductVariantExclusion
Product Variant Exclusion after the Set Variant Exclusion update action.@NotNull @Valid ProductVariantExclusion
Product Variant Exclusion before the Set Variant Exclusion update action.@NotNull @Valid ProductReference
Product for which the Product Variant Exclusion changed.of()
factory methodfactory method to create a shallow copy ProductSelectionVariantExclusionChangedMessagevoid
setNewVariantExclusion
(ProductVariantExclusion newVariantExclusion) Product Variant Exclusion after the Set Variant Exclusion update action.void
setOldVariantExclusion
(ProductVariantExclusion oldVariantExclusion) Product Variant Exclusion before the Set Variant Exclusion update action.void
setProduct
(ProductReference product) Product for which the Product Variant Exclusion changed.static com.fasterxml.jackson.core.type.TypeReference<ProductSelectionVariantExclusionChangedMessage>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withProductSelectionVariantExclusionChangedMessage
(Function<ProductSelectionVariantExclusionChangedMessage, 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_VARIANT_EXCLUSION_CHANGED
discriminator value for ProductSelectionVariantExclusionChangedMessage- See Also:
-
-
Method Details
-
getProduct
Product for which the Product Variant Exclusion changed.
- Returns:
- product
-
getOldVariantExclusion
Product Variant Exclusion before the Set Variant Exclusion update action.
- Returns:
- oldVariantExclusion
-
getNewVariantExclusion
Product Variant Exclusion after the Set Variant Exclusion update action.
- Returns:
- newVariantExclusion
-
setProduct
Product for which the Product Variant Exclusion changed.
- Parameters:
product
- value to be set
-
setOldVariantExclusion
Product Variant Exclusion before the Set Variant Exclusion update action.
- Parameters:
oldVariantExclusion
- value to be set
-
setNewVariantExclusion
Product Variant Exclusion after the Set Variant Exclusion update action.
- Parameters:
newVariantExclusion
- value to be set
-
of
factory method- Returns:
- instance of ProductSelectionVariantExclusionChangedMessage
-
of
static ProductSelectionVariantExclusionChangedMessage of(ProductSelectionVariantExclusionChangedMessage template) factory method to create a shallow copy ProductSelectionVariantExclusionChangedMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductSelectionVariantExclusionChangedMessage deepCopy(@Nullable ProductSelectionVariantExclusionChangedMessage template) factory method to create a deep copy of ProductSelectionVariantExclusionChangedMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSelectionVariantExclusionChangedMessage- Returns:
- builder
-
builder
static ProductSelectionVariantExclusionChangedMessageBuilder builder(ProductSelectionVariantExclusionChangedMessage template) create builder for ProductSelectionVariantExclusionChangedMessage instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductSelectionVariantExclusionChangedMessage
default <T> T withProductSelectionVariantExclusionChangedMessage(Function<ProductSelectionVariantExclusionChangedMessage, 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<ProductSelectionVariantExclusionChangedMessage> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-