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
-
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
GetAttachmentContentOperationSpec
(String id, Boolean redirect) Constructs a validated instance ofGetAttachmentContentOperationSpec
.Constructs a validated instance ofGetAttachmentContentOperationSpec
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
protected boolean
boolean
int
hashCode()
@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
-
Field Details
-
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 ofGetAttachmentContentOperationSpec
.- Parameters:
spec
- the specification to process
-
GetAttachmentContentOperationSpec
Constructs a validated instance ofGetAttachmentContentOperationSpec
.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.
-
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
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. -
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
.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-