Interface ShippingMethodAddStoreAction
- All Superinterfaces:
ResourceUpdateAction<ShippingMethodUpdateAction>,ShippingMethodUpdateAction
Associates the ShippingMethod with a Store.
Example to create an instance using the builder pattern
ShippingMethodAddStoreAction shippingMethodAddStoreAction = ShippingMethodAddStoreAction.builder()
.store(storeBuilder -> storeBuilder)
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ShippingMethodAddStoreActionbuilder(ShippingMethodAddStoreAction template) create builder for ShippingMethodAddStoreAction instancecopyDeep()static ShippingMethodAddStoreActiondeepCopy(ShippingMethodAddStoreAction template) factory method to create a deep copy of ShippingMethodAddStoreAction@NotNull @Valid StoreResourceIdentifiergetStore()ResourceIdentifier of the Store to add.static ShippingMethodAddStoreActionof()factory methodstatic ShippingMethodAddStoreActionof(ShippingMethodAddStoreAction template) factory method to create a shallow copy ShippingMethodAddStoreActionvoidsetStore(StoreResourceIdentifier store) ResourceIdentifier of the Store to add.static tools.jackson.core.type.TypeReference<ShippingMethodAddStoreAction>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
-
ADD_STORE
discriminator value for ShippingMethodAddStoreAction- See Also:
-
-
Method Details
-
getStore
ResourceIdentifier of the Store to add.
- Returns:
- store
-
setStore
ResourceIdentifier of the Store to add.
- Parameters:
store- value to be set
-
of
factory method- Returns:
- instance of ShippingMethodAddStoreAction
-
of
factory method to create a shallow copy ShippingMethodAddStoreAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ShippingMethodAddStoreAction copyDeep()- Specified by:
copyDeepin interfaceShippingMethodUpdateAction
-
deepCopy
@Nullable static ShippingMethodAddStoreAction deepCopy(@Nullable ShippingMethodAddStoreAction template) factory method to create a deep copy of ShippingMethodAddStoreAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ShippingMethodAddStoreAction- Returns:
- builder
-
builder
create builder for ShippingMethodAddStoreAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withShippingMethodAddStoreAction
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
-