Interface AttributeEnumType
- All Superinterfaces:
AttributeType
AttributeEnumType
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
AttributeEnumType attributeEnumType = AttributeEnumType.builder()
.plusValues(valuesBuilder -> valuesBuilder)
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AttributeEnumTypeBuilder
builder()
builder factory method for AttributeEnumTypestatic AttributeEnumTypeBuilder
builder
(AttributeEnumType template) create builder for AttributeEnumType instancestatic AttributeEnumType
deepCopy
(AttributeEnumType template) factory method to create a deep copy of AttributeEnumType@NotNull @Valid List<AttributePlainEnumValue>
static AttributeEnumType
of()
factory methodstatic AttributeEnumType
of
(AttributeEnumType template) factory method to create a shallow copy AttributeEnumTypevoid
setValues
(AttributePlainEnumValue... values) set valuesvoid
setValues
(List<AttributePlainEnumValue> values) set valuesstatic com.fasterxml.jackson.core.type.TypeReference<AttributeEnumType>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withAttributeEnumType
(Function<AttributeEnumType, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.producttypes.AttributeType
getName, withAttributeType
-
Field Details
-
ENUM
discriminator value for AttributeEnumType- See Also:
-
-
Method Details
-
getValues
- Returns:
- values
-
setValues
set values- Parameters:
values
- values to be set
-
setValues
set values- Parameters:
values
- values to be set
-
of
factory method- Returns:
- instance of AttributeEnumType
-
of
factory method to create a shallow copy AttributeEnumType- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of AttributeEnumType- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AttributeEnumType- Returns:
- builder
-
builder
create builder for AttributeEnumType instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withAttributeEnumType
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
-