Interface CustomFieldReferenceType

All Superinterfaces:
FieldType

public interface CustomFieldReferenceType extends FieldType

Field type for Reference values.


Example to create an instance using the builder pattern

     CustomFieldReferenceType customFieldReferenceType = CustomFieldReferenceType.builder()
             .referenceTypeId(CustomFieldReferenceValue.APPROVAL_FLOW)
             .build()
 
  • Field Details

  • Method Details

    • getReferenceTypeId

      @NotNull @NotNull CustomFieldReferenceValue getReferenceTypeId()

      Resource type the Custom Field can reference.

      Returns:
      referenceTypeId
    • setReferenceTypeId

      void setReferenceTypeId(CustomFieldReferenceValue referenceTypeId)

      Resource type the Custom Field can reference.

      Parameters:
      referenceTypeId - value to be set
    • of

      factory method
      Returns:
      instance of CustomFieldReferenceType
    • of

      factory method to create a shallow copy CustomFieldReferenceType
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of CustomFieldReferenceType
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for CustomFieldReferenceType
      Returns:
      builder
    • builder

      create builder for CustomFieldReferenceType instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCustomFieldReferenceType

      default <T> T withCustomFieldReferenceType(Function<CustomFieldReferenceType,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<CustomFieldReferenceType> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference