Class DeleteVersionOperationSpec

java.lang.Object
io.github.primelib.jira4j.restv2.spec.DeleteVersionOperationSpec

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

Specification for the DeleteVersion operation.

Delete version

  • Field Details

    • VALIDATION_ENABLED

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

    • DeleteVersionOperationSpec

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

      @Internal public DeleteVersionOperationSpec(String id, String moveFixIssuesTo, String moveAffectedIssuesTo)
      Constructs a validated instance of DeleteVersionOperationSpec.

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

      Parameters:
      id - The ID of the version.
      moveFixIssuesTo - The ID of the version to update fixVersion to when the field contains the deleted version. The replacement version must be in the same project as the version being deleted and cannot be the version being deleted.
      moveAffectedIssuesTo - The ID of the version to update affectedVersion to when the field contains the deleted version. The replacement version must be in the same project as the version being deleted and cannot be the version being deleted.
    • DeleteVersionOperationSpec

      protected DeleteVersionOperationSpec()
  • 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 String id()
      The ID of the version.
    • moveFixIssuesTo

      @Nullable public @Nullable String moveFixIssuesTo()
      The ID of the version to update fixVersion to when the field contains the deleted version. The replacement version must be in the same project as the version being deleted and cannot be the version being deleted.
    • moveAffectedIssuesTo

      @Nullable public @Nullable String moveAffectedIssuesTo()
      The ID of the version to update affectedVersion to when the field contains the deleted version. The replacement version must be in the same project as the version being deleted and cannot be the version being deleted.
    • id

      public DeleteVersionOperationSpec id(@NotNull @NotNull String id)
      The ID of the version.
      Returns:
      this.
    • moveFixIssuesTo

      public DeleteVersionOperationSpec moveFixIssuesTo(@Nullable @Nullable String moveFixIssuesTo)
      The ID of the version to update fixVersion to when the field contains the deleted version. The replacement version must be in the same project as the version being deleted and cannot be the version being deleted.
      Returns:
      this.
    • moveAffectedIssuesTo

      public DeleteVersionOperationSpec moveAffectedIssuesTo(@Nullable @Nullable String moveAffectedIssuesTo)
      The ID of the version to update affectedVersion to when the field contains the deleted version. The replacement version must be in the same project as the version being deleted and cannot be the version 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