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
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ShippingMethodAddZoneActionbuilder(ShippingMethodAddZoneAction template) create builder for ShippingMethodAddZoneAction instancecopyDeep()static ShippingMethodAddZoneActiondeepCopy(ShippingMethodAddZoneAction template) factory method to create a deep copy of ShippingMethodAddZoneAction@NotNull @Valid ZoneResourceIdentifiergetZone()Value to add tozoneRates.static ShippingMethodAddZoneActionof()factory methodstatic ShippingMethodAddZoneActionof(ShippingMethodAddZoneAction template) factory method to create a shallow copy ShippingMethodAddZoneActionvoidValue to add tozoneRates.static com.fasterxml.jackson.core.type.TypeReference<ShippingMethodAddZoneAction>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_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
-
copyDeep
ShippingMethodAddZoneAction copyDeep()- Specified by:
copyDeepin interfaceShippingMethodUpdateAction
-
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
-