Interface StoreAddCountryAction
- All Superinterfaces:
ResourceUpdateAction<StoreUpdateAction>
,StoreUpdateAction
This update action produces the StoreCountriesChanged Message. It has no effect if the given country is already present in a Store.
Example to create an instance using the builder pattern
StoreAddCountryAction storeAddCountryAction = StoreAddCountryAction.builder()
.country(countryBuilder -> countryBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StoreAddCountryAction -
Method Summary
Modifier and TypeMethodDescriptionstatic StoreAddCountryActionBuilder
builder()
builder factory method for StoreAddCountryActionstatic StoreAddCountryActionBuilder
builder
(StoreAddCountryAction template) create builder for StoreAddCountryAction instancestatic StoreAddCountryAction
deepCopy
(StoreAddCountryAction template) factory method to create a deep copy of StoreAddCountryAction@NotNull @Valid StoreCountry
Value to append tocountries
.static StoreAddCountryAction
of()
factory methodstatic StoreAddCountryAction
of
(StoreAddCountryAction template) factory method to create a shallow copy StoreAddCountryActionvoid
setCountry
(StoreCountry country) Value to append tocountries
.static com.fasterxml.jackson.core.type.TypeReference<StoreAddCountryAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.store.StoreUpdateAction
getAction, withStoreUpdateAction
-
Field Details
-
ADD_COUNTRY
discriminator value for StoreAddCountryAction- See Also:
-
-
Method Details
-
getCountry
Value to append to
countries
.- Returns:
- country
-
setCountry
Value to append to
countries
.- Parameters:
country
- value to be set
-
of
factory method- Returns:
- instance of StoreAddCountryAction
-
of
factory method to create a shallow copy StoreAddCountryAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of StoreAddCountryAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StoreAddCountryAction- Returns:
- builder
-
builder
create builder for StoreAddCountryAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStoreAddCountryAction
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
-