Class AddTextLineItemChangeBuilder
java.lang.Object
com.commercetools.history.models.change.AddTextLineItemChangeBuilder
- All Implemented Interfaces:
Builder<AddTextLineItemChange>
AddTextLineItemChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
AddTextLineItemChange addTextLineItemChange = AddTextLineItemChange.builder()
.change("{change}")
.nextValue(nextValueBuilder -> nextValueBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds AddTextLineItemChange with checking for non-null required valuesbuilds AddTextLineItemChange without checking for non-null required valuesset the value to the changevalue of change}Value after the change.nextValue
(TextLineItem nextValue) Value after the change.Value after the change.static AddTextLineItemChangeBuilder
of()
factory method for an instance of AddTextLineItemChangeBuilderstatic AddTextLineItemChangeBuilder
of
(AddTextLineItemChange template) create builder for AddTextLineItemChange instancewithNextValue
(Function<TextLineItemBuilder, TextLineItem> builder) Value after the change.
-
Constructor Details
-
AddTextLineItemChangeBuilder
public AddTextLineItemChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change
- value to be set- Returns:
- Builder
-
nextValue
public AddTextLineItemChangeBuilder nextValue(Function<TextLineItemBuilder, TextLineItemBuilder> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
withNextValue
public AddTextLineItemChangeBuilder withNextValue(Function<TextLineItemBuilder, TextLineItem> 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
-
getChange
value of change}- Returns:
- change
-
getNextValue
Value after the change.
- Returns:
- nextValue
-
build
builds AddTextLineItemChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<AddTextLineItemChange>
- Returns:
- AddTextLineItemChange
-
buildUnchecked
builds AddTextLineItemChange without checking for non-null required values- Returns:
- AddTextLineItemChange
-
of
factory method for an instance of AddTextLineItemChangeBuilder- Returns:
- builder
-
of
create builder for AddTextLineItemChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-