Interface StoreRemoveCountryAction
- All Superinterfaces:
ResourceUpdateAction<StoreUpdateAction>,StoreUpdateAction
This update action produces the StoreCountriesChanged Message. It has no effect if a given country is not present in a Store.
Example to create an instance using the builder pattern
StoreRemoveCountryAction storeRemoveCountryAction = StoreRemoveCountryAction.builder()
.country(countryBuilder -> countryBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for StoreRemoveCountryAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for StoreRemoveCountryActionbuilder(StoreRemoveCountryAction template) create builder for StoreRemoveCountryAction instancecopyDeep()static StoreRemoveCountryActiondeepCopy(StoreRemoveCountryAction template) factory method to create a deep copy of StoreRemoveCountryAction@NotNull @Valid StoreCountryValue to remove fromcountries.static StoreRemoveCountryActionof()factory methodstatic StoreRemoveCountryActionof(StoreRemoveCountryAction template) factory method to create a shallow copy StoreRemoveCountryActionvoidsetCountry(StoreCountry country) Value to remove fromcountries.static com.fasterxml.jackson.core.type.TypeReference<StoreRemoveCountryAction>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
-
REMOVE_COUNTRY
discriminator value for StoreRemoveCountryAction- See Also:
-
-
Method Details
-
getCountry
Value to remove from
countries.- Returns:
- country
-
setCountry
Value to remove from
countries.- Parameters:
country- value to be set
-
of
factory method- Returns:
- instance of StoreRemoveCountryAction
-
of
factory method to create a shallow copy StoreRemoveCountryAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
StoreRemoveCountryAction copyDeep()- Specified by:
copyDeepin interfaceStoreUpdateAction
-
deepCopy
factory method to create a deep copy of StoreRemoveCountryAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StoreRemoveCountryAction- Returns:
- builder
-
builder
create builder for StoreRemoveCountryAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withStoreRemoveCountryAction
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
-