Class ShippingMethodRemoveZoneActionBuilder
java.lang.Object
com.commercetools.api.models.shipping_method.ShippingMethodRemoveZoneActionBuilder
- All Implemented Interfaces:
Builder<ShippingMethodRemoveZoneAction>
public class ShippingMethodRemoveZoneActionBuilder
extends Object
implements Builder<ShippingMethodRemoveZoneAction>
ShippingMethodRemoveZoneActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShippingMethodRemoveZoneAction shippingMethodRemoveZoneAction = ShippingMethodRemoveZoneAction.builder()
.zone(zoneBuilder -> zoneBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ShippingMethodRemoveZoneAction with checking for non-null required valuesbuilds ShippingMethodRemoveZoneAction without checking for non-null required valuesgetZone()
Value to remove fromzoneRates
.of()
factory method for an instance of ShippingMethodRemoveZoneActionBuilderof
(ShippingMethodRemoveZoneAction template) create builder for ShippingMethodRemoveZoneAction instanceValue to remove fromzoneRates
.zone
(ZoneResourceIdentifier zone) Value to remove fromzoneRates
.Value to remove fromzoneRates
.
-
Constructor Details
-
ShippingMethodRemoveZoneActionBuilder
public ShippingMethodRemoveZoneActionBuilder()
-
-
Method Details
-
zone
public ShippingMethodRemoveZoneActionBuilder zone(Function<ZoneResourceIdentifierBuilder, ZoneResourceIdentifierBuilder> builder) Value to remove from
zoneRates
.- Parameters:
builder
- function to build the zone value- Returns:
- Builder
-
withZone
public ShippingMethodRemoveZoneActionBuilder withZone(Function<ZoneResourceIdentifierBuilder, ZoneResourceIdentifier> builder) Value to remove from
zoneRates
.- Parameters:
builder
- function to build the zone value- Returns:
- Builder
-
zone
Value to remove from
zoneRates
.- Parameters:
zone
- value to be set- Returns:
- Builder
-
getZone
Value to remove from
zoneRates
.- Returns:
- zone
-
build
builds ShippingMethodRemoveZoneAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ShippingMethodRemoveZoneAction>
- Returns:
- ShippingMethodRemoveZoneAction
-
buildUnchecked
builds ShippingMethodRemoveZoneAction without checking for non-null required values- Returns:
- ShippingMethodRemoveZoneAction
-
of
factory method for an instance of ShippingMethodRemoveZoneActionBuilder- Returns:
- builder
-
of
create builder for ShippingMethodRemoveZoneAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-