Interface AttributeLocalizedEnumType
- All Superinterfaces:
AttributeType
Attribute type for localized enum values. Useful for predefined language-specific values selectable in drop-down menus if only one value can be selected. Use AttributeSetType of AttributeLocalizedEnumValue instead if multiple values can be selected.
Example to create an instance using the builder pattern
AttributeLocalizedEnumType attributeLocalizedEnumType = AttributeLocalizedEnumType.builder()
.plusValues(valuesBuilder -> valuesBuilder)
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for AttributeLocalizedEnumTypebuilder(AttributeLocalizedEnumType template) create builder for AttributeLocalizedEnumType instancecopyDeep()static AttributeLocalizedEnumTypedeepCopy(AttributeLocalizedEnumType template) factory method to create a deep copy of AttributeLocalizedEnumType@NotNull @Valid List<AttributeLocalizedEnumValue>Available values that can be assigned to Products.static AttributeLocalizedEnumTypeof()factory methodstatic AttributeLocalizedEnumTypeof(AttributeLocalizedEnumType template) factory method to create a shallow copy AttributeLocalizedEnumTypevoidsetValues(AttributeLocalizedEnumValue... values) Available values that can be assigned to Products.voidsetValues(List<AttributeLocalizedEnumValue> values) Available values that can be assigned to Products.static com.fasterxml.jackson.core.type.TypeReference<AttributeLocalizedEnumType>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.product_type.AttributeType
getName, withAttributeType
-
Field Details
-
LENUM
discriminator value for AttributeLocalizedEnumType- See Also:
-
-
Method Details
-
getValues
Available values that can be assigned to Products.
- Returns:
- values
-
setValues
Available values that can be assigned to Products.
- Parameters:
values- values to be set
-
setValues
Available values that can be assigned to Products.
- Parameters:
values- values to be set
-
of
factory method- Returns:
- instance of AttributeLocalizedEnumType
-
of
factory method to create a shallow copy AttributeLocalizedEnumType- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
AttributeLocalizedEnumType copyDeep()- Specified by:
copyDeepin interfaceAttributeType
-
deepCopy
factory method to create a deep copy of AttributeLocalizedEnumType- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AttributeLocalizedEnumType- Returns:
- builder
-
builder
create builder for AttributeLocalizedEnumType instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withAttributeLocalizedEnumType
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
-