Class CreateWorkflowDetails

java.lang.Object
io.github.primelib.jira4j.restv3.model.CreateWorkflowDetails

@Generated("io.github.primelib.primecodegen.javafeign.JavaFeignGenerator") public class CreateWorkflowDetails extends Object
CreateWorkflowDetails
  • Field Details

    • description

      protected String description
      The description of the workflow. The maximum length is 1000 characters.
    • name

      protected String name
      The name of the workflow. The name must be unique. The maximum length is 255 characters. Characters can be separated by a whitespace but the name cannot start or end with a whitespace.
    • statuses

      protected Set<CreateWorkflowStatusDetails> statuses
      The statuses of the workflow. Any status that does not include a transition is added to the workflow without a transition.
    • transitions

      protected List<CreateWorkflowTransitionDetails> transitions
      The transitions of the workflow. For the request to be valid, these transitions must: * include one *initial* transition. * not use the same name for a *global* and *directed* transition. * have a unique name for each *global* transition. * have a unique 'to' status for each *global* transition. * have unique names for each transition from a status. * not have a 'from' status on *initial* and *global* transitions. * have a 'from' status on *directed* transitions. All the transition statuses must be included in statuses.
  • Constructor Details

    • CreateWorkflowDetails

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

      @Internal public CreateWorkflowDetails(String description, String name, Set<CreateWorkflowStatusDetails> statuses, List<CreateWorkflowTransitionDetails> transitions)
      Constructs a validated instance of CreateWorkflowDetails.

      NOTE: This constructor is not considered stable and may change if the model is updated. Consider using CreateWorkflowDetails(Consumer) instead.

      Parameters:
      description - The description of the workflow. The maximum length is 1000 characters.
      name - The name of the workflow. The name must be unique. The maximum length is 255 characters. Characters can be separated by a whitespace but the name cannot start or end with a whitespace.
      statuses - The statuses of the workflow. Any status that does not include a transition is added to the workflow without a transition.
      transitions - The transitions of the workflow. For the request to be valid, these transitions must: * include one *initial* transition. * not use the same name for a *global* and *directed* transition. * have a unique name for each *global* transition. * have a unique 'to' status for each *global* transition. * have unique names for each transition from a status. * not have a 'from' status on *initial* and *global* transitions. * have a 'from' status on *directed* transitions. All the transition statuses must be included in statuses.
    • CreateWorkflowDetails

      protected CreateWorkflowDetails()
  • Method Details

    • builder

    • description

      public String description()
      The description of the workflow. The maximum length is 1000 characters.
    • name

      public String name()
      The name of the workflow. The name must be unique. The maximum length is 255 characters. Characters can be separated by a whitespace but the name cannot start or end with a whitespace.
    • statuses

      public Set<CreateWorkflowStatusDetails> statuses()
      The statuses of the workflow. Any status that does not include a transition is added to the workflow without a transition.
    • transitions

      public List<CreateWorkflowTransitionDetails> transitions()
      The transitions of the workflow. For the request to be valid, these transitions must: * include one *initial* transition. * not use the same name for a *global* and *directed* transition. * have a unique name for each *global* transition. * have a unique 'to' status for each *global* transition. * have unique names for each transition from a status. * not have a 'from' status on *initial* and *global* transitions. * have a 'from' status on *directed* transitions. All the transition statuses must be included in statuses.
    • description

      public CreateWorkflowDetails description(String description)
      The description of the workflow. The maximum length is 1000 characters.
      Returns:
      this.
    • name

      public CreateWorkflowDetails name(String name)
      The name of the workflow. The name must be unique. The maximum length is 255 characters. Characters can be separated by a whitespace but the name cannot start or end with a whitespace.
      Returns:
      this.
    • statuses

      The statuses of the workflow. Any status that does not include a transition is added to the workflow without a transition.
      Returns:
      this.
    • transitions

      public CreateWorkflowDetails transitions(List<CreateWorkflowTransitionDetails> transitions)
      The transitions of the workflow. For the request to be valid, these transitions must: * include one *initial* transition. * not use the same name for a *global* and *directed* transition. * have a unique name for each *global* transition. * have a unique 'to' status for each *global* transition. * have unique names for each transition from a status. * not have a 'from' status on *initial* and *global* transitions. * have a 'from' status on *directed* transitions. All the transition statuses must be included in statuses.
      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