Class ShippingMethodAddZoneActionBuilder
java.lang.Object
com.commercetools.api.models.shipping_method.ShippingMethodAddZoneActionBuilder
- All Implemented Interfaces:
Builder<ShippingMethodAddZoneAction>
public class ShippingMethodAddZoneActionBuilder
extends Object
implements Builder<ShippingMethodAddZoneAction>
ShippingMethodAddZoneActionBuilder
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()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ShippingMethodAddZoneAction with checking for non-null required valuesbuilds ShippingMethodAddZoneAction without checking for non-null required valuesgetZone()
Value to add tozoneRates
.of()
factory method for an instance of ShippingMethodAddZoneActionBuilderof
(ShippingMethodAddZoneAction template) create builder for ShippingMethodAddZoneAction instanceValue to add tozoneRates
.zone
(ZoneResourceIdentifier zone) Value to add tozoneRates
.Value to add tozoneRates
.
-
Constructor Details
-
ShippingMethodAddZoneActionBuilder
public ShippingMethodAddZoneActionBuilder()
-
-
Method Details
-
zone
public ShippingMethodAddZoneActionBuilder zone(Function<ZoneResourceIdentifierBuilder, ZoneResourceIdentifierBuilder> builder) Value to add to
zoneRates
.- Parameters:
builder
- function to build the zone value- Returns:
- Builder
-
withZone
public ShippingMethodAddZoneActionBuilder withZone(Function<ZoneResourceIdentifierBuilder, ZoneResourceIdentifier> builder) Value to add to
zoneRates
.- Parameters:
builder
- function to build the zone value- Returns:
- Builder
-
zone
Value to add to
zoneRates
.- Parameters:
zone
- value to be set- Returns:
- Builder
-
getZone
Value to add to
zoneRates
.- Returns:
- zone
-
build
builds ShippingMethodAddZoneAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ShippingMethodAddZoneAction>
- Returns:
- ShippingMethodAddZoneAction
-
buildUnchecked
builds ShippingMethodAddZoneAction without checking for non-null required values- Returns:
- ShippingMethodAddZoneAction
-
of
factory method for an instance of ShippingMethodAddZoneActionBuilder- Returns:
- builder
-
of
create builder for ShippingMethodAddZoneAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-