Class BooleanSetFieldBuilder
java.lang.Object
com.commercetools.importapi.models.customfields.BooleanSetFieldBuilder
- All Implemented Interfaces:
Builder<BooleanSetField>
BooleanSetFieldBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BooleanSetField booleanSetField = BooleanSetField.builder()
.plusValue(valueBuilder -> valueBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds BooleanSetField with checking for non-null required valuesbuilds BooleanSetField without checking for non-null required valuesgetValue()
JSON array of boolean values without duplicates.static BooleanSetFieldBuilder
of()
factory method for an instance of BooleanSetFieldBuilderstatic BooleanSetFieldBuilder
of
(BooleanSetField template) create builder for BooleanSetField instanceJSON array of boolean values without duplicates.JSON array of boolean values without duplicates.JSON array of boolean values without duplicates.
-
Constructor Details
-
BooleanSetFieldBuilder
public BooleanSetFieldBuilder()
-
-
Method Details
-
value
JSON array of boolean values without duplicates. The order of items in the array is not fixed.
- Parameters:
value
- value to be set- Returns:
- Builder
-
value
JSON array of boolean values without duplicates. The order of items in the array is not fixed.
- Parameters:
value
- value to be set- Returns:
- Builder
-
plusValue
JSON array of boolean values without duplicates. The order of items in the array is not fixed.
- Parameters:
value
- value to be set- Returns:
- Builder
-
getValue
JSON array of boolean values without duplicates. The order of items in the array is not fixed.
- Returns:
- value
-
build
builds BooleanSetField with checking for non-null required values- Specified by:
build
in interfaceBuilder<BooleanSetField>
- Returns:
- BooleanSetField
-
buildUnchecked
builds BooleanSetField without checking for non-null required values- Returns:
- BooleanSetField
-
of
factory method for an instance of BooleanSetFieldBuilder- Returns:
- builder
-
of
create builder for BooleanSetField instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-