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