Interface CustomFieldLocalizedEnumValue

All Superinterfaces:
WithKey

public interface CustomFieldLocalizedEnumValue extends 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 Details

    • getKey

      @NotNull @NotNull String getKey()

      Key of the value used as a programmatic identifier.

      Specified by:
      getKey in interface WithKey
      Returns:
      key
    • getLabel

      @NotNull @Valid @NotNull @Valid LocalizedString getLabel()

      Descriptive localized label of the value.

      Returns:
      label
    • setKey

      void setKey(String key)

      Key of the value used as a programmatic identifier.

      Parameters:
      key - value to be set
    • setLabel

      void setLabel(LocalizedString label)

      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
    • deepCopy

      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

      default <T> T withCustomFieldLocalizedEnumValue(Function<CustomFieldLocalizedEnumValue,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<CustomFieldLocalizedEnumValue> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference