Interface StoreProductSelectionsChangedMessage
- All Superinterfaces:
BaseResource
,DomainResource<Message>
,Identifiable<Message>
,Message
,Versioned<Message>
Generated by a successful Add Product Selection, Remove Product Selection, Set Product Selections, or Change Product Selections Active update action.
Example to create an instance using the builder pattern
StoreProductSelectionsChangedMessage storeProductSelectionsChangedMessage = StoreProductSelectionsChangedMessage.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)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StoreProductSelectionsChangedMessage -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StoreProductSelectionsChangedMessagebuilder
(StoreProductSelectionsChangedMessage template) create builder for StoreProductSelectionsChangedMessage instancedeepCopy
(StoreProductSelectionsChangedMessage template) factory method to create a deep copy of StoreProductSelectionsChangedMessage@Valid List<ProductSelectionSetting>
ProductSelectionSettings that were added to the Store.@Valid List<ProductSelectionSetting>
ProductSelectionSettings that were removed from the Store.@Valid List<ProductSelectionSetting>
ProductSelectionSettings that were updated in the Store.of()
factory methodof
(StoreProductSelectionsChangedMessage template) factory method to create a shallow copy StoreProductSelectionsChangedMessagevoid
setAddedProductSelections
(ProductSelectionSetting... addedProductSelections) ProductSelectionSettings that were added to the Store.void
setAddedProductSelections
(List<ProductSelectionSetting> addedProductSelections) ProductSelectionSettings that were added to the Store.void
setRemovedProductSelections
(ProductSelectionSetting... removedProductSelections) ProductSelectionSettings that were removed from the Store.void
setRemovedProductSelections
(List<ProductSelectionSetting> removedProductSelections) ProductSelectionSettings that were removed from the Store.void
setUpdatedProductSelections
(ProductSelectionSetting... updatedProductSelections) ProductSelectionSettings that were updated in the Store.void
setUpdatedProductSelections
(List<ProductSelectionSetting> updatedProductSelections) ProductSelectionSettings that were updated in the Store.static com.fasterxml.jackson.core.type.TypeReference<StoreProductSelectionsChangedMessage>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
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
-
STORE_PRODUCT_SELECTIONS_CHANGED
discriminator value for StoreProductSelectionsChangedMessage- See Also:
-
-
Method Details
-
getAddedProductSelections
ProductSelectionSettings that were added to the Store.
- Returns:
- addedProductSelections
-
getRemovedProductSelections
ProductSelectionSettings that were removed from the Store.
- Returns:
- removedProductSelections
-
getUpdatedProductSelections
ProductSelectionSettings that were updated in the Store.
- Returns:
- updatedProductSelections
-
setAddedProductSelections
ProductSelectionSettings that were added to the Store.
- Parameters:
addedProductSelections
- values to be set
-
setAddedProductSelections
ProductSelectionSettings that were added to the Store.
- Parameters:
addedProductSelections
- values to be set
-
setRemovedProductSelections
ProductSelectionSettings that were removed from the Store.
- Parameters:
removedProductSelections
- values to be set
-
setRemovedProductSelections
ProductSelectionSettings that were removed from the Store.
- Parameters:
removedProductSelections
- values to be set
-
setUpdatedProductSelections
ProductSelectionSettings that were updated in the Store.
- Parameters:
updatedProductSelections
- values to be set
-
setUpdatedProductSelections
ProductSelectionSettings that were updated in the Store.
- Parameters:
updatedProductSelections
- values to be set
-
of
factory method- Returns:
- instance of StoreProductSelectionsChangedMessage
-
of
factory method to create a shallow copy StoreProductSelectionsChangedMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StoreProductSelectionsChangedMessage deepCopy(@Nullable StoreProductSelectionsChangedMessage template) factory method to create a deep copy of StoreProductSelectionsChangedMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StoreProductSelectionsChangedMessage- Returns:
- builder
-
builder
static StoreProductSelectionsChangedMessageBuilder builder(StoreProductSelectionsChangedMessage template) create builder for StoreProductSelectionsChangedMessage instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStoreProductSelectionsChangedMessage
default <T> T withStoreProductSelectionsChangedMessage(Function<StoreProductSelectionsChangedMessage, 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<StoreProductSelectionsChangedMessage> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-