Class LocalizedStringSetFieldBuilder
java.lang.Object
com.commercetools.importapi.models.customfields.LocalizedStringSetFieldBuilder
- All Implemented Interfaces:
Builder<LocalizedStringSetField>
public class LocalizedStringSetFieldBuilder
extends Object
implements Builder<LocalizedStringSetField>
LocalizedStringSetFieldBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
LocalizedStringSetField localizedStringSetField = LocalizedStringSetField.builder()
.plusValue(valueBuilder -> valueBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionJSON array of localized strings.build()builds LocalizedStringSetField with checking for non-null required valuesbuilds LocalizedStringSetField without checking for non-null required valuesgetValue()JSON array of localized strings.of()factory method for an instance of LocalizedStringSetFieldBuilderof(LocalizedStringSetField template) create builder for LocalizedStringSetField instanceplusValue(LocalizedString... value) JSON array of localized strings.JSON array of localized strings.JSON array of localized strings.value(LocalizedString... value) JSON array of localized strings.value(List<LocalizedString> value) JSON array of localized strings.JSON array of localized strings.
-
Constructor Details
-
LocalizedStringSetFieldBuilder
public LocalizedStringSetFieldBuilder()
-
-
Method Details
-
value
JSON array of localized strings. The order of items in the array is not fixed.
- Parameters:
value- value to be set- Returns:
- Builder
-
value
JSON array of localized strings. The order of items in the array is not fixed.
- Parameters:
value- value to be set- Returns:
- Builder
-
plusValue
JSON array of localized strings. The order of items in the array is not fixed.
- Parameters:
value- value to be set- Returns:
- Builder
-
plusValue
public LocalizedStringSetFieldBuilder plusValue(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) JSON array of localized strings. The order of items in the array is not fixed.
- Parameters:
builder- function to build the value value- Returns:
- Builder
-
withValue
public LocalizedStringSetFieldBuilder withValue(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) JSON array of localized strings. The order of items in the array is not fixed.
- Parameters:
builder- function to build the value value- Returns:
- Builder
-
addValue
public LocalizedStringSetFieldBuilder addValue(Function<LocalizedStringBuilder, LocalizedString> builder) JSON array of localized strings. The order of items in the array is not fixed.
- Parameters:
builder- function to build the value value- Returns:
- Builder
-
setValue
public LocalizedStringSetFieldBuilder setValue(Function<LocalizedStringBuilder, LocalizedString> builder) JSON array of localized strings. The order of items in the array is not fixed.
- Parameters:
builder- function to build the value value- Returns:
- Builder
-
getValue
JSON array of localized strings. The order of items in the array is not fixed.
- Returns:
- value
-
build
builds LocalizedStringSetField with checking for non-null required values- Specified by:
buildin interfaceBuilder<LocalizedStringSetField>- Returns:
- LocalizedStringSetField
-
buildUnchecked
builds LocalizedStringSetField without checking for non-null required values- Returns:
- LocalizedStringSetField
-
of
factory method for an instance of LocalizedStringSetFieldBuilder- Returns:
- builder
-
of
create builder for LocalizedStringSetField instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-