Class LocalizableEnumAttributeBuilder
java.lang.Object
com.commercetools.importapi.models.productvariants.LocalizableEnumAttributeBuilder
- All Implemented Interfaces:
Builder<LocalizableEnumAttribute>
public class LocalizableEnumAttributeBuilder
extends Object
implements Builder<LocalizableEnumAttribute>
LocalizableEnumAttributeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
LocalizableEnumAttribute localizableEnumAttribute = LocalizableEnumAttribute.builder()
.value("{value}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds LocalizableEnumAttribute with checking for non-null required valuesbuilds LocalizableEnumAttribute 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 LocalizableEnumAttributeBuilderof
(LocalizableEnumAttribute template) create builder for LocalizableEnumAttribute instanceset the value to the value
-
Constructor Details
-
LocalizableEnumAttributeBuilder
public LocalizableEnumAttributeBuilder()
-
-
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 the value to the value- Parameters:
value
- value to be set- 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 LocalizableEnumAttribute with checking for non-null required values- Specified by:
build
in interfaceBuilder<LocalizableEnumAttribute>
- Returns:
- LocalizableEnumAttribute
-
buildUnchecked
builds LocalizableEnumAttribute without checking for non-null required values- Returns:
- LocalizableEnumAttribute
-
of
factory method for an instance of LocalizableEnumAttributeBuilder- Returns:
- builder
-
of
create builder for LocalizableEnumAttribute instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-