Interface EnumField
- All Superinterfaces:
CustomField
A field with an enum value.
Example to create an instance using the builder pattern
EnumField enumField = EnumField.builder()
.value("{value}")
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic EnumFieldBuilder
builder()
builder factory method for EnumFieldstatic EnumFieldBuilder
create builder for EnumField instancestatic EnumField
factory method to create a deep copy of EnumField@NotNull String
getValue()
static EnumField
of()
factory methodstatic EnumField
factory method to create a shallow copy EnumFieldvoid
set valuestatic com.fasterxml.jackson.core.type.TypeReference<EnumField>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withEnumField
(Function<EnumField, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.customfields.CustomField
getType, withCustomField
-
Field Details
-
ENUM
discriminator value for EnumField- See Also:
-
-
Method Details
-
getValue
- Returns:
- value
-
setValue
set value- Parameters:
value
- value to be set
-
of
factory method- Returns:
- instance of EnumField
-
of
factory method to create a shallow copy EnumField- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of EnumField- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for EnumField- Returns:
- builder
-
builder
create builder for EnumField instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withEnumField
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
-