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