Interface LocalizableEnumSetAttribute
- All Superinterfaces:
Attribute
This type represents an attribute whose value is a localized enum. The attribute value refers to the key of the enum value.
Example to create an instance using the builder pattern
LocalizableEnumSetAttribute localizableEnumSetAttribute = LocalizableEnumSetAttribute.builder()
.plusValue(valueBuilder -> valueBuilder)
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for LocalizableEnumSetAttributebuilder
(LocalizableEnumSetAttribute template) create builder for LocalizableEnumSetAttribute instancecopyDeep()
static LocalizableEnumSetAttribute
deepCopy
(LocalizableEnumSetAttribute template) factory method to create a deep copy of LocalizableEnumSetAttributegetValue()
A set of localized enum values, each represented by its key.static LocalizableEnumSetAttribute
of()
factory methodstatic LocalizableEnumSetAttribute
of
(LocalizableEnumSetAttribute template) factory method to create a shallow copy LocalizableEnumSetAttributevoid
A set of localized enum values, each represented by its key.void
A set of localized enum values, each represented by its key.static com.fasterxml.jackson.core.type.TypeReference<LocalizableEnumSetAttribute>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.importapi.models.productvariants.Attribute
getName, getType, setName, withAttribute
-
Field Details
-
LENUM_SET
discriminator value for LocalizableEnumSetAttribute- See Also:
-
-
Method Details
-
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
-
setValue
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
- values to be set
-
setValue
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
- values to be set
-
of
factory method- Returns:
- instance of LocalizableEnumSetAttribute
-
of
factory method to create a shallow copy LocalizableEnumSetAttribute- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
LocalizableEnumSetAttribute copyDeep() -
deepCopy
@Nullable static LocalizableEnumSetAttribute deepCopy(@Nullable LocalizableEnumSetAttribute template) factory method to create a deep copy of LocalizableEnumSetAttribute- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for LocalizableEnumSetAttribute- Returns:
- builder
-
builder
create builder for LocalizableEnumSetAttribute instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withLocalizableEnumSetAttribute
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-