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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds BooleanSetField with checking for non-null required valuesbuilds BooleanSetField without checking for non-null required valuesgetValue()
value of value}static BooleanSetFieldBuilder
of()
factory method for an instance of BooleanSetFieldBuilderstatic BooleanSetFieldBuilder
of
(BooleanSetField template) create builder for BooleanSetField instanceadd values to the valueset values to the valueset value to the value
-
Constructor Details
-
BooleanSetFieldBuilder
public BooleanSetFieldBuilder()
-
-
Method Details
-
value
set values to the value- Parameters:
value
- value to be set- Returns:
- Builder
-
value
set value to the value- Parameters:
value
- value to be set- Returns:
- Builder
-
plusValue
add values to the value- Parameters:
value
- value to be set- Returns:
- Builder
-
getValue
value of value}- 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
-