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