Class BooleanFieldBuilder
java.lang.Object
com.commercetools.importapi.models.customfields.BooleanFieldBuilder
- All Implemented Interfaces:
Builder<BooleanField>
BooleanFieldBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BooleanField booleanField = BooleanField.builder()
.value(true)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds BooleanField with checking for non-null required valuesbuilds BooleanField without checking for non-null required valuesgetValue()
value of value}static BooleanFieldBuilder
of()
factory method for an instance of BooleanFieldBuilderstatic BooleanFieldBuilder
of
(BooleanField template) create builder for BooleanField instanceset the value to the value
-
Constructor Details
-
BooleanFieldBuilder
public BooleanFieldBuilder()
-
-
Method Details
-
value
set the value to the value- Parameters:
value
- value to be set- Returns:
- Builder
-
getValue
value of value}- Returns:
- value
-
build
builds BooleanField with checking for non-null required values- Specified by:
build
in interfaceBuilder<BooleanField>
- Returns:
- BooleanField
-
buildUnchecked
builds BooleanField without checking for non-null required values- Returns:
- BooleanField
-
of
factory method for an instance of BooleanFieldBuilder- Returns:
- builder
-
of
create builder for BooleanField instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-