Class TypeAddLocalizedEnumValueActionBuilder
java.lang.Object
com.commercetools.api.models.type.TypeAddLocalizedEnumValueActionBuilder
- All Implemented Interfaces:
Builder<TypeAddLocalizedEnumValueAction>
public class TypeAddLocalizedEnumValueActionBuilder
extends Object
implements Builder<TypeAddLocalizedEnumValueAction>
TypeAddLocalizedEnumValueActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
TypeAddLocalizedEnumValueAction typeAddLocalizedEnumValueAction = TypeAddLocalizedEnumValueAction.builder()
.fieldName("{fieldName}")
.value(valueBuilder -> valueBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds TypeAddLocalizedEnumValueAction with checking for non-null required valuesbuilds TypeAddLocalizedEnumValueAction without checking for non-null required valuesnameof the FieldDefinition to update.nameof the FieldDefinition to update.getValue()Value to append to the array.of()factory method for an instance of TypeAddLocalizedEnumValueActionBuilderof(TypeAddLocalizedEnumValueAction template) create builder for TypeAddLocalizedEnumValueAction instanceValue to append to the array.Value to append to the array.Value to append to the array.
-
Constructor Details
-
TypeAddLocalizedEnumValueActionBuilder
public TypeAddLocalizedEnumValueActionBuilder()
-
-
Method Details
-
fieldName
nameof the FieldDefinition to update.- Parameters:
fieldName- value to be set- Returns:
- Builder
-
value
public TypeAddLocalizedEnumValueActionBuilder value(Function<CustomFieldLocalizedEnumValueBuilder, CustomFieldLocalizedEnumValueBuilder> builder) Value to append to the array.
- Parameters:
builder- function to build the value value- Returns:
- Builder
-
withValue
public TypeAddLocalizedEnumValueActionBuilder withValue(Function<CustomFieldLocalizedEnumValueBuilder, CustomFieldLocalizedEnumValue> builder) Value to append to the array.
- Parameters:
builder- function to build the value value- Returns:
- Builder
-
value
Value to append to the array.
- Parameters:
value- value to be set- Returns:
- Builder
-
getFieldName
nameof the FieldDefinition to update.- Returns:
- fieldName
-
getValue
Value to append to the array.
- Returns:
- value
-
build
builds TypeAddLocalizedEnumValueAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<TypeAddLocalizedEnumValueAction>- Returns:
- TypeAddLocalizedEnumValueAction
-
buildUnchecked
builds TypeAddLocalizedEnumValueAction without checking for non-null required values- Returns:
- TypeAddLocalizedEnumValueAction
-
of
factory method for an instance of TypeAddLocalizedEnumValueActionBuilder- Returns:
- builder
-
of
create builder for TypeAddLocalizedEnumValueAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-