Class SetReturnItemLineItemCustomFieldChangeBuilder
java.lang.Object
com.commercetools.history.models.change.SetReturnItemLineItemCustomFieldChangeBuilder
- All Implemented Interfaces:
Builder<SetReturnItemLineItemCustomFieldChange>
public class SetReturnItemLineItemCustomFieldChangeBuilder
extends Object
implements Builder<SetReturnItemLineItemCustomFieldChange>
SetReturnItemLineItemCustomFieldChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SetReturnItemLineItemCustomFieldChange setReturnItemLineItemCustomFieldChange = SetReturnItemLineItemCustomFieldChange.builder()
.change("{change}")
.variant("{variant}")
.lineItem(lineItemBuilder -> lineItemBuilder)
.lineItemId("{lineItemId}")
.name("{name}")
.customTypeId("{customTypeId}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds SetReturnItemLineItemCustomFieldChange with checking for non-null required valuesbuilds SetReturnItemLineItemCustomFieldChange without checking for non-null required valuesset the value to the changecustomTypeId(String customTypeId) idof the referenced Type.value of change}idof the referenced Type.Name of the Product the updated Line Item is based on.idof the updated LineItem.getName()Name of the Custom Field.Value after the change.Value before the change.Identifier of the updated Product Variant.lineItem(LocalizedString lineItem) Name of the Product the updated Line Item is based on.Name of the Product the updated Line Item is based on.lineItemId(String lineItemId) idof the updated LineItem.Name of the Custom Field.Value after the change.of()factory method for an instance of SetReturnItemLineItemCustomFieldChangeBuilderof(SetReturnItemLineItemCustomFieldChange template) create builder for SetReturnItemLineItemCustomFieldChange instancepreviousValue(Object previousValue) Value before the change.Identifier of the updated Product Variant.Name of the Product the updated Line Item is based on.
-
Constructor Details
-
SetReturnItemLineItemCustomFieldChangeBuilder
public SetReturnItemLineItemCustomFieldChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change- value to be set- Returns:
- Builder
-
variant
Identifier of the updated Product Variant.
This field holds the SKU, if defined; otherwise the key; otherwise the ID.
- Parameters:
variant- value to be set- Returns:
- Builder
-
lineItem
public SetReturnItemLineItemCustomFieldChangeBuilder lineItem(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Name of the Product the updated Line Item is based on.
- Parameters:
builder- function to build the lineItem value- Returns:
- Builder
-
withLineItem
public SetReturnItemLineItemCustomFieldChangeBuilder withLineItem(Function<LocalizedStringBuilder, LocalizedString> builder) Name of the Product the updated Line Item is based on.
- Parameters:
builder- function to build the lineItem value- Returns:
- Builder
-
lineItem
Name of the Product the updated Line Item is based on.
- Parameters:
lineItem- value to be set- Returns:
- Builder
-
lineItemId
idof the updated LineItem.- Parameters:
lineItemId- value to be set- Returns:
- Builder
-
name
Name of the Custom Field.
- Parameters:
name- value to be set- Returns:
- Builder
-
customTypeId
idof the referenced Type.- Parameters:
customTypeId- value to be set- Returns:
- Builder
-
previousValue
Value before the change.
- Parameters:
previousValue- value to be set- Returns:
- Builder
-
nextValue
Value after the change.
- Parameters:
nextValue- value to be set- Returns:
- Builder
-
getChange
value of change}- Returns:
- change
-
getVariant
Identifier of the updated Product Variant.
This field holds the SKU, if defined; otherwise the key; otherwise the ID.
- Returns:
- variant
-
getLineItem
Name of the Product the updated Line Item is based on.
- Returns:
- lineItem
-
getLineItemId
idof the updated LineItem.- Returns:
- lineItemId
-
getName
Name of the Custom Field.
- Returns:
- name
-
getCustomTypeId
idof the referenced Type.- Returns:
- customTypeId
-
getPreviousValue
Value before the change.
- Returns:
- previousValue
-
getNextValue
Value after the change.
- Returns:
- nextValue
-
build
builds SetReturnItemLineItemCustomFieldChange with checking for non-null required values- Specified by:
buildin interfaceBuilder<SetReturnItemLineItemCustomFieldChange>- Returns:
- SetReturnItemLineItemCustomFieldChange
-
buildUnchecked
builds SetReturnItemLineItemCustomFieldChange without checking for non-null required values- Returns:
- SetReturnItemLineItemCustomFieldChange
-
of
factory method for an instance of SetReturnItemLineItemCustomFieldChangeBuilder- Returns:
- builder
-
of
public static SetReturnItemLineItemCustomFieldChangeBuilder of(SetReturnItemLineItemCustomFieldChange template) create builder for SetReturnItemLineItemCustomFieldChange instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-