Interface LocalizableEnumAttribute
- 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
LocalizableEnumAttribute localizableEnumAttribute = LocalizableEnumAttribute.builder()
.value("{value}")
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for LocalizableEnumAttributebuilder
(LocalizableEnumAttribute template) create builder for LocalizableEnumAttribute instancestatic LocalizableEnumAttribute
deepCopy
(LocalizableEnumAttribute template) factory method to create a deep copy of LocalizableEnumAttribute@NotNull String
getValue()
static LocalizableEnumAttribute
of()
factory methodstatic LocalizableEnumAttribute
of
(LocalizableEnumAttribute template) factory method to create a shallow copy LocalizableEnumAttributevoid
set valuestatic com.fasterxml.jackson.core.type.TypeReference<LocalizableEnumAttribute>
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
discriminator value for LocalizableEnumAttribute- See Also:
-
-
Method Details
-
getValue
- Returns:
- value
-
setValue
set value- Parameters:
value
- value to be set
-
of
factory method- Returns:
- instance of LocalizableEnumAttribute
-
of
factory method to create a shallow copy LocalizableEnumAttribute- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of LocalizableEnumAttribute- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for LocalizableEnumAttribute- Returns:
- builder
-
builder
create builder for LocalizableEnumAttribute instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withLocalizableEnumAttribute
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
-