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
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StoreRemoveCountryAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StoreRemoveCountryActionbuilder
(StoreRemoveCountryAction template) create builder for StoreRemoveCountryAction instancestatic StoreRemoveCountryAction
deepCopy
(StoreRemoveCountryAction template) factory method to create a deep copy of StoreRemoveCountryAction@NotNull @Valid StoreCountry
Value to remove fromcountries
.static StoreRemoveCountryAction
of()
factory methodstatic StoreRemoveCountryAction
of
(StoreRemoveCountryAction template) factory method to create a shallow copy StoreRemoveCountryActionvoid
setCountry
(StoreCountry country) Value to remove fromcountries
.static com.fasterxml.jackson.core.type.TypeReference<StoreRemoveCountryAction>
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
-
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
-
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
-