Interface ShippingMethodRemoveStoreAction
- All Superinterfaces:
ResourceUpdateAction<ShippingMethodUpdateAction>,ShippingMethodUpdateAction
Removes the association to a Store from the ShippingMethod. If no more Stores are assigned, the ShippingMethod becomes a global ShippingMethod.
Example to create an instance using the builder pattern
ShippingMethodRemoveStoreAction shippingMethodRemoveStoreAction = ShippingMethodRemoveStoreAction.builder()
.store(storeBuilder -> storeBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ShippingMethodRemoveStoreAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ShippingMethodRemoveStoreActionbuilder(ShippingMethodRemoveStoreAction template) create builder for ShippingMethodRemoveStoreAction instancecopyDeep()deepCopy(ShippingMethodRemoveStoreAction template) factory method to create a deep copy of ShippingMethodRemoveStoreAction@NotNull @Valid StoreResourceIdentifiergetStore()ResourceIdentifier of the Store to remove.of()factory methodof(ShippingMethodRemoveStoreAction template) factory method to create a shallow copy ShippingMethodRemoveStoreActionvoidsetStore(StoreResourceIdentifier store) ResourceIdentifier of the Store to remove.static tools.jackson.core.type.TypeReference<ShippingMethodRemoveStoreAction>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.shipping_method.ShippingMethodUpdateAction
getAction, withShippingMethodUpdateAction
-
Field Details
-
REMOVE_STORE
discriminator value for ShippingMethodRemoveStoreAction- See Also:
-
-
Method Details
-
getStore
ResourceIdentifier of the Store to remove.
- Returns:
- store
-
setStore
ResourceIdentifier of the Store to remove.
- Parameters:
store- value to be set
-
of
factory method- Returns:
- instance of ShippingMethodRemoveStoreAction
-
of
factory method to create a shallow copy ShippingMethodRemoveStoreAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ShippingMethodRemoveStoreAction copyDeep()- Specified by:
copyDeepin interfaceShippingMethodUpdateAction
-
deepCopy
@Nullable static ShippingMethodRemoveStoreAction deepCopy(@Nullable ShippingMethodRemoveStoreAction template) factory method to create a deep copy of ShippingMethodRemoveStoreAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ShippingMethodRemoveStoreAction- Returns:
- builder
-
builder
create builder for ShippingMethodRemoveStoreAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withShippingMethodRemoveStoreAction
default <T> T withShippingMethodRemoveStoreAction(Function<ShippingMethodRemoveStoreAction, T> helper) 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
-