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