Interface ShippingMethodRemoveShippingRateAction
- All Superinterfaces:
ResourceUpdateAction<ShippingMethodUpdateAction>,ShippingMethodUpdateAction
ShippingMethodRemoveShippingRateAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShippingMethodRemoveShippingRateAction shippingMethodRemoveShippingRateAction = ShippingMethodRemoveShippingRateAction.builder()
.zone(zoneBuilder -> zoneBuilder)
.shippingRate(shippingRateBuilder -> shippingRateBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ShippingMethodRemoveShippingRateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ShippingMethodRemoveShippingRateActioncreate builder for ShippingMethodRemoveShippingRateAction instancecopyDeep()factory method to create a deep copy of ShippingMethodRemoveShippingRateAction@NotNull @Valid ShippingRateDraftValue to remove fromshippingRates.@NotNull @Valid ZoneResourceIdentifiergetZone()Zone from which the ShippingRate should be removed.of()factory methodof(ShippingMethodRemoveShippingRateAction template) factory method to create a shallow copy ShippingMethodRemoveShippingRateActionvoidsetShippingRate(ShippingRateDraft shippingRate) Value to remove fromshippingRates.voidZone from which the ShippingRate should be removed.static com.fasterxml.jackson.core.type.TypeReference<ShippingMethodRemoveShippingRateAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithShippingMethodRemoveShippingRateAction(Function<ShippingMethodRemoveShippingRateAction, T> helper) accessor 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_SHIPPING_RATE
discriminator value for ShippingMethodRemoveShippingRateAction- See Also:
-
-
Method Details
-
getZone
Zone from which the ShippingRate should be removed.
- Returns:
- zone
-
getShippingRate
Value to remove from
shippingRates.- Returns:
- shippingRate
-
setZone
Zone from which the ShippingRate should be removed.
- Parameters:
zone- value to be set
-
setShippingRate
Value to remove from
shippingRates.- Parameters:
shippingRate- value to be set
-
of
factory method- Returns:
- instance of ShippingMethodRemoveShippingRateAction
-
of
factory method to create a shallow copy ShippingMethodRemoveShippingRateAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ShippingMethodRemoveShippingRateAction copyDeep()- Specified by:
copyDeepin interfaceShippingMethodUpdateAction
-
deepCopy
@Nullable static ShippingMethodRemoveShippingRateAction deepCopy(@Nullable ShippingMethodRemoveShippingRateAction template) factory method to create a deep copy of ShippingMethodRemoveShippingRateAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ShippingMethodRemoveShippingRateAction- Returns:
- builder
-
builder
static ShippingMethodRemoveShippingRateActionBuilder builder(ShippingMethodRemoveShippingRateAction template) create builder for ShippingMethodRemoveShippingRateAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withShippingMethodRemoveShippingRateAction
default <T> T withShippingMethodRemoveShippingRateAction(Function<ShippingMethodRemoveShippingRateAction, T> helper) accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<ShippingMethodRemoveShippingRateAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-