Class GetAttachmentContentOperationSpec

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

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

Specification for the GetAttachmentContent operation.

Get attachment content

  • Field Details

    • VALIDATION_ENABLED

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

    • GetAttachmentContentOperationSpec

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

      @Internal public GetAttachmentContentOperationSpec(String id, Boolean redirect)
      Constructs a validated instance of GetAttachmentContentOperationSpec.

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

      Parameters:
      id - The ID of the attachment.
      redirect - Whether a redirect is provided for the attachment download. Clients that do not automatically follow redirects can set this to false to avoid making multiple requests to download the attachment.
    • GetAttachmentContentOperationSpec

      protected GetAttachmentContentOperationSpec()
  • 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 attachment.
    • redirect

      @Nullable public @Nullable Boolean redirect()
      Whether a redirect is provided for the attachment download. Clients that do not automatically follow redirects can set this to false to avoid making multiple requests to download the attachment.
    • id

      public GetAttachmentContentOperationSpec id(@NotNull @NotNull String id)
      The ID of the attachment.
      Returns:
      this.
    • redirect

      public GetAttachmentContentOperationSpec redirect(@Nullable @Nullable Boolean redirect)
      Whether a redirect is provided for the attachment download. Clients that do not automatically follow redirects can set this to false to avoid making multiple requests to download the attachment.
      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