Interface CustomFieldEnumValue
- All Superinterfaces:
WithKey
Defines an allowed value of a CustomFieldEnumType field.
Example to create an instance using the builder pattern
CustomFieldEnumValue customFieldEnumValue = CustomFieldEnumValue.builder()
.key("{key}")
.label("{label}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic CustomFieldEnumValueBuilder
builder()
builder factory method for CustomFieldEnumValuestatic CustomFieldEnumValueBuilder
builder
(CustomFieldEnumValue template) create builder for CustomFieldEnumValue instancestatic CustomFieldEnumValue
deepCopy
(CustomFieldEnumValue template) factory method to create a deep copy of CustomFieldEnumValue@NotNull String
getKey()
Key of the value used as a programmatic identifier.@NotNull String
getLabel()
Descriptive label of the value.static CustomFieldEnumValue
of()
factory methodstatic CustomFieldEnumValue
of
(CustomFieldEnumValue template) factory method to create a shallow copy CustomFieldEnumValuevoid
Key of the value used as a programmatic identifier.void
Descriptive label of the value.static com.fasterxml.jackson.core.type.TypeReference<CustomFieldEnumValue>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCustomFieldEnumValue
(Function<CustomFieldEnumValue, T> helper) accessor map function
-
Method Details
-
getKey
Key of the value used as a programmatic identifier.
-
getLabel
Descriptive label of the value.
- Returns:
- label
-
setKey
Key of the value used as a programmatic identifier.
- Parameters:
key
- value to be set
-
setLabel
Descriptive label of the value.
- Parameters:
label
- value to be set
-
of
factory method- Returns:
- instance of CustomFieldEnumValue
-
of
factory method to create a shallow copy CustomFieldEnumValue- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CustomFieldEnumValue- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomFieldEnumValue- Returns:
- builder
-
builder
create builder for CustomFieldEnumValue instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomFieldEnumValue
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
-