Class TypeChangeEnumValueLabelActionBuilder
java.lang.Object
com.commercetools.api.models.type.TypeChangeEnumValueLabelActionBuilder
- All Implemented Interfaces:
Builder<TypeChangeEnumValueLabelAction>
public class TypeChangeEnumValueLabelActionBuilder
extends Object
implements Builder<TypeChangeEnumValueLabelAction>
TypeChangeEnumValueLabelActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
TypeChangeEnumValueLabelAction typeChangeEnumValueLabelAction = TypeChangeEnumValueLabelAction.builder()
.fieldName("{fieldName}")
.value(valueBuilder -> valueBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds TypeChangeEnumValueLabelAction with checking for non-null required valuesbuilds TypeChangeEnumValueLabelAction 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 TypeChangeEnumValueLabelActionBuilderof
(TypeChangeEnumValueLabelAction template) create builder for TypeChangeEnumValueLabelAction instancevalue
(CustomFieldEnumValue value) New value to set.New value to set.New value to set.
-
Constructor Details
-
TypeChangeEnumValueLabelActionBuilder
public TypeChangeEnumValueLabelActionBuilder()
-
-
Method Details
-
fieldName
name
of the FieldDefinition to update.- Parameters:
fieldName
- value to be set- Returns:
- Builder
-
value
public TypeChangeEnumValueLabelActionBuilder value(Function<CustomFieldEnumValueBuilder, CustomFieldEnumValueBuilder> builder) New value to set. Must not be empty.
- Parameters:
builder
- function to build the value value- Returns:
- Builder
-
withValue
public TypeChangeEnumValueLabelActionBuilder withValue(Function<CustomFieldEnumValueBuilder, CustomFieldEnumValue> 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 TypeChangeEnumValueLabelAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<TypeChangeEnumValueLabelAction>
- Returns:
- TypeChangeEnumValueLabelAction
-
buildUnchecked
builds TypeChangeEnumValueLabelAction without checking for non-null required values- Returns:
- TypeChangeEnumValueLabelAction
-
of
factory method for an instance of TypeChangeEnumValueLabelActionBuilder- Returns:
- builder
-
of
create builder for TypeChangeEnumValueLabelAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-