Interface ExtensionInput


public interface ExtensionInput
ExtensionInput
Example to create an instance using the builder pattern

     ExtensionInput extensionInput = ExtensionInput.builder()
             .action(ExtensionAction.CREATE)
             .resource(resourceBuilder -> resourceBuilder)
             .build()
 
  • Method Details

    • getAction

      @NotNull @NotNull ExtensionAction getAction()

      Create or Update request.

      Returns:
      action
    • getResource

      @NotNull @Valid @NotNull @Valid Reference getResource()

      Expanded reference to the resource that triggered the Extension.

      Returns:
      resource
    • setAction

      void setAction(ExtensionAction action)

      Create or Update request.

      Parameters:
      action - value to be set
    • setResource

      void setResource(Reference resource)

      Expanded reference to the resource that triggered the Extension.

      Parameters:
      resource - value to be set
    • of

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

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

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

      static ExtensionInputBuilder builder()
      builder factory method for ExtensionInput
      Returns:
      builder
    • builder

      static ExtensionInputBuilder builder(ExtensionInput template)
      create builder for ExtensionInput instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withExtensionInput

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