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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds LocalizableEnumAttribute with checking for non-null required valuesbuilds LocalizableEnumAttribute without checking for non-null required valuesgetName()
Required if used for ProductVariantImport.getValue()
The key of the localized enum value.Required if used for ProductVariantImport.of()
factory method for an instance of LocalizableEnumAttributeBuilderof
(LocalizableEnumAttribute template) create builder for LocalizableEnumAttribute instanceThe key of the localized enum value.
-
Constructor Details
-
LocalizableEnumAttributeBuilder
public LocalizableEnumAttributeBuilder()
-
-
Method Details
-
name
Required if used for ProductVariantImport. Must not be set if used for ProductVariantPatch.
Must match
name
of an AttributeDefinition of the Product Type.- Parameters:
name
- value to be set- Returns:
- Builder
-
value
The key of the localized enum value. Must match the key of an AttributeLocalizedEnumValue in the Product Type.
- Parameters:
value
- value to be set- Returns:
- Builder
-
getName
Required if used for ProductVariantImport. Must not be set if used for ProductVariantPatch.
Must match
name
of an AttributeDefinition of the Product Type.- Returns:
- name
-
getValue
The key of the localized enum value. Must match the key of an AttributeLocalizedEnumValue in the Product Type.
- 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
-