Interface StoreCountriesChangedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Add Country, Remove Country, or Set Countries update action.
Example to create an instance using the builder pattern
StoreCountriesChangedMessagePayload storeCountriesChangedMessagePayload = StoreCountriesChangedMessagePayload.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StoreCountriesChangedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StoreCountriesChangedMessagePayloadbuilder
(StoreCountriesChangedMessagePayload template) create builder for StoreCountriesChangedMessagePayload instancedeepCopy
(StoreCountriesChangedMessagePayload template) factory method to create a deep copy of StoreCountriesChangedMessagePayload@Valid List<StoreCountry>
Countries added to the Store.@Valid List<StoreCountry>
Countries removed from the Store.of()
factory methodof
(StoreCountriesChangedMessagePayload template) factory method to create a shallow copy StoreCountriesChangedMessagePayloadvoid
setAddedCountries
(StoreCountry... addedCountries) Countries added to the Store.void
setAddedCountries
(List<StoreCountry> addedCountries) Countries added to the Store.void
setRemovedCountries
(StoreCountry... removedCountries) Countries removed from the Store.void
setRemovedCountries
(List<StoreCountry> removedCountries) Countries removed from the Store.static com.fasterxml.jackson.core.type.TypeReference<StoreCountriesChangedMessagePayload>
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
-
STORE_COUNTRIES_CHANGED
discriminator value for StoreCountriesChangedMessagePayload- See Also:
-
-
Method Details
-
getAddedCountries
Countries added to the Store.
- Returns:
- addedCountries
-
getRemovedCountries
Countries removed from the Store.
- Returns:
- removedCountries
-
setAddedCountries
Countries added to the Store.
- Parameters:
addedCountries
- values to be set
-
setAddedCountries
Countries added to the Store.
- Parameters:
addedCountries
- values to be set
-
setRemovedCountries
Countries removed from the Store.
- Parameters:
removedCountries
- values to be set
-
setRemovedCountries
Countries removed from the Store.
- Parameters:
removedCountries
- values to be set
-
of
factory method- Returns:
- instance of StoreCountriesChangedMessagePayload
-
of
factory method to create a shallow copy StoreCountriesChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StoreCountriesChangedMessagePayload deepCopy(@Nullable StoreCountriesChangedMessagePayload template) factory method to create a deep copy of StoreCountriesChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StoreCountriesChangedMessagePayload- Returns:
- builder
-
builder
static StoreCountriesChangedMessagePayloadBuilder builder(StoreCountriesChangedMessagePayload template) create builder for StoreCountriesChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStoreCountriesChangedMessagePayload
default <T> T withStoreCountriesChangedMessagePayload(Function<StoreCountriesChangedMessagePayload, 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<StoreCountriesChangedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-