Class ShippingMethodAddShippingRateChangeBuilder
java.lang.Object
com.commercetools.history.models.change.ShippingMethodAddShippingRateChangeBuilder
- All Implemented Interfaces:
Builder<ShippingMethodAddShippingRateChange>
public class ShippingMethodAddShippingRateChangeBuilder
extends Object
implements Builder<ShippingMethodAddShippingRateChange>
ShippingMethodAddShippingRateChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShippingMethodAddShippingRateChange shippingMethodAddShippingRateChange = ShippingMethodAddShippingRateChange.builder()
.change("{change}")
.zone(zoneBuilder -> zoneBuilder)
.nextValue(nextValueBuilder -> nextValueBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ShippingMethodAddShippingRateChange with checking for non-null required valuesbuilds ShippingMethodAddShippingRateChange without checking for non-null required valuesset the value to the changevalue of change}Value after the change.getZone()Zone to which the ShippingRate was added.nextValue(ShippingRate nextValue) Value after the change.Value after the change.of()factory method for an instance of ShippingMethodAddShippingRateChangeBuilderof(ShippingMethodAddShippingRateChange template) create builder for ShippingMethodAddShippingRateChange instancewithNextValue(Function<ShippingRateBuilder, ShippingRate> builder) Value after the change.Zone to which the ShippingRate was added.zone(ZoneResourceIdentifier zone) Zone to which the ShippingRate was added.Zone to which the ShippingRate was added.
-
Constructor Details
-
ShippingMethodAddShippingRateChangeBuilder
public ShippingMethodAddShippingRateChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change- value to be set- Returns:
- Builder
-
zone
public ShippingMethodAddShippingRateChangeBuilder zone(Function<ZoneResourceIdentifierBuilder, ZoneResourceIdentifierBuilder> builder) Zone to which the ShippingRate was added.
- Parameters:
builder- function to build the zone value- Returns:
- Builder
-
withZone
public ShippingMethodAddShippingRateChangeBuilder withZone(Function<ZoneResourceIdentifierBuilder, ZoneResourceIdentifier> builder) Zone to which the ShippingRate was added.
- Parameters:
builder- function to build the zone value- Returns:
- Builder
-
zone
Zone to which the ShippingRate was added.
- Parameters:
zone- value to be set- Returns:
- Builder
-
nextValue
public ShippingMethodAddShippingRateChangeBuilder nextValue(Function<ShippingRateBuilder, ShippingRateBuilder> builder) Value after the change.
- Parameters:
builder- function to build the nextValue value- Returns:
- Builder
-
withNextValue
public ShippingMethodAddShippingRateChangeBuilder withNextValue(Function<ShippingRateBuilder, ShippingRate> builder) Value after the change.
- Parameters:
builder- function to build the nextValue value- Returns:
- Builder
-
nextValue
Value after the change.
- Parameters:
nextValue- value to be set- Returns:
- Builder
-
getChange
value of change}- Returns:
- change
-
getZone
Zone to which the ShippingRate was added.
- Returns:
- zone
-
getNextValue
Value after the change.
- Returns:
- nextValue
-
build
builds ShippingMethodAddShippingRateChange with checking for non-null required values- Specified by:
buildin interfaceBuilder<ShippingMethodAddShippingRateChange>- Returns:
- ShippingMethodAddShippingRateChange
-
buildUnchecked
builds ShippingMethodAddShippingRateChange without checking for non-null required values- Returns:
- ShippingMethodAddShippingRateChange
-
of
factory method for an instance of ShippingMethodAddShippingRateChangeBuilder- Returns:
- builder
-
of
public static ShippingMethodAddShippingRateChangeBuilder of(ShippingMethodAddShippingRateChange template) create builder for ShippingMethodAddShippingRateChange instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-