public interface Custom

The representation to be sent to the server when creating a resource with Custom Fields.


Example to create an instance using the builder pattern

     Custom custom = Custom.builder()
             .type(typeBuilder -> typeBuilder)
             .build()
 
  • Method Details

    • getType

      @NotNull @Valid @NotNull @Valid TypeKeyReference getType()

      The type that provides the field definitions for this object.

      Returns:
      type
    • getFields

      @Valid @Valid FieldContainer getFields()

      The Custom Fields of this object.

      Returns:
      fields
    • setType

      void setType(TypeKeyReference type)

      The type that provides the field definitions for this object.

      Parameters:
      type - value to be set
    • setFields

      void setFields(FieldContainer fields)

      The Custom Fields of this object.

      Parameters:
      fields - value to be set
    • of

      static Custom of()
      factory method
      Returns:
      instance of Custom
    • of

      static Custom of(Custom template)
      factory method to create a shallow copy Custom
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      @Nullable static Custom deepCopy(@Nullable Custom template)
      factory method to create a deep copy of Custom
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static CustomBuilder builder()
      builder factory method for Custom
      Returns:
      builder
    • builder

      static CustomBuilder builder(Custom template)
      create builder for Custom instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCustom

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