Class SetShoppingListLineItemCustomFieldChangeBuilder
java.lang.Object
com.commercetools.history.models.change.SetShoppingListLineItemCustomFieldChangeBuilder
- All Implemented Interfaces:
Builder<SetShoppingListLineItemCustomFieldChange>
public class SetShoppingListLineItemCustomFieldChangeBuilder
extends Object
implements Builder<SetShoppingListLineItemCustomFieldChange>
SetShoppingListLineItemCustomFieldChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SetShoppingListLineItemCustomFieldChange setShoppingListLineItemCustomFieldChange = SetShoppingListLineItemCustomFieldChange.builder()
.change("{change}")
.name("{name}")
.customTypeId("{customTypeId}")
.lineItem(lineItemBuilder -> lineItemBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds SetShoppingListLineItemCustomFieldChange with checking for non-null required valuesbuilds SetShoppingListLineItemCustomFieldChange without checking for non-null required valuesset the value to the changecustomTypeId
(String customTypeId) id
of the referenced Type.value of change}id
of the referenced Type.Holds information about the updated Shopping List Line Item.getName()
Name of the Custom Field.Value after the change.Value before the change.lineItem
(ShoppingListLineItemValue lineItem) Holds information about the updated Shopping List Line Item.Holds information about the updated Shopping List Line Item.Name of the Custom Field.Value after the change.of()
factory method for an instance of SetShoppingListLineItemCustomFieldChangeBuilderof
(SetShoppingListLineItemCustomFieldChange template) create builder for SetShoppingListLineItemCustomFieldChange instancepreviousValue
(Object previousValue) Value before the change.Holds information about the updated Shopping List Line Item.
-
Constructor Details
-
SetShoppingListLineItemCustomFieldChangeBuilder
public SetShoppingListLineItemCustomFieldChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change
- 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
-
name
Name of the Custom Field.
- Parameters:
name
- value to be set- Returns:
- Builder
-
customTypeId
id
of the referenced Type.- Parameters:
customTypeId
- value to be set- Returns:
- Builder
-
lineItem
public SetShoppingListLineItemCustomFieldChangeBuilder lineItem(Function<ShoppingListLineItemValueBuilder, ShoppingListLineItemValueBuilder> builder) Holds information about the updated Shopping List Line Item.
- Parameters:
builder
- function to build the lineItem value- Returns:
- Builder
-
withLineItem
public SetShoppingListLineItemCustomFieldChangeBuilder withLineItem(Function<ShoppingListLineItemValueBuilder, ShoppingListLineItemValue> builder) Holds information about the updated Shopping List Line Item.
- Parameters:
builder
- function to build the lineItem value- Returns:
- Builder
-
lineItem
Holds information about the updated Shopping List Line Item.
- Parameters:
lineItem
- 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
-
getName
Name of the Custom Field.
- Returns:
- name
-
getCustomTypeId
id
of the referenced Type.- Returns:
- customTypeId
-
getLineItem
Holds information about the updated Shopping List Line Item.
- Returns:
- lineItem
-
build
builds SetShoppingListLineItemCustomFieldChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<SetShoppingListLineItemCustomFieldChange>
- Returns:
- SetShoppingListLineItemCustomFieldChange
-
buildUnchecked
builds SetShoppingListLineItemCustomFieldChange without checking for non-null required values- Returns:
- SetShoppingListLineItemCustomFieldChange
-
of
factory method for an instance of SetShoppingListLineItemCustomFieldChangeBuilder- Returns:
- builder
-
of
public static SetShoppingListLineItemCustomFieldChangeBuilder of(SetShoppingListLineItemCustomFieldChange template) create builder for SetShoppingListLineItemCustomFieldChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-