Class ShippingMethodRemoveShippingRateChangeBuilder
java.lang.Object
com.commercetools.history.models.change.ShippingMethodRemoveShippingRateChangeBuilder
- All Implemented Interfaces:
Builder<ShippingMethodRemoveShippingRateChange>
public class ShippingMethodRemoveShippingRateChangeBuilder
extends Object
implements Builder<ShippingMethodRemoveShippingRateChange>
ShippingMethodRemoveShippingRateChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShippingMethodRemoveShippingRateChange shippingMethodRemoveShippingRateChange = ShippingMethodRemoveShippingRateChange.builder()
.change("{change}")
.zone(zoneBuilder -> zoneBuilder)
.previousValue(previousValueBuilder -> previousValueBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ShippingMethodRemoveShippingRateChange with checking for non-null required valuesbuilds ShippingMethodRemoveShippingRateChange without checking for non-null required valuesset the value to the changevalue of change}Value before the change.getZone()Zone from which the ShippingRate was removed.of()factory method for an instance of ShippingMethodRemoveShippingRateChangeBuilderof(ShippingMethodRemoveShippingRateChange template) create builder for ShippingMethodRemoveShippingRateChange instancepreviousValue(ShippingRate previousValue) Value before the change.Value before the change.Value before the change.Zone from which the ShippingRate was removed.zone(ZoneResourceIdentifier zone) Zone from which the ShippingRate was removed.Zone from which the ShippingRate was removed.
-
Constructor Details
-
ShippingMethodRemoveShippingRateChangeBuilder
public ShippingMethodRemoveShippingRateChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change- value to be set- Returns:
- Builder
-
zone
public ShippingMethodRemoveShippingRateChangeBuilder zone(Function<ZoneResourceIdentifierBuilder, ZoneResourceIdentifierBuilder> builder) Zone from which the ShippingRate was removed.
- Parameters:
builder- function to build the zone value- Returns:
- Builder
-
withZone
public ShippingMethodRemoveShippingRateChangeBuilder withZone(Function<ZoneResourceIdentifierBuilder, ZoneResourceIdentifier> builder) Zone from which the ShippingRate was removed.
- Parameters:
builder- function to build the zone value- Returns:
- Builder
-
zone
Zone from which the ShippingRate was removed.
- Parameters:
zone- value to be set- Returns:
- Builder
-
previousValue
public ShippingMethodRemoveShippingRateChangeBuilder previousValue(Function<ShippingRateBuilder, ShippingRateBuilder> builder) Value before the change.
- Parameters:
builder- function to build the previousValue value- Returns:
- Builder
-
withPreviousValue
public ShippingMethodRemoveShippingRateChangeBuilder withPreviousValue(Function<ShippingRateBuilder, ShippingRate> builder) Value before the change.
- Parameters:
builder- function to build the previousValue value- Returns:
- Builder
-
previousValue
Value before the change.
- Parameters:
previousValue- value to be set- Returns:
- Builder
-
getChange
value of change}- Returns:
- change
-
getZone
Zone from which the ShippingRate was removed.
- Returns:
- zone
-
getPreviousValue
Value before the change.
- Returns:
- previousValue
-
build
builds ShippingMethodRemoveShippingRateChange with checking for non-null required values- Specified by:
buildin interfaceBuilder<ShippingMethodRemoveShippingRateChange>- Returns:
- ShippingMethodRemoveShippingRateChange
-
buildUnchecked
builds ShippingMethodRemoveShippingRateChange without checking for non-null required values- Returns:
- ShippingMethodRemoveShippingRateChange
-
of
factory method for an instance of ShippingMethodRemoveShippingRateChangeBuilder- Returns:
- builder
-
of
public static ShippingMethodRemoveShippingRateChangeBuilder of(ShippingMethodRemoveShippingRateChange template) create builder for ShippingMethodRemoveShippingRateChange instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-