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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StringSetField with checking for non-null required valuesbuilds StringSetField without checking for non-null required valuesgetValue()
value of value}static StringSetFieldBuilder
of()
factory method for an instance of StringSetFieldBuilderstatic StringSetFieldBuilder
of
(StringSetField template) create builder for StringSetField instanceadd values to the valueset values to the valueset value to the value
-
Constructor Details
-
StringSetFieldBuilder
public StringSetFieldBuilder()
-
-
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 StringSetField with checking for non-null required values- Specified by:
build
in 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
-