Class FieldDefinitionOrderValueBuilder
java.lang.Object
com.commercetools.history.models.change_value.FieldDefinitionOrderValueBuilder
- All Implemented Interfaces:
Builder<FieldDefinitionOrderValue>
public class FieldDefinitionOrderValueBuilder
extends Object
implements Builder<FieldDefinitionOrderValue>
FieldDefinitionOrderValueBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
FieldDefinitionOrderValue fieldDefinitionOrderValue = FieldDefinitionOrderValue.builder()
.name("{name}")
.label(labelBuilder -> labelBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds FieldDefinitionOrderValue with checking for non-null required valuesbuilds FieldDefinitionOrderValue without checking for non-null required valuesgetLabel()
Descriptive label of the field.getName()
Name of the FieldDefinition.label
(LocalizedString label) Descriptive label of the field.Descriptive label of the field.Name of the FieldDefinition.of()
factory method for an instance of FieldDefinitionOrderValueBuilderof
(FieldDefinitionOrderValue template) create builder for FieldDefinitionOrderValue instanceDescriptive label of the field.
-
Constructor Details
-
FieldDefinitionOrderValueBuilder
public FieldDefinitionOrderValueBuilder()
-
-
Method Details
-
name
Name of the FieldDefinition.
- Parameters:
name
- value to be set- Returns:
- Builder
-
label
public FieldDefinitionOrderValueBuilder label(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Descriptive label of the field.
- Parameters:
builder
- function to build the label value- Returns:
- Builder
-
withLabel
public FieldDefinitionOrderValueBuilder withLabel(Function<LocalizedStringBuilder, LocalizedString> builder) Descriptive label of the field.
- Parameters:
builder
- function to build the label value- Returns:
- Builder
-
label
Descriptive label of the field.
- Parameters:
label
- value to be set- Returns:
- Builder
-
getName
Name of the FieldDefinition.
- Returns:
- name
-
getLabel
Descriptive label of the field.
- Returns:
- label
-
build
builds FieldDefinitionOrderValue with checking for non-null required values- Specified by:
build
in interfaceBuilder<FieldDefinitionOrderValue>
- Returns:
- FieldDefinitionOrderValue
-
buildUnchecked
builds FieldDefinitionOrderValue without checking for non-null required values- Returns:
- FieldDefinitionOrderValue
-
of
factory method for an instance of FieldDefinitionOrderValueBuilder- Returns:
- builder
-
of
create builder for FieldDefinitionOrderValue instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-