Interface StoreCountriesChangedMessage
- All Superinterfaces:
BaseResource
,DomainResource<Message>
,Identifiable<Message>
,Message
,Versioned<Message>
Generated after a successful Add Country, Remove Country, or Set Countries update action.
Example to create an instance using the builder pattern
StoreCountriesChangedMessage storeCountriesChangedMessage = StoreCountriesChangedMessage.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 StoreCountriesChangedMessage -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StoreCountriesChangedMessagebuilder
(StoreCountriesChangedMessage template) create builder for StoreCountriesChangedMessage instancestatic StoreCountriesChangedMessage
deepCopy
(StoreCountriesChangedMessage template) factory method to create a deep copy of StoreCountriesChangedMessage@Valid List<StoreCountry>
Countries added to the Store.@Valid List<StoreCountry>
Countries removed from the Store.static StoreCountriesChangedMessage
of()
factory methodstatic StoreCountriesChangedMessage
of
(StoreCountriesChangedMessage template) factory method to create a shallow copy StoreCountriesChangedMessagevoid
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<StoreCountriesChangedMessage>
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_COUNTRIES_CHANGED
discriminator value for StoreCountriesChangedMessage- 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 StoreCountriesChangedMessage
-
of
factory method to create a shallow copy StoreCountriesChangedMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StoreCountriesChangedMessage deepCopy(@Nullable StoreCountriesChangedMessage template) factory method to create a deep copy of StoreCountriesChangedMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StoreCountriesChangedMessage- Returns:
- builder
-
builder
create builder for StoreCountriesChangedMessage instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStoreCountriesChangedMessage
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-