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