Class RemoveWatcherOperationSpec

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

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

Specification for the RemoveWatcher operation.

Delete watcher

  • Field Details

    • VALIDATION_ENABLED

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

    • RemoveWatcherOperationSpec

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

      @Internal public RemoveWatcherOperationSpec(String issueIdOrKey, String username, String accountId)
      Constructs a validated instance of RemoveWatcherOperationSpec.

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

      Parameters:
      issueIdOrKey - The ID or key of the issue.
      username - This parameter is no longer available. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details.
      accountId - The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, *5b10ac8d82e05b22cc7d4ef5*. Required.
    • RemoveWatcherOperationSpec

      protected RemoveWatcherOperationSpec()
  • 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()
      The ID or key of the issue.
    • username

      @Nullable public @Nullable String username()
      This parameter is no longer available. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details.
    • accountId

      @Nullable public @Nullable String accountId()
      The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, *5b10ac8d82e05b22cc7d4ef5*. Required.
    • issueIdOrKey

      public RemoveWatcherOperationSpec issueIdOrKey(@NotNull @NotNull String issueIdOrKey)
      The ID or key of the issue.
      Returns:
      this.
    • username

      public RemoveWatcherOperationSpec username(@Nullable @Nullable String username)
      This parameter is no longer available. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details.
      Returns:
      this.
    • accountId

      public RemoveWatcherOperationSpec accountId(@Nullable @Nullable String accountId)
      The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, *5b10ac8d82e05b22cc7d4ef5*. Required.
      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