Class StringSetFieldBuilder
java.lang.Object
com.commercetools.importapi.models.customfields.StringSetFieldBuilder
- All Implemented Interfaces:
Builder<StringSetField>
StringSetFieldBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StringSetField stringSetField = StringSetField.builder()
.plusValue(valueBuilder -> valueBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds StringSetField with checking for non-null required valuesbuilds StringSetField without checking for non-null required valuesgetValue()JSON array of strings.static StringSetFieldBuilderof()factory method for an instance of StringSetFieldBuilderstatic StringSetFieldBuilderof(StringSetField template) create builder for StringSetField instanceJSON array of strings.JSON array of strings.JSON array of strings.
-
Constructor Details
-
StringSetFieldBuilder
public StringSetFieldBuilder()
-
-
Method Details
-
value
JSON array of strings. The order of items in the array is not fixed.
- Parameters:
value- value to be set- Returns:
- Builder
-
value
JSON array of strings. The order of items in the array is not fixed.
- Parameters:
value- value to be set- Returns:
- Builder
-
plusValue
JSON array of strings. The order of items in the array is not fixed.
- Parameters:
value- value to be set- Returns:
- Builder
-
getValue
JSON array of strings. The order of items in the array is not fixed.
- Returns:
- value
-
build
builds StringSetField with checking for non-null required values- Specified by:
buildin interfaceBuilder<StringSetField>- Returns:
- StringSetField
-
buildUnchecked
builds StringSetField without checking for non-null required values- Returns:
- StringSetField
-
of
factory method for an instance of StringSetFieldBuilder- Returns:
- builder
-
of
create builder for StringSetField instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-