Class TextLineItemValueBuilder
java.lang.Object
com.commercetools.history.models.change_value.TextLineItemValueBuilder
- All Implemented Interfaces:
Builder<TextLineItemValue>
TextLineItemValueBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
TextLineItemValue textLineItemValue = TextLineItemValue.builder()
.id("{id}")
.name(nameBuilder -> nameBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds TextLineItemValue with checking for non-null required valuesbuilds TextLineItemValue without checking for non-null required valuesgetId()
id
of the TextLineItem.getName()
Name of the TextLineItem.id
of the TextLineItem.name
(LocalizedString name) Name of the TextLineItem.Name of the TextLineItem.static TextLineItemValueBuilder
of()
factory method for an instance of TextLineItemValueBuilderstatic TextLineItemValueBuilder
of
(TextLineItemValue template) create builder for TextLineItemValue instanceName of the TextLineItem.
-
Constructor Details
-
TextLineItemValueBuilder
public TextLineItemValueBuilder()
-
-
Method Details
-
id
id
of the TextLineItem.- Parameters:
id
- value to be set- Returns:
- Builder
-
name
public TextLineItemValueBuilder name(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Name of the TextLineItem.
- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
withName
Name of the TextLineItem.
- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
name
Name of the TextLineItem.
- Parameters:
name
- value to be set- Returns:
- Builder
-
getId
id
of the TextLineItem.- Returns:
- id
-
getName
Name of the TextLineItem.
- Returns:
- name
-
build
builds TextLineItemValue with checking for non-null required values- Specified by:
build
in interfaceBuilder<TextLineItemValue>
- Returns:
- TextLineItemValue
-
buildUnchecked
builds TextLineItemValue without checking for non-null required values- Returns:
- TextLineItemValue
-
of
factory method for an instance of TextLineItemValueBuilder- Returns:
- builder
-
of
create builder for TextLineItemValue instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-