Class SetCustomShippingMethodChangeBuilder
java.lang.Object
com.commercetools.history.models.change.SetCustomShippingMethodChangeBuilder
- All Implemented Interfaces:
Builder<SetCustomShippingMethodChange>
public class SetCustomShippingMethodChangeBuilder
extends Object
implements Builder<SetCustomShippingMethodChange>
SetCustomShippingMethodChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SetCustomShippingMethodChange setCustomShippingMethodChange = SetCustomShippingMethodChange.builder()
.change("{change}")
.previousValue(previousValueBuilder -> previousValueBuilder)
.nextValue(nextValueBuilder -> nextValueBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds SetCustomShippingMethodChange with checking for non-null required valuesbuilds SetCustomShippingMethodChange without checking for non-null required valuesset the value to the changevalue of change}Value after the change.Value before the change.nextValue
(CustomShippingMethodChangeValue nextValue) Value after the change.nextValue
(Function<CustomShippingMethodChangeValueBuilder, CustomShippingMethodChangeValueBuilder> builder) Value after the change.of()
factory method for an instance of SetCustomShippingMethodChangeBuilderof
(SetCustomShippingMethodChange template) create builder for SetCustomShippingMethodChange instancepreviousValue
(CustomShippingMethodChangeValue previousValue) Value before the change.previousValue
(Function<CustomShippingMethodChangeValueBuilder, CustomShippingMethodChangeValueBuilder> builder) Value before the change.withNextValue
(Function<CustomShippingMethodChangeValueBuilder, CustomShippingMethodChangeValue> builder) Value after the change.withPreviousValue
(Function<CustomShippingMethodChangeValueBuilder, CustomShippingMethodChangeValue> builder) Value before the change.
-
Constructor Details
-
SetCustomShippingMethodChangeBuilder
public SetCustomShippingMethodChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change
- value to be set- Returns:
- Builder
-
previousValue
public SetCustomShippingMethodChangeBuilder previousValue(Function<CustomShippingMethodChangeValueBuilder, CustomShippingMethodChangeValueBuilder> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
withPreviousValue
public SetCustomShippingMethodChangeBuilder withPreviousValue(Function<CustomShippingMethodChangeValueBuilder, CustomShippingMethodChangeValue> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
previousValue
public SetCustomShippingMethodChangeBuilder previousValue(CustomShippingMethodChangeValue previousValue) Value before the change.
- Parameters:
previousValue
- value to be set- Returns:
- Builder
-
nextValue
public SetCustomShippingMethodChangeBuilder nextValue(Function<CustomShippingMethodChangeValueBuilder, CustomShippingMethodChangeValueBuilder> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
withNextValue
public SetCustomShippingMethodChangeBuilder withNextValue(Function<CustomShippingMethodChangeValueBuilder, CustomShippingMethodChangeValue> 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
-
getPreviousValue
Value before the change.
- Returns:
- previousValue
-
getNextValue
Value after the change.
- Returns:
- nextValue
-
build
builds SetCustomShippingMethodChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<SetCustomShippingMethodChange>
- Returns:
- SetCustomShippingMethodChange
-
buildUnchecked
builds SetCustomShippingMethodChange without checking for non-null required values- Returns:
- SetCustomShippingMethodChange
-
of
factory method for an instance of SetCustomShippingMethodChangeBuilder- Returns:
- builder
-
of
create builder for SetCustomShippingMethodChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-