Class SetLineItemTaxedPriceChangeBuilder
java.lang.Object
com.commercetools.history.models.change.SetLineItemTaxedPriceChangeBuilder
- All Implemented Interfaces:
Builder<SetLineItemTaxedPriceChange>
public class SetLineItemTaxedPriceChangeBuilder
extends Object
implements Builder<SetLineItemTaxedPriceChange>
SetLineItemTaxedPriceChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SetLineItemTaxedPriceChange setLineItemTaxedPriceChange = SetLineItemTaxedPriceChange.builder()
.change("{change}")
.previousValue(previousValueBuilder -> previousValueBuilder)
.nextValue(nextValueBuilder -> nextValueBuilder)
.lineItem(lineItemBuilder -> lineItemBuilder)
.lineItemId("{lineItemId}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds SetLineItemTaxedPriceChange with checking for non-null required valuesbuilds SetLineItemTaxedPriceChange without checking for non-null required valuesset the value to the changevalue of change}Name of the Product the Line Item is based on.id
of the updated LineItem.Value after the change.Value before the change.lineItem
(LocalizedString lineItem) Name of the Product the Line Item is based on.Name of the Product the Line Item is based on.lineItemId
(String lineItemId) id
of the updated LineItem.nextValue
(TaxedItemPrice nextValue) Value after the change.Value after the change.of()
factory method for an instance of SetLineItemTaxedPriceChangeBuilderof
(SetLineItemTaxedPriceChange template) create builder for SetLineItemTaxedPriceChange instancepreviousValue
(TaxedItemPrice previousValue) Value before the change.Value before the change.Name of the Product the Line Item is based on.Value after the change.Value before the change.
-
Constructor Details
-
SetLineItemTaxedPriceChangeBuilder
public SetLineItemTaxedPriceChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change
- value to be set- Returns:
- Builder
-
previousValue
public SetLineItemTaxedPriceChangeBuilder previousValue(Function<TaxedItemPriceBuilder, TaxedItemPriceBuilder> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
withPreviousValue
public SetLineItemTaxedPriceChangeBuilder withPreviousValue(Function<TaxedItemPriceBuilder, TaxedItemPrice> 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 SetLineItemTaxedPriceChangeBuilder nextValue(Function<TaxedItemPriceBuilder, TaxedItemPriceBuilder> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
withNextValue
public SetLineItemTaxedPriceChangeBuilder withNextValue(Function<TaxedItemPriceBuilder, TaxedItemPrice> 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
-
lineItem
public SetLineItemTaxedPriceChangeBuilder lineItem(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Name of the Product the Line Item is based on.
- Parameters:
builder
- function to build the lineItem value- Returns:
- Builder
-
withLineItem
public SetLineItemTaxedPriceChangeBuilder withLineItem(Function<LocalizedStringBuilder, LocalizedString> builder) Name of the Product the Line Item is based on.
- Parameters:
builder
- function to build the lineItem value- Returns:
- Builder
-
lineItem
Name of the Product the Line Item is based on.
- Parameters:
lineItem
- 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
-
getLineItem
Name of the Product the Line Item is based on.
- Returns:
- lineItem
-
getLineItemId
id
of the updated LineItem.- Returns:
- lineItemId
-
build
builds SetLineItemTaxedPriceChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<SetLineItemTaxedPriceChange>
- Returns:
- SetLineItemTaxedPriceChange
-
buildUnchecked
builds SetLineItemTaxedPriceChange without checking for non-null required values- Returns:
- SetLineItemTaxedPriceChange
-
of
factory method for an instance of SetLineItemTaxedPriceChangeBuilder- Returns:
- builder
-
of
create builder for SetLineItemTaxedPriceChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-