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
-
Method Summary
Modifier and TypeMethodDescriptionadd the value to the value using the builder functionbuild()
builds LocalizedStringSetField with checking for non-null required valuesbuilds LocalizedStringSetField without checking for non-null required valuesgetValue()
value of value}of()
factory method for an instance of LocalizedStringSetFieldBuilderof
(LocalizedStringSetField template) create builder for LocalizedStringSetField instanceplusValue
(LocalizedString... value) add values to the valueadd the value to the value using the builder functionset the value to the value using the builder functionvalue
(LocalizedString... value) set values to the valuevalue
(List<LocalizedString> value) set value to the valueset the value to the value using the builder function
-
Constructor Details
-
LocalizedStringSetFieldBuilder
public LocalizedStringSetFieldBuilder()
-
-
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
-
plusValue
public LocalizedStringSetFieldBuilder plusValue(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) add the value to the value using the builder function- Parameters:
builder
- function to build the value value- Returns:
- Builder
-
withValue
public LocalizedStringSetFieldBuilder withValue(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) set the value to the value using the builder function- Parameters:
builder
- function to build the value value- Returns:
- Builder
-
addValue
public LocalizedStringSetFieldBuilder addValue(Function<LocalizedStringBuilder, LocalizedString> builder) add the value to the value using the builder function- Parameters:
builder
- function to build the value value- Returns:
- Builder
-
setValue
public LocalizedStringSetFieldBuilder setValue(Function<LocalizedStringBuilder, LocalizedString> builder) set the value to the value using the builder function- Parameters:
builder
- function to build the value value- Returns:
- Builder
-
getValue
value of value}- Returns:
- value
-
build
builds LocalizedStringSetField with checking for non-null required values- Specified by:
build
in 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
-