Interface CustomerStoresSetMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Set Stores update action.
Example to create an instance using the builder pattern
CustomerStoresSetMessagePayload customerStoresSetMessagePayload = CustomerStoresSetMessagePayload.builder()
.plusStores(storesBuilder -> storesBuilder)
.plusOldStores(oldStoresBuilder -> oldStoresBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for CustomerStoresSetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CustomerStoresSetMessagePayloadbuilder
(CustomerStoresSetMessagePayload template) create builder for CustomerStoresSetMessagePayload instancecopyDeep()
deepCopy
(CustomerStoresSetMessagePayload template) factory method to create a deep copy of CustomerStoresSetMessagePayload@NotNull @Valid List<StoreKeyReference>
@NotNull @Valid List<StoreKeyReference>
of()
factory methodof
(CustomerStoresSetMessagePayload template) factory method to create a shallow copy CustomerStoresSetMessagePayloadvoid
setOldStores
(StoreKeyReference... oldStores) void
setOldStores
(List<StoreKeyReference> oldStores) void
setStores
(StoreKeyReference... stores) void
setStores
(List<StoreKeyReference> stores) static com.fasterxml.jackson.core.type.TypeReference<CustomerStoresSetMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayload
Methods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
CUSTOMER_STORES_SET
discriminator value for CustomerStoresSetMessagePayload- See Also:
-
-
Method Details
-
getStores
The Stores the Customer is associated with after the Set Stores update action.
- Returns:
- stores
-
getOldStores
The Stores the Customer was associated with before the Set Stores update action.
- Returns:
- oldStores
-
setStores
The Stores the Customer is associated with after the Set Stores update action.
- Parameters:
stores
- values to be set
-
setStores
The Stores the Customer is associated with after the Set Stores update action.
- Parameters:
stores
- values to be set
-
setOldStores
The Stores the Customer was associated with before the Set Stores update action.
- Parameters:
oldStores
- values to be set
-
setOldStores
The Stores the Customer was associated with before the Set Stores update action.
- Parameters:
oldStores
- values to be set
-
of
factory method- Returns:
- instance of CustomerStoresSetMessagePayload
-
of
factory method to create a shallow copy CustomerStoresSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
CustomerStoresSetMessagePayload copyDeep()- Specified by:
copyDeep
in interfaceMessagePayload
-
deepCopy
@Nullable static CustomerStoresSetMessagePayload deepCopy(@Nullable CustomerStoresSetMessagePayload template) factory method to create a deep copy of CustomerStoresSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerStoresSetMessagePayload- Returns:
- builder
-
builder
create builder for CustomerStoresSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerStoresSetMessagePayload
default <T> T withCustomerStoresSetMessagePayload(Function<CustomerStoresSetMessagePayload, 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<CustomerStoresSetMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-