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
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for LocalizableEnumSetAttributebuilder
(LocalizableEnumSetAttribute template) create builder for LocalizableEnumSetAttribute instancestatic LocalizableEnumSetAttribute
deepCopy
(LocalizableEnumSetAttribute template) factory method to create a deep copy of LocalizableEnumSetAttributegetValue()
static LocalizableEnumSetAttribute
of()
factory methodstatic LocalizableEnumSetAttribute
of
(LocalizableEnumSetAttribute template) factory method to create a shallow copy LocalizableEnumSetAttributevoid
set valuevoid
set valuestatic 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
- Returns:
- value
-
setValue
set value- Parameters:
value
- values to be set
-
setValue
set value- 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
-
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
-