Class ShippingMethodRemoveShippingRateActionBuilder
java.lang.Object
com.commercetools.api.models.shipping_method.ShippingMethodRemoveShippingRateActionBuilder
- All Implemented Interfaces:
Builder<ShippingMethodRemoveShippingRateAction>
public class ShippingMethodRemoveShippingRateActionBuilder
extends Object
implements Builder<ShippingMethodRemoveShippingRateAction>
ShippingMethodRemoveShippingRateActionBuilder
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()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ShippingMethodRemoveShippingRateAction with checking for non-null required valuesbuilds ShippingMethodRemoveShippingRateAction without checking for non-null required valuesValue to remove fromshippingRates
.getZone()
Zone from which the ShippingRate should be removed.of()
factory method for an instance of ShippingMethodRemoveShippingRateActionBuilderof
(ShippingMethodRemoveShippingRateAction template) create builder for ShippingMethodRemoveShippingRateAction instanceshippingRate
(ShippingRateDraft shippingRate) Value to remove fromshippingRates
.Value to remove fromshippingRates
.Value to remove fromshippingRates
.Zone from which the ShippingRate should be removed.zone
(ZoneResourceIdentifier zone) Zone from which the ShippingRate should be removed.Zone from which the ShippingRate should be removed.
-
Constructor Details
-
ShippingMethodRemoveShippingRateActionBuilder
public ShippingMethodRemoveShippingRateActionBuilder()
-
-
Method Details
-
zone
public ShippingMethodRemoveShippingRateActionBuilder zone(Function<ZoneResourceIdentifierBuilder, ZoneResourceIdentifierBuilder> builder) Zone from which the ShippingRate should be removed.
- Parameters:
builder
- function to build the zone value- Returns:
- Builder
-
withZone
public ShippingMethodRemoveShippingRateActionBuilder withZone(Function<ZoneResourceIdentifierBuilder, ZoneResourceIdentifier> builder) Zone from which the ShippingRate should be removed.
- Parameters:
builder
- function to build the zone value- Returns:
- Builder
-
zone
Zone from which the ShippingRate should be removed.
- Parameters:
zone
- value to be set- Returns:
- Builder
-
shippingRate
public ShippingMethodRemoveShippingRateActionBuilder shippingRate(Function<ShippingRateDraftBuilder, ShippingRateDraftBuilder> builder) Value to remove from
shippingRates
.- Parameters:
builder
- function to build the shippingRate value- Returns:
- Builder
-
withShippingRate
public ShippingMethodRemoveShippingRateActionBuilder withShippingRate(Function<ShippingRateDraftBuilder, ShippingRateDraft> builder) Value to remove from
shippingRates
.- Parameters:
builder
- function to build the shippingRate value- Returns:
- Builder
-
shippingRate
Value to remove from
shippingRates
.- Parameters:
shippingRate
- value to be set- Returns:
- Builder
-
getZone
Zone from which the ShippingRate should be removed.
- Returns:
- zone
-
getShippingRate
Value to remove from
shippingRates
.- Returns:
- shippingRate
-
build
builds ShippingMethodRemoveShippingRateAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ShippingMethodRemoveShippingRateAction>
- Returns:
- ShippingMethodRemoveShippingRateAction
-
buildUnchecked
builds ShippingMethodRemoveShippingRateAction without checking for non-null required values- Returns:
- ShippingMethodRemoveShippingRateAction
-
of
factory method for an instance of ShippingMethodRemoveShippingRateActionBuilder- Returns:
- builder
-
of
public static ShippingMethodRemoveShippingRateActionBuilder of(ShippingMethodRemoveShippingRateAction template) create builder for ShippingMethodRemoveShippingRateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-