Class TypeAddFieldDefinitionActionBuilder
java.lang.Object
com.commercetools.api.models.type.TypeAddFieldDefinitionActionBuilder
- All Implemented Interfaces:
Builder<TypeAddFieldDefinitionAction>
public class TypeAddFieldDefinitionActionBuilder
extends Object
implements Builder<TypeAddFieldDefinitionAction>
TypeAddFieldDefinitionActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
TypeAddFieldDefinitionAction typeAddFieldDefinitionAction = TypeAddFieldDefinitionAction.builder()
.fieldDefinition(fieldDefinitionBuilder -> fieldDefinitionBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds TypeAddFieldDefinitionAction with checking for non-null required valuesbuilds TypeAddFieldDefinitionAction without checking for non-null required valuesfieldDefinition
(FieldDefinition fieldDefinition) Value to append to the array.Value to append to the array.Value to append to the array.of()
factory method for an instance of TypeAddFieldDefinitionActionBuilderof
(TypeAddFieldDefinitionAction template) create builder for TypeAddFieldDefinitionAction instanceValue to append to the array.
-
Constructor Details
-
TypeAddFieldDefinitionActionBuilder
public TypeAddFieldDefinitionActionBuilder()
-
-
Method Details
-
fieldDefinition
public TypeAddFieldDefinitionActionBuilder fieldDefinition(Function<FieldDefinitionBuilder, FieldDefinitionBuilder> builder) Value to append to the array.
- Parameters:
builder
- function to build the fieldDefinition value- Returns:
- Builder
-
withFieldDefinition
public TypeAddFieldDefinitionActionBuilder withFieldDefinition(Function<FieldDefinitionBuilder, FieldDefinition> builder) Value to append to the array.
- Parameters:
builder
- function to build the fieldDefinition value- Returns:
- Builder
-
fieldDefinition
Value to append to the array.
- Parameters:
fieldDefinition
- value to be set- Returns:
- Builder
-
getFieldDefinition
Value to append to the array.
- Returns:
- fieldDefinition
-
build
builds TypeAddFieldDefinitionAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<TypeAddFieldDefinitionAction>
- Returns:
- TypeAddFieldDefinitionAction
-
buildUnchecked
builds TypeAddFieldDefinitionAction without checking for non-null required values- Returns:
- TypeAddFieldDefinitionAction
-
of
factory method for an instance of TypeAddFieldDefinitionActionBuilder- Returns:
- builder
-
of
create builder for TypeAddFieldDefinitionAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-