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