Interface CustomFieldEnumType
- All Superinterfaces:
FieldType
Field type for enum values.
Example to create an instance using the builder pattern
CustomFieldEnumType customFieldEnumType = CustomFieldEnumType.builder()
.plusValues(valuesBuilder -> valuesBuilder)
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CustomFieldEnumTypeBuilder
builder()
builder factory method for CustomFieldEnumTypestatic CustomFieldEnumTypeBuilder
builder
(CustomFieldEnumType template) create builder for CustomFieldEnumType instancestatic CustomFieldEnumType
deepCopy
(CustomFieldEnumType template) factory method to create a deep copy of CustomFieldEnumType@NotNull @Valid List<CustomFieldEnumValue>
Allowed values.static CustomFieldEnumType
of()
factory methodstatic CustomFieldEnumType
of
(CustomFieldEnumType template) factory method to create a shallow copy CustomFieldEnumTypevoid
setValues
(CustomFieldEnumValue... values) Allowed values.void
setValues
(List<CustomFieldEnumValue> values) Allowed values.static com.fasterxml.jackson.core.type.TypeReference<CustomFieldEnumType>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCustomFieldEnumType
(Function<CustomFieldEnumType, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.type.FieldType
getName, withFieldType
-
Field Details
-
ENUM
discriminator value for CustomFieldEnumType- 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 CustomFieldEnumType
-
of
factory method to create a shallow copy CustomFieldEnumType- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CustomFieldEnumType- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomFieldEnumType- Returns:
- builder
-
builder
create builder for CustomFieldEnumType instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomFieldEnumType
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
-