Class SetTextLineItemCustomFieldChangeBuilder
java.lang.Object
com.commercetools.history.models.change.SetTextLineItemCustomFieldChangeBuilder
- All Implemented Interfaces:
Builder<SetTextLineItemCustomFieldChange>
public class SetTextLineItemCustomFieldChangeBuilder
extends Object
implements Builder<SetTextLineItemCustomFieldChange>
SetTextLineItemCustomFieldChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SetTextLineItemCustomFieldChange setTextLineItemCustomFieldChange = SetTextLineItemCustomFieldChange.builder()
.change("{change}")
.name("{name}")
.customTypeId("{customTypeId}")
.textLineItem(textLineItemBuilder -> textLineItemBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds SetTextLineItemCustomFieldChange with checking for non-null required valuesbuilds SetTextLineItemCustomFieldChange 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.getName()
Name of the Custom Field.Value after the change.Value before the change.Holds information about the updated Text Line Item.Name of the Custom Field.Value after the change.of()
factory method for an instance of SetTextLineItemCustomFieldChangeBuilderof
(SetTextLineItemCustomFieldChange template) create builder for SetTextLineItemCustomFieldChange instancepreviousValue
(Object previousValue) Value before the change.textLineItem
(TextLineItemValue textLineItem) Holds information about the updated Text Line Item.Holds information about the updated Text Line Item.Holds information about the updated Text Line Item.
-
Constructor Details
-
SetTextLineItemCustomFieldChangeBuilder
public SetTextLineItemCustomFieldChangeBuilder()
-
-
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
-
textLineItem
public SetTextLineItemCustomFieldChangeBuilder textLineItem(Function<TextLineItemValueBuilder, TextLineItemValueBuilder> builder) Holds information about the updated Text Line Item.
- Parameters:
builder
- function to build the textLineItem value- Returns:
- Builder
-
withTextLineItem
public SetTextLineItemCustomFieldChangeBuilder withTextLineItem(Function<TextLineItemValueBuilder, TextLineItemValue> builder) Holds information about the updated Text Line Item.
- Parameters:
builder
- function to build the textLineItem value- Returns:
- Builder
-
textLineItem
Holds information about the updated Text Line Item.
- Parameters:
textLineItem
- 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
-
getTextLineItem
Holds information about the updated Text Line Item.
- Returns:
- textLineItem
-
build
builds SetTextLineItemCustomFieldChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<SetTextLineItemCustomFieldChange>
- Returns:
- SetTextLineItemCustomFieldChange
-
buildUnchecked
builds SetTextLineItemCustomFieldChange without checking for non-null required values- Returns:
- SetTextLineItemCustomFieldChange
-
of
factory method for an instance of SetTextLineItemCustomFieldChangeBuilder- Returns:
- builder
-
of
create builder for SetTextLineItemCustomFieldChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-