Class GetAttachmentThumbnailOperationSpec

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

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

Specification for the GetAttachmentThumbnail operation.

Get attachment thumbnail

  • Field Details

    • VALIDATION_ENABLED

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

    • GetAttachmentThumbnailOperationSpec

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

      @Internal public GetAttachmentThumbnailOperationSpec(String id, Boolean redirect, Boolean fallbackToDefault, Integer width, Integer height)
      Constructs a validated instance of GetAttachmentThumbnailOperationSpec.

      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.
      fallbackToDefault - Whether a default thumbnail is returned when the requested thumbnail is not found.
      width - The maximum width to scale the thumbnail to.
      height - The maximum height to scale the thumbnail to.
    • GetAttachmentThumbnailOperationSpec

      protected GetAttachmentThumbnailOperationSpec()
  • 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.
    • fallbackToDefault

      @Nullable public @Nullable Boolean fallbackToDefault()
      Whether a default thumbnail is returned when the requested thumbnail is not found.
    • width

      @Nullable public @Nullable Integer width()
      The maximum width to scale the thumbnail to.
    • height

      @Nullable public @Nullable Integer height()
      The maximum height to scale the thumbnail to.
    • id

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

      public GetAttachmentThumbnailOperationSpec 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.
    • fallbackToDefault

      public GetAttachmentThumbnailOperationSpec fallbackToDefault(@Nullable @Nullable Boolean fallbackToDefault)
      Whether a default thumbnail is returned when the requested thumbnail is not found.
      Returns:
      this.
    • width

      public GetAttachmentThumbnailOperationSpec width(@Nullable @Nullable Integer width)
      The maximum width to scale the thumbnail to.
      Returns:
      this.
    • height

      public GetAttachmentThumbnailOperationSpec height(@Nullable @Nullable Integer height)
      The maximum height to scale the thumbnail to.
      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