Class TypeChangeLocalizedEnumValueLabelActionBuilder
java.lang.Object
com.commercetools.api.models.type.TypeChangeLocalizedEnumValueLabelActionBuilder
- All Implemented Interfaces:
Builder<TypeChangeLocalizedEnumValueLabelAction>
public class TypeChangeLocalizedEnumValueLabelActionBuilder
extends Object
implements Builder<TypeChangeLocalizedEnumValueLabelAction>
TypeChangeLocalizedEnumValueLabelActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
TypeChangeLocalizedEnumValueLabelAction typeChangeLocalizedEnumValueLabelAction = TypeChangeLocalizedEnumValueLabelAction.builder()
.fieldName("{fieldName}")
.value(valueBuilder -> valueBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds TypeChangeLocalizedEnumValueLabelAction with checking for non-null required valuesbuilds TypeChangeLocalizedEnumValueLabelAction without checking for non-null required valuesname
of the FieldDefinition to update.name
of the FieldDefinition to update.getValue()
New value to set.of()
factory method for an instance of TypeChangeLocalizedEnumValueLabelActionBuilderof
(TypeChangeLocalizedEnumValueLabelAction template) create builder for TypeChangeLocalizedEnumValueLabelAction instanceNew value to set.New value to set.New value to set.
-
Constructor Details
-
TypeChangeLocalizedEnumValueLabelActionBuilder
public TypeChangeLocalizedEnumValueLabelActionBuilder()
-
-
Method Details
-
fieldName
name
of the FieldDefinition to update.- Parameters:
fieldName
- value to be set- Returns:
- Builder
-
value
public TypeChangeLocalizedEnumValueLabelActionBuilder value(Function<CustomFieldLocalizedEnumValueBuilder, CustomFieldLocalizedEnumValueBuilder> builder) New value to set. Must not be empty.
- Parameters:
builder
- function to build the value value- Returns:
- Builder
-
withValue
public TypeChangeLocalizedEnumValueLabelActionBuilder withValue(Function<CustomFieldLocalizedEnumValueBuilder, CustomFieldLocalizedEnumValue> builder) New value to set. Must not be empty.
- Parameters:
builder
- function to build the value value- Returns:
- Builder
-
value
New value to set. Must not be empty.
- Parameters:
value
- value to be set- Returns:
- Builder
-
getFieldName
name
of the FieldDefinition to update.- Returns:
- fieldName
-
getValue
New value to set. Must not be empty.
- Returns:
- value
-
build
builds TypeChangeLocalizedEnumValueLabelAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<TypeChangeLocalizedEnumValueLabelAction>
- Returns:
- TypeChangeLocalizedEnumValueLabelAction
-
buildUnchecked
builds TypeChangeLocalizedEnumValueLabelAction without checking for non-null required values- Returns:
- TypeChangeLocalizedEnumValueLabelAction
-
of
factory method for an instance of TypeChangeLocalizedEnumValueLabelActionBuilder- Returns:
- builder
-
of
public static TypeChangeLocalizedEnumValueLabelActionBuilder of(TypeChangeLocalizedEnumValueLabelAction template) create builder for TypeChangeLocalizedEnumValueLabelAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-