Class DeleteProjectRoleOperationSpec

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

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

Specification for the DeleteProjectRole operation.

Delete project role

  • Field Details

    • VALIDATION_ENABLED

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

    • DeleteProjectRoleOperationSpec

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

      @Internal public DeleteProjectRoleOperationSpec(Long id, Long swap)
      Constructs a validated instance of DeleteProjectRoleOperationSpec.

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

      Parameters:
      id - The ID of the project role to delete. Use [Get all project roles](#api-rest-api-3-role-get) to get a list of project role IDs.
      swap - The ID of the project role that will replace the one being deleted.
    • DeleteProjectRoleOperationSpec

      protected DeleteProjectRoleOperationSpec()
  • 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 project role to delete. Use [Get all project roles](#api-rest-api-3-role-get) to get a list of project role IDs.
    • swap

      @Nullable public @Nullable Long swap()
      The ID of the project role that will replace the one being deleted.
    • id

      public DeleteProjectRoleOperationSpec id(@NotNull @NotNull Long id)
      The ID of the project role to delete. Use [Get all project roles](#api-rest-api-3-role-get) to get a list of project role IDs.
      Returns:
      this.
    • swap

      public DeleteProjectRoleOperationSpec swap(@Nullable @Nullable Long swap)
      The ID of the project role that will replace the one being deleted.
      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