Class LocalizableTextSetAttributeBuilder
java.lang.Object
com.commercetools.importapi.models.productvariants.LocalizableTextSetAttributeBuilder
- All Implemented Interfaces:
Builder<LocalizableTextSetAttribute>
public class LocalizableTextSetAttributeBuilder
extends Object
implements Builder<LocalizableTextSetAttribute>
LocalizableTextSetAttributeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
LocalizableTextSetAttribute localizableTextSetAttribute = LocalizableTextSetAttribute.builder()
.plusValue(valueBuilder -> valueBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd the value to the value using the builder functionbuild()
builds LocalizableTextSetAttribute with checking for non-null required valuesbuilds LocalizableTextSetAttribute without checking for non-null required valuesgetName()
The name of this attribute must match a name of the product types attribute definitions.getValue()
value of value}The name of this attribute must match a name of the product types attribute definitions.of()
factory method for an instance of LocalizableTextSetAttributeBuilderof
(LocalizableTextSetAttribute template) create builder for LocalizableTextSetAttribute 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
-
LocalizableTextSetAttributeBuilder
public LocalizableTextSetAttributeBuilder()
-
-
Method Details
-
name
The name of this attribute must match a name of the product types attribute definitions. The name is required if this type is used in a product variant and must not be set when used in a product variant patch.
- Parameters:
name
- value to be set- Returns:
- Builder
-
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 LocalizableTextSetAttributeBuilder 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 LocalizableTextSetAttributeBuilder 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 LocalizableTextSetAttributeBuilder 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 LocalizableTextSetAttributeBuilder 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
-
getName
The name of this attribute must match a name of the product types attribute definitions. The name is required if this type is used in a product variant and must not be set when used in a product variant patch.
- Returns:
- name
-
getValue
value of value}- Returns:
- value
-
build
builds LocalizableTextSetAttribute with checking for non-null required values- Specified by:
build
in interfaceBuilder<LocalizableTextSetAttribute>
- Returns:
- LocalizableTextSetAttribute
-
buildUnchecked
builds LocalizableTextSetAttribute without checking for non-null required values- Returns:
- LocalizableTextSetAttribute
-
of
factory method for an instance of LocalizableTextSetAttributeBuilder- Returns:
- builder
-
of
create builder for LocalizableTextSetAttribute instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-