Class CustomFieldSetTypeBuilder
java.lang.Object
com.commercetools.api.models.type.CustomFieldSetTypeBuilder
- All Implemented Interfaces:
Builder<CustomFieldSetType>
CustomFieldSetTypeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomFieldSetType customFieldSetType = CustomFieldSetType.builder()
.elementType(elementTypeBuilder -> elementTypeBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds CustomFieldSetType with checking for non-null required valuesbuilds CustomFieldSetType without checking for non-null required valueselementType(FieldType elementType) Field type of the elements in the set.elementType(Function<FieldTypeBuilder, Builder<? extends FieldType>> builder) Field type of the elements in the set.Field type of the elements in the set.static CustomFieldSetTypeBuilderof()factory method for an instance of CustomFieldSetTypeBuilderstatic CustomFieldSetTypeBuilderof(CustomFieldSetType template) create builder for CustomFieldSetType instance
-
Constructor Details
-
CustomFieldSetTypeBuilder
public CustomFieldSetTypeBuilder()
-
-
Method Details
-
elementType
Field type of the elements in the set.
- Parameters:
elementType- value to be set- Returns:
- Builder
-
elementType
public CustomFieldSetTypeBuilder elementType(Function<FieldTypeBuilder, Builder<? extends FieldType>> builder) Field type of the elements in the set.
- Parameters:
builder- function to build the elementType value- Returns:
- Builder
-
getElementType
Field type of the elements in the set.
- Returns:
- elementType
-
build
builds CustomFieldSetType with checking for non-null required values- Specified by:
buildin interfaceBuilder<CustomFieldSetType>- Returns:
- CustomFieldSetType
-
buildUnchecked
builds CustomFieldSetType without checking for non-null required values- Returns:
- CustomFieldSetType
-
of
factory method for an instance of CustomFieldSetTypeBuilder- Returns:
- builder
-
of
create builder for CustomFieldSetType instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-