Interface EnumAttribute
- All Superinterfaces:
Attribute
This type represents an attribute whose value is an enum. The attribute value refers to the key of the enum value.
Example to create an instance using the builder pattern
EnumAttribute enumAttribute = EnumAttribute.builder()
.value("{value}")
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic EnumAttributeBuilder
builder()
builder factory method for EnumAttributestatic EnumAttributeBuilder
builder
(EnumAttribute template) create builder for EnumAttribute instancestatic EnumAttribute
deepCopy
(EnumAttribute template) factory method to create a deep copy of EnumAttribute@NotNull String
getValue()
static EnumAttribute
of()
factory methodstatic EnumAttribute
of
(EnumAttribute template) factory method to create a shallow copy EnumAttributevoid
set valuestatic com.fasterxml.jackson.core.type.TypeReference<EnumAttribute>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withEnumAttribute
(Function<EnumAttribute, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.productvariants.Attribute
getName, getType, setName, withAttribute
-
Field Details
-
ENUM
discriminator value for EnumAttribute- See Also:
-
-
Method Details
-
getValue
- Returns:
- value
-
setValue
set value- Parameters:
value
- value to be set
-
of
factory method- Returns:
- instance of EnumAttribute
-
of
factory method to create a shallow copy EnumAttribute- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of EnumAttribute- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for EnumAttribute- Returns:
- builder
-
builder
create builder for EnumAttribute instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withEnumAttribute
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
-