Interface ShippingMethodAddZoneAction
- All Superinterfaces:
ResourceUpdateAction<ShippingMethodUpdateAction>
,ShippingMethodUpdateAction
ShippingMethodAddZoneAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShippingMethodAddZoneAction shippingMethodAddZoneAction = ShippingMethodAddZoneAction.builder()
.zone(zoneBuilder -> zoneBuilder)
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ShippingMethodAddZoneActionbuilder
(ShippingMethodAddZoneAction template) create builder for ShippingMethodAddZoneAction instancestatic ShippingMethodAddZoneAction
deepCopy
(ShippingMethodAddZoneAction template) factory method to create a deep copy of ShippingMethodAddZoneAction@NotNull @Valid ZoneResourceIdentifier
getZone()
Value to add tozoneRates
.static ShippingMethodAddZoneAction
of()
factory methodstatic ShippingMethodAddZoneAction
of
(ShippingMethodAddZoneAction template) factory method to create a shallow copy ShippingMethodAddZoneActionvoid
Value to add tozoneRates
.static com.fasterxml.jackson.core.type.TypeReference<ShippingMethodAddZoneAction>
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.shipping_method.ShippingMethodUpdateAction
getAction, withShippingMethodUpdateAction
-
Field Details
-
ADD_ZONE
discriminator value for ShippingMethodAddZoneAction- See Also:
-
-
Method Details
-
getZone
Value to add to
zoneRates
.- Returns:
- zone
-
setZone
Value to add to
zoneRates
.- Parameters:
zone
- value to be set
-
of
factory method- Returns:
- instance of ShippingMethodAddZoneAction
-
of
factory method to create a shallow copy ShippingMethodAddZoneAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ShippingMethodAddZoneAction deepCopy(@Nullable ShippingMethodAddZoneAction template) factory method to create a deep copy of ShippingMethodAddZoneAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ShippingMethodAddZoneAction- Returns:
- builder
-
builder
create builder for ShippingMethodAddZoneAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withShippingMethodAddZoneAction
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
-