Class NotifyOperationSpec

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

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

Specification for the Notify operation.

Send notification for issue

  • Field Details

    • VALIDATION_ENABLED

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

    • NotifyOperationSpec

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

      @Internal public NotifyOperationSpec(String issueIdOrKey, Notification notification)
      Constructs a validated instance of NotifyOperationSpec.

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

      Parameters:
      issueIdOrKey - ID or key of the issue that the notification is sent for.
      notification - The request object for the notification and recipients.
    • NotifyOperationSpec

      protected NotifyOperationSpec()
  • Method Details

    • validate

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

    • issueIdOrKey

      @NotNull public @NotNull String issueIdOrKey()
      ID or key of the issue that the notification is sent for.
    • notification

      @NotNull public @NotNull Notification notification()
      The request object for the notification and recipients.
    • issueIdOrKey

      public NotifyOperationSpec issueIdOrKey(@NotNull @NotNull String issueIdOrKey)
      ID or key of the issue that the notification is sent for.
      Returns:
      this.
    • notification

      public NotifyOperationSpec notification(@NotNull @NotNull Notification notification)
      The request object for the notification and recipients.
      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