Class LocalizableEnumSetAttributeBuilder
- All Implemented Interfaces:
Builder<LocalizableEnumSetAttribute>
Example to create an instance using the builder pattern
LocalizableEnumSetAttribute localizableEnumSetAttribute = LocalizableEnumSetAttribute.builder()
.plusValue(valueBuilder -> valueBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds LocalizableEnumSetAttribute with checking for non-null required valuesbuilds LocalizableEnumSetAttribute without checking for non-null required valuesgetName()
Required if used for ProductVariantImport.getValue()
A set of localized enum values, each represented by its key.Required if used for ProductVariantImport.of()
factory method for an instance of LocalizableEnumSetAttributeBuilderof
(LocalizableEnumSetAttribute template) create builder for LocalizableEnumSetAttribute instanceA set of localized enum values, each represented by its key.A set of localized enum values, each represented by its key.A set of localized enum values, each represented by its key.
-
Constructor Details
-
LocalizableEnumSetAttributeBuilder
public LocalizableEnumSetAttributeBuilder()
-
-
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
A set of localized enum values, each represented by its key. Each key must match the key of an AttributeLocalizedEnumValue in the Product Type.
- Parameters:
value
- value to be set- Returns:
- Builder
-
value
A set of localized enum values, each represented by its key. Each key must match the key of an AttributeLocalizedEnumValue in the Product Type.
- Parameters:
value
- value to be set- Returns:
- Builder
-
plusValue
A set of localized enum values, each represented by its key. Each key 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
A set of localized enum values, each represented by its key. Each key must match the key of an AttributeLocalizedEnumValue in the Product Type.
- Returns:
- value
-
build
builds LocalizableEnumSetAttribute with checking for non-null required values- Specified by:
build
in interfaceBuilder<LocalizableEnumSetAttribute>
- Returns:
- LocalizableEnumSetAttribute
-
buildUnchecked
builds LocalizableEnumSetAttribute without checking for non-null required values- Returns:
- LocalizableEnumSetAttribute
-
of
factory method for an instance of LocalizableEnumSetAttributeBuilder- Returns:
- builder
-
of
create builder for LocalizableEnumSetAttribute instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-