Class ShippingMethodRemoveZoneChangeBuilder
java.lang.Object
com.commercetools.history.models.change.ShippingMethodRemoveZoneChangeBuilder
- All Implemented Interfaces:
Builder<ShippingMethodRemoveZoneChange>
public class ShippingMethodRemoveZoneChangeBuilder
extends Object
implements Builder<ShippingMethodRemoveZoneChange>
ShippingMethodRemoveZoneChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShippingMethodRemoveZoneChange shippingMethodRemoveZoneChange = ShippingMethodRemoveZoneChange.builder()
.change("{change}")
.previousValue(previousValueBuilder -> previousValueBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ShippingMethodRemoveZoneChange with checking for non-null required valuesbuilds ShippingMethodRemoveZoneChange without checking for non-null required valuesset the value to the changevalue of change}Value before the change.of()factory method for an instance of ShippingMethodRemoveZoneChangeBuilderof(ShippingMethodRemoveZoneChange template) create builder for ShippingMethodRemoveZoneChange instancepreviousValue(Reference previousValue) Value before the change.previousValue(Function<ReferenceBuilder, Builder<? extends Reference>> builder) Value before the change.
-
Constructor Details
-
ShippingMethodRemoveZoneChangeBuilder
public ShippingMethodRemoveZoneChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change- value to be set- Returns:
- Builder
-
previousValue
Value before the change.
- Parameters:
previousValue- value to be set- Returns:
- Builder
-
previousValue
public ShippingMethodRemoveZoneChangeBuilder previousValue(Function<ReferenceBuilder, Builder<? extends Reference>> builder) Value before the change.
- Parameters:
builder- function to build the previousValue value- Returns:
- Builder
-
getChange
value of change}- Returns:
- change
-
getPreviousValue
Value before the change.
- Returns:
- previousValue
-
build
builds ShippingMethodRemoveZoneChange with checking for non-null required values- Specified by:
buildin interfaceBuilder<ShippingMethodRemoveZoneChange>- Returns:
- ShippingMethodRemoveZoneChange
-
buildUnchecked
builds ShippingMethodRemoveZoneChange without checking for non-null required values- Returns:
- ShippingMethodRemoveZoneChange
-
of
factory method for an instance of ShippingMethodRemoveZoneChangeBuilder- Returns:
- builder
-
of
create builder for ShippingMethodRemoveZoneChange instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-