Class CustomFieldSetTypeBuilder
java.lang.Object
com.commercetools.importapi.models.types.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
-
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 CustomFieldSetTypeBuilder
of()
factory method for an instance of CustomFieldSetTypeBuilderstatic CustomFieldSetTypeBuilder
of
(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:
build
in 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
-