Class SetCustomLineItemCustomFieldChangeBuilder
java.lang.Object
com.commercetools.history.models.change.SetCustomLineItemCustomFieldChangeBuilder
- All Implemented Interfaces:
Builder<SetCustomLineItemCustomFieldChange>
public class SetCustomLineItemCustomFieldChangeBuilder
extends Object
implements Builder<SetCustomLineItemCustomFieldChange>
SetCustomLineItemCustomFieldChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SetCustomLineItemCustomFieldChange setCustomLineItemCustomFieldChange = SetCustomLineItemCustomFieldChange.builder()
.change("{change}")
.name("{name}")
.customLineItem(customLineItemBuilder -> customLineItemBuilder)
.customLineItemId("{customLineItemId}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds SetCustomLineItemCustomFieldChange with checking for non-null required valuesbuilds SetCustomLineItemCustomFieldChange without checking for non-null required valuesset the value to the changecustomLineItem
(LocalizedString customLineItem) Name of the updated CustomLineItem.Name of the updated CustomLineItem.customLineItemId
(String customLineItemId) id
of the updated CustomLineItem.value of change}Name of the updated CustomLineItem.id
of the updated CustomLineItem.getName()
Name of the Custom Field.Value after the change.Value before the change.Name of the Custom Field.Value after the change.of()
factory method for an instance of SetCustomLineItemCustomFieldChangeBuilderof
(SetCustomLineItemCustomFieldChange template) create builder for SetCustomLineItemCustomFieldChange instancepreviousValue
(Object previousValue) Value before the change.Name of the updated CustomLineItem.
-
Constructor Details
-
SetCustomLineItemCustomFieldChangeBuilder
public SetCustomLineItemCustomFieldChangeBuilder()
-
-
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
-
customLineItem
public SetCustomLineItemCustomFieldChangeBuilder customLineItem(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Name of the updated CustomLineItem.
- Parameters:
builder
- function to build the customLineItem value- Returns:
- Builder
-
withCustomLineItem
public SetCustomLineItemCustomFieldChangeBuilder withCustomLineItem(Function<LocalizedStringBuilder, LocalizedString> builder) Name of the updated CustomLineItem.
- Parameters:
builder
- function to build the customLineItem value- Returns:
- Builder
-
customLineItem
Name of the updated CustomLineItem.
- Parameters:
customLineItem
- value to be set- Returns:
- Builder
-
customLineItemId
id
of the updated CustomLineItem.- Parameters:
customLineItemId
- 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
-
getCustomLineItem
Name of the updated CustomLineItem.
- Returns:
- customLineItem
-
getCustomLineItemId
id
of the updated CustomLineItem.- Returns:
- customLineItemId
-
build
builds SetCustomLineItemCustomFieldChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<SetCustomLineItemCustomFieldChange>
- Returns:
- SetCustomLineItemCustomFieldChange
-
buildUnchecked
builds SetCustomLineItemCustomFieldChange without checking for non-null required values- Returns:
- SetCustomLineItemCustomFieldChange
-
of
factory method for an instance of SetCustomLineItemCustomFieldChangeBuilder- Returns:
- builder
-
of
public static SetCustomLineItemCustomFieldChangeBuilder of(SetCustomLineItemCustomFieldChange template) create builder for SetCustomLineItemCustomFieldChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-