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
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic EnumSetAttributeBuilderbuilder()builder factory method for EnumSetAttributestatic EnumSetAttributeBuilderbuilder(EnumSetAttribute template) create builder for EnumSetAttribute instancecopyDeep()static EnumSetAttributedeepCopy(EnumSetAttribute template) factory method to create a deep copy of EnumSetAttributegetValue()A set of enum values, each represented by its key.static EnumSetAttributeof()factory methodstatic EnumSetAttributeof(EnumSetAttribute template) factory method to create a shallow copy EnumSetAttributevoidA set of enum values, each represented by its key.voidA set of enum values, each represented by its key.static com.fasterxml.jackson.core.type.TypeReference<EnumSetAttribute>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithEnumSetAttribute(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
A set of enum values, each represented by its key. Each key must match the key of an AttributePlainEnumValue in the Product Type.
- Returns:
- value
-
setValue
A set of enum values, each represented by its key. Each key must match the key of an AttributePlainEnumValue in the Product Type.
- Parameters:
value- values to be set
-
setValue
A set of enum values, each represented by its key. Each key must match the key of an AttributePlainEnumValue in the Product Type.
- 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
-
copyDeep
EnumSetAttribute copyDeep() -
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
-