Class CustomFieldExpandedValueBuilder
java.lang.Object
com.commercetools.history.models.change_value.CustomFieldExpandedValueBuilder
- All Implemented Interfaces:
Builder<CustomFieldExpandedValue>
public class CustomFieldExpandedValueBuilder
extends Object
implements Builder<CustomFieldExpandedValue>
CustomFieldExpandedValueBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomFieldExpandedValue customFieldExpandedValue = CustomFieldExpandedValue.builder()
.name("{name}")
.label(labelBuilder -> labelBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CustomFieldExpandedValue with checking for non-null required valuesbuilds CustomFieldExpandedValue without checking for non-null required valuesgetLabel()
User-defined label of the Custom Field.getName()
Name of the Custom Field.getValue()
CustomFieldValue based on the FieldType.label
(LocalizedString label) User-defined label of the Custom Field.User-defined label of the Custom Field.Name of the Custom Field.of()
factory method for an instance of CustomFieldExpandedValueBuilderof
(CustomFieldExpandedValue template) create builder for CustomFieldExpandedValue instanceCustomFieldValue based on the FieldType.User-defined label of the Custom Field.
-
Constructor Details
-
CustomFieldExpandedValueBuilder
public CustomFieldExpandedValueBuilder()
-
-
Method Details
-
name
Name of the Custom Field.
- Parameters:
name
- value to be set- Returns:
- Builder
-
value
CustomFieldValue based on the FieldType.
- Parameters:
value
- value to be set- Returns:
- Builder
-
label
public CustomFieldExpandedValueBuilder label(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) User-defined label of the Custom Field.
- Parameters:
builder
- function to build the label value- Returns:
- Builder
-
withLabel
public CustomFieldExpandedValueBuilder withLabel(Function<LocalizedStringBuilder, LocalizedString> builder) User-defined label of the Custom Field.
- Parameters:
builder
- function to build the label value- Returns:
- Builder
-
label
User-defined label of the Custom Field.
- Parameters:
label
- value to be set- Returns:
- Builder
-
getName
Name of the Custom Field.
- Returns:
- name
-
getValue
CustomFieldValue based on the FieldType.
- Returns:
- value
-
getLabel
User-defined label of the Custom Field.
- Returns:
- label
-
build
builds CustomFieldExpandedValue with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomFieldExpandedValue>
- Returns:
- CustomFieldExpandedValue
-
buildUnchecked
builds CustomFieldExpandedValue without checking for non-null required values- Returns:
- CustomFieldExpandedValue
-
of
factory method for an instance of CustomFieldExpandedValueBuilder- Returns:
- builder
-
of
create builder for CustomFieldExpandedValue instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-