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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Boolean
allows to disable validation of the spec, use with care! -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
GetAttachmentThumbnailOperationSpec
(String id, Boolean redirect, Boolean fallbackToDefault, Integer width, Integer height) Constructs a validated instance ofGetAttachmentThumbnailOperationSpec
.Constructs a validated instance ofGetAttachmentThumbnailOperationSpec
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
protected boolean
boolean
@Nullable Boolean
Whether a default thumbnail is returned when the requested thumbnail is not found.fallbackToDefault
(@Nullable Boolean fallbackToDefault) Whether a default thumbnail is returned when the requested thumbnail is not found.int
hashCode()
@Nullable Integer
height()
The maximum height to scale the thumbnail to.The maximum height to scale the thumbnail to.@NotNull String
id()
The ID of the attachment.The ID of the attachment.@Nullable Boolean
redirect()
Whether a redirect is provided for the attachment download.Whether a redirect is provided for the attachment download.toString()
void
validate()
Validates the Spec, will throw a exception if required parameters are missing@Nullable Integer
width()
The maximum width to scale the thumbnail to.The maximum width to scale the thumbnail to.
-
Field Details
-
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 ofGetAttachmentThumbnailOperationSpec
.- Parameters:
spec
- the specification to process
-
GetAttachmentThumbnailOperationSpec
@Internal public GetAttachmentThumbnailOperationSpec(String id, Boolean redirect, Boolean fallbackToDefault, Integer width, Integer height) Constructs a validated instance ofGetAttachmentThumbnailOperationSpec
.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 tofalse
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
public static GetAttachmentThumbnailOperationSpec.GetAttachmentThumbnailOperationSpecBuilder builder() -
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 tofalse
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. -
id
The ID of the attachment.- Returns:
this
.
-
redirect
Whether a redirect is provided for the attachment download. Clients that do not automatically follow redirects can set this tofalse
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
The maximum width to scale the thumbnail to.- Returns:
this
.
-
height
The maximum height to scale the thumbnail to.- Returns:
this
.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-