Interface EnumSetAttribute
- 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
EnumSetAttribute enumSetAttribute = EnumSetAttribute.builder()
.plusValue(valueBuilder -> valueBuilder)
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic EnumSetAttributeBuilder
builder()
builder factory method for EnumSetAttributestatic EnumSetAttributeBuilder
builder
(EnumSetAttribute template) create builder for EnumSetAttribute instancestatic EnumSetAttribute
deepCopy
(EnumSetAttribute template) factory method to create a deep copy of EnumSetAttributegetValue()
static EnumSetAttribute
of()
factory methodstatic EnumSetAttribute
of
(EnumSetAttribute template) factory method to create a shallow copy EnumSetAttributevoid
set valuevoid
set valuestatic com.fasterxml.jackson.core.type.TypeReference<EnumSetAttribute>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withEnumSetAttribute
(Function<EnumSetAttribute, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.productvariants.Attribute
getName, getType, setName, withAttribute
-
Field Details
-
ENUM_SET
discriminator value for EnumSetAttribute- 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 EnumSetAttribute
-
of
factory method to create a shallow copy EnumSetAttribute- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of EnumSetAttribute- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for EnumSetAttribute- Returns:
- builder
-
builder
create builder for EnumSetAttribute instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withEnumSetAttribute
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
-