Interface ShippingMethodSetStoresAction
- All Superinterfaces:
ResourceUpdateAction<ShippingMethodUpdateAction>,ShippingMethodUpdateAction
Sets the Stores the ShippingMethod is associated with. If empty, the ShippingMethod becomes a global ShippingMethod.
Example to create an instance using the builder pattern
ShippingMethodSetStoresAction shippingMethodSetStoresAction = ShippingMethodSetStoresAction.builder()
.plusStores(storesBuilder -> storesBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ShippingMethodSetStoresAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ShippingMethodSetStoresActionbuilder(ShippingMethodSetStoresAction template) create builder for ShippingMethodSetStoresAction instancecopyDeep()deepCopy(ShippingMethodSetStoresAction template) factory method to create a deep copy of ShippingMethodSetStoresAction@NotNull @Valid List<StoreResourceIdentifier>ResourceIdentifiers of the Stores to set.of()factory methodof(ShippingMethodSetStoresAction template) factory method to create a shallow copy ShippingMethodSetStoresActionvoidsetStores(StoreResourceIdentifier... stores) ResourceIdentifiers of the Stores to set.voidsetStores(List<StoreResourceIdentifier> stores) ResourceIdentifiers of the Stores to set.static tools.jackson.core.type.TypeReference<ShippingMethodSetStoresAction>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
-
SET_STORES
discriminator value for ShippingMethodSetStoresAction- See Also:
-
-
Method Details
-
getStores
ResourceIdentifiers of the Stores to set. Overrides the current list of Stores. If empty, any existing values are removed.
- Returns:
- stores
-
setStores
ResourceIdentifiers of the Stores to set. Overrides the current list of Stores. If empty, any existing values are removed.
- Parameters:
stores- values to be set
-
setStores
ResourceIdentifiers of the Stores to set. Overrides the current list of Stores. If empty, any existing values are removed.
- Parameters:
stores- values to be set
-
of
factory method- Returns:
- instance of ShippingMethodSetStoresAction
-
of
factory method to create a shallow copy ShippingMethodSetStoresAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ShippingMethodSetStoresAction copyDeep()- Specified by:
copyDeepin interfaceShippingMethodUpdateAction
-
deepCopy
@Nullable static ShippingMethodSetStoresAction deepCopy(@Nullable ShippingMethodSetStoresAction template) factory method to create a deep copy of ShippingMethodSetStoresAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ShippingMethodSetStoresAction- Returns:
- builder
-
builder
create builder for ShippingMethodSetStoresAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withShippingMethodSetStoresAction
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
-