Interface CustomFieldLocalizedEnumValue
- All Superinterfaces:
WithKey
Defines an allowed value of a CustomFieldLocalizedEnumType field.
Example to create an instance using the builder pattern
CustomFieldLocalizedEnumValue customFieldLocalizedEnumValue = CustomFieldLocalizedEnumValue.builder()
.key("{key}")
.label(labelBuilder -> labelBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CustomFieldLocalizedEnumValuebuilder(CustomFieldLocalizedEnumValue template) create builder for CustomFieldLocalizedEnumValue instancecopyDeep()deepCopy(CustomFieldLocalizedEnumValue template) factory method to create a deep copy of CustomFieldLocalizedEnumValue@NotNull StringgetKey()Key of the value used as a programmatic identifier.@NotNull @Valid LocalizedStringgetLabel()Descriptive localized label of the value.of()factory methodof(CustomFieldLocalizedEnumValue template) factory method to create a shallow copy CustomFieldLocalizedEnumValuevoidKey of the value used as a programmatic identifier.voidsetLabel(LocalizedString label) Descriptive localized label of the value.static com.fasterxml.jackson.core.type.TypeReference<CustomFieldLocalizedEnumValue>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getKey
Key of the value used as a programmatic identifier.
-
getLabel
Descriptive localized label of the value.
- Returns:
- label
-
setKey
Key of the value used as a programmatic identifier.
- Parameters:
key- value to be set
-
setLabel
Descriptive localized label of the value.
- Parameters:
label- value to be set
-
of
factory method- Returns:
- instance of CustomFieldLocalizedEnumValue
-
of
factory method to create a shallow copy CustomFieldLocalizedEnumValue- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CustomFieldLocalizedEnumValue copyDeep() -
deepCopy
@Nullable static CustomFieldLocalizedEnumValue deepCopy(@Nullable CustomFieldLocalizedEnumValue template) factory method to create a deep copy of CustomFieldLocalizedEnumValue- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomFieldLocalizedEnumValue- Returns:
- builder
-
builder
create builder for CustomFieldLocalizedEnumValue instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCustomFieldLocalizedEnumValue
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
-