Interface CustomFieldLocalizedEnumType
- All Superinterfaces:
FieldType
Field type for localized enum values.
Example to create an instance using the builder pattern
CustomFieldLocalizedEnumType customFieldLocalizedEnumType = CustomFieldLocalizedEnumType.builder()
.plusValues(valuesBuilder -> valuesBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CustomFieldLocalizedEnumType -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CustomFieldLocalizedEnumTypebuilder
(CustomFieldLocalizedEnumType template) create builder for CustomFieldLocalizedEnumType instancestatic CustomFieldLocalizedEnumType
deepCopy
(CustomFieldLocalizedEnumType template) factory method to create a deep copy of CustomFieldLocalizedEnumType@NotNull @Valid List<CustomFieldLocalizedEnumValue>
Allowed values.static CustomFieldLocalizedEnumType
of()
factory methodstatic CustomFieldLocalizedEnumType
of
(CustomFieldLocalizedEnumType template) factory method to create a shallow copy CustomFieldLocalizedEnumTypevoid
setValues
(CustomFieldLocalizedEnumValue... values) Allowed values.void
setValues
(List<CustomFieldLocalizedEnumValue> values) Allowed values.static com.fasterxml.jackson.core.type.TypeReference<CustomFieldLocalizedEnumType>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.type.FieldType
getName, withFieldType
-
Field Details
-
LOCALIZED_ENUM
discriminator value for CustomFieldLocalizedEnumType- See Also:
-
-
Method Details
-
getValues
Allowed values.
- Returns:
- values
-
setValues
Allowed values.
- Parameters:
values
- values to be set
-
setValues
Allowed values.
- Parameters:
values
- values to be set
-
of
factory method- Returns:
- instance of CustomFieldLocalizedEnumType
-
of
factory method to create a shallow copy CustomFieldLocalizedEnumType- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CustomFieldLocalizedEnumType deepCopy(@Nullable CustomFieldLocalizedEnumType template) factory method to create a deep copy of CustomFieldLocalizedEnumType- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomFieldLocalizedEnumType- Returns:
- builder
-
builder
create builder for CustomFieldLocalizedEnumType instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomFieldLocalizedEnumType
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
-