Class GetDefaultWorkflowOperationSpec

java.lang.Object
io.github.primelib.jira4j.restv3.spec.GetDefaultWorkflowOperationSpec

@Generated("io.github.primelib.primecodegen.javafeign.JavaFeignGenerator") public class GetDefaultWorkflowOperationSpec extends Object
GetDefaultWorkflowSpec

Specification for the GetDefaultWorkflow operation.

Get default workflow

  • Field Details

    • VALIDATION_ENABLED

      @Experimental public static Boolean VALIDATION_ENABLED
      allows to disable validation of the spec, use with care!
  • Constructor Details

    • GetDefaultWorkflowOperationSpec

      @Internal public GetDefaultWorkflowOperationSpec(Consumer<GetDefaultWorkflowOperationSpec> spec)
      Constructs a validated instance of GetDefaultWorkflowOperationSpec.
      Parameters:
      spec - the specification to process
    • GetDefaultWorkflowOperationSpec

      @Internal public GetDefaultWorkflowOperationSpec(Long id, Boolean returnDraftIfExists)
      Constructs a validated instance of GetDefaultWorkflowOperationSpec.

      NOTE: This constructor is not considered stable and may change if the operation is updated.

      Parameters:
      id - The ID of the workflow scheme.
      returnDraftIfExists - Set to true to return the default workflow for the workflow scheme's draft rather than scheme itself. If the workflow scheme does not have a draft, then the default workflow for the workflow scheme is returned.
    • GetDefaultWorkflowOperationSpec

      protected GetDefaultWorkflowOperationSpec()
  • Method Details

    • validate

      public void validate()
      Validates the Spec, will throw a exception if required parameters are missing
      Throws:
      NullPointerException
    • builder

    • id

      @NotNull public @NotNull Long id()
      The ID of the workflow scheme.
    • returnDraftIfExists

      @Nullable public @Nullable Boolean returnDraftIfExists()
      Set to true to return the default workflow for the workflow scheme's draft rather than scheme itself. If the workflow scheme does not have a draft, then the default workflow for the workflow scheme is returned.
    • id

      public GetDefaultWorkflowOperationSpec id(@NotNull @NotNull Long id)
      The ID of the workflow scheme.
      Returns:
      this.
    • returnDraftIfExists

      public GetDefaultWorkflowOperationSpec returnDraftIfExists(@Nullable @Nullable Boolean returnDraftIfExists)
      Set to true to return the default workflow for the workflow scheme's draft rather than scheme itself. If the workflow scheme does not have a draft, then the default workflow for the workflow scheme is returned.
      Returns:
      this.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object