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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for StoreAddCountryAction -
Method Summary
Modifier and TypeMethodDescriptionstatic StoreAddCountryActionBuilderbuilder()builder factory method for StoreAddCountryActionstatic StoreAddCountryActionBuilderbuilder(StoreAddCountryAction template) create builder for StoreAddCountryAction instancecopyDeep()static StoreAddCountryActiondeepCopy(StoreAddCountryAction template) factory method to create a deep copy of StoreAddCountryAction@NotNull @Valid StoreCountryValue to append tocountries.static StoreAddCountryActionof()factory methodstatic StoreAddCountryActionof(StoreAddCountryAction template) factory method to create a shallow copy StoreAddCountryActionvoidsetCountry(StoreCountry country) Value to append tocountries.static com.fasterxml.jackson.core.type.TypeReference<StoreAddCountryAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods 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
-
copyDeep
StoreAddCountryAction copyDeep()- Specified by:
copyDeepin interfaceStoreUpdateAction
-
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
-