Class SetCustomLineItemShippingDetailsChangeBuilder
java.lang.Object
com.commercetools.history.models.change.SetCustomLineItemShippingDetailsChangeBuilder
- All Implemented Interfaces:
Builder<SetCustomLineItemShippingDetailsChange>
public class SetCustomLineItemShippingDetailsChangeBuilder
extends Object
implements Builder<SetCustomLineItemShippingDetailsChange>
SetCustomLineItemShippingDetailsChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SetCustomLineItemShippingDetailsChange setCustomLineItemShippingDetailsChange = SetCustomLineItemShippingDetailsChange.builder()
.change("{change}")
.previousValue(previousValueBuilder -> previousValueBuilder)
.nextValue(nextValueBuilder -> nextValueBuilder)
.customLineItemId("{customLineItemId}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds SetCustomLineItemShippingDetailsChange with checking for non-null required valuesbuilds SetCustomLineItemShippingDetailsChange without checking for non-null required valuesset the value to the changecustomLineItemId
(String customLineItemId) id
of the updated CustomLineItem.value of change}id
of the updated CustomLineItem.Value after the change.Value before the change.nextValue
(ItemShippingDetails nextValue) Value after the change.Value after the change.of()
factory method for an instance of SetCustomLineItemShippingDetailsChangeBuilderof
(SetCustomLineItemShippingDetailsChange template) create builder for SetCustomLineItemShippingDetailsChange instancepreviousValue
(ItemShippingDetails previousValue) Value before the change.Value before the change.Value after the change.Value before the change.
-
Constructor Details
-
SetCustomLineItemShippingDetailsChangeBuilder
public SetCustomLineItemShippingDetailsChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change
- value to be set- Returns:
- Builder
-
previousValue
public SetCustomLineItemShippingDetailsChangeBuilder previousValue(Function<ItemShippingDetailsBuilder, ItemShippingDetailsBuilder> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
withPreviousValue
public SetCustomLineItemShippingDetailsChangeBuilder withPreviousValue(Function<ItemShippingDetailsBuilder, ItemShippingDetails> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
previousValue
public SetCustomLineItemShippingDetailsChangeBuilder previousValue(ItemShippingDetails previousValue) Value before the change.
- Parameters:
previousValue
- value to be set- Returns:
- Builder
-
nextValue
public SetCustomLineItemShippingDetailsChangeBuilder nextValue(Function<ItemShippingDetailsBuilder, ItemShippingDetailsBuilder> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
withNextValue
public SetCustomLineItemShippingDetailsChangeBuilder withNextValue(Function<ItemShippingDetailsBuilder, ItemShippingDetails> 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
-
customLineItemId
id
of the updated CustomLineItem.- Parameters:
customLineItemId
- 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
-
getCustomLineItemId
id
of the updated CustomLineItem.- Returns:
- customLineItemId
-
build
builds SetCustomLineItemShippingDetailsChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<SetCustomLineItemShippingDetailsChange>
- Returns:
- SetCustomLineItemShippingDetailsChange
-
buildUnchecked
builds SetCustomLineItemShippingDetailsChange without checking for non-null required values- Returns:
- SetCustomLineItemShippingDetailsChange
-
of
factory method for an instance of SetCustomLineItemShippingDetailsChangeBuilder- Returns:
- builder
-
of
public static SetCustomLineItemShippingDetailsChangeBuilder of(SetCustomLineItemShippingDetailsChange template) create builder for SetCustomLineItemShippingDetailsChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-