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