Class EnumSetFieldBuilder
java.lang.Object
com.commercetools.importapi.models.customfields.EnumSetFieldBuilder
- All Implemented Interfaces:
Builder<EnumSetField>
EnumSetFieldBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
EnumSetField enumSetField = EnumSetField.builder()
.plusValue(valueBuilder -> valueBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds EnumSetField with checking for non-null required valuesbuilds EnumSetField without checking for non-null required valuesgetValue()
value of value}static EnumSetFieldBuilder
of()
factory method for an instance of EnumSetFieldBuilderstatic EnumSetFieldBuilder
of
(EnumSetField template) create builder for EnumSetField instanceadd values to the valueset values to the valueset value to the value
-
Constructor Details
-
EnumSetFieldBuilder
public EnumSetFieldBuilder()
-
-
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 EnumSetField with checking for non-null required values- Specified by:
build
in interfaceBuilder<EnumSetField>
- Returns:
- EnumSetField
-
buildUnchecked
builds EnumSetField without checking for non-null required values- Returns:
- EnumSetField
-
of
factory method for an instance of EnumSetFieldBuilder- Returns:
- builder
-
of
create builder for EnumSetField instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-