Class CreateProjectAvatarOperationSpec
java.lang.Object
io.github.primelib.jira4j.restv3.spec.CreateProjectAvatarOperationSpec
@Generated("io.github.primelib.primecodegen.javafeign.JavaFeignGenerator")
public class CreateProjectAvatarOperationSpec
extends Object
CreateProjectAvatarSpec
Specification for the CreateProjectAvatar operation.
Load project avatar
-
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
CreateProjectAvatarOperationSpec
(String projectIdOrKey, Object body, Integer x, Integer y, Integer size) Constructs a validated instance ofCreateProjectAvatarOperationSpec
.Constructs a validated instance ofCreateProjectAvatarOperationSpec
. -
Method Summary
Modifier and TypeMethodDescription@NotNull Object
body()
builder()
protected boolean
boolean
int
hashCode()
@NotNull String
The ID or (case-sensitive) key of the project.projectIdOrKey
(@NotNull String projectIdOrKey) The ID or (case-sensitive) key of the project.@Nullable Integer
size()
The length of each side of the crop region.The length of each side of the crop region.toString()
void
validate()
Validates the Spec, will throw a exception if required parameters are missing@Nullable Integer
x()
The X coordinate of the top-left corner of the crop region.The X coordinate of the top-left corner of the crop region.@Nullable Integer
y()
The Y coordinate of the top-left corner of the crop region.The Y coordinate of the top-left corner of the crop region.
-
Field Details
-
VALIDATION_ENABLED
allows to disable validation of the spec, use with care!
-
-
Constructor Details
-
CreateProjectAvatarOperationSpec
Constructs a validated instance ofCreateProjectAvatarOperationSpec
.- Parameters:
spec
- the specification to process
-
CreateProjectAvatarOperationSpec
@Internal public CreateProjectAvatarOperationSpec(String projectIdOrKey, Object body, Integer x, Integer y, Integer size) Constructs a validated instance ofCreateProjectAvatarOperationSpec
.NOTE: This constructor is not considered stable and may change if the operation is updated.
- Parameters:
projectIdOrKey
- The ID or (case-sensitive) key of the project.body
-x
- The X coordinate of the top-left corner of the crop region.y
- The Y coordinate of the top-left corner of the crop region.size
- The length of each side of the crop region.
-
CreateProjectAvatarOperationSpec
protected CreateProjectAvatarOperationSpec()
-
-
Method Details
-
validate
public void validate()Validates the Spec, will throw a exception if required parameters are missing- Throws:
NullPointerException
-
builder
-
projectIdOrKey
The ID or (case-sensitive) key of the project. -
body
-
x
The X coordinate of the top-left corner of the crop region. -
y
The Y coordinate of the top-left corner of the crop region. -
size
The length of each side of the crop region. -
projectIdOrKey
The ID or (case-sensitive) key of the project.- Returns:
this
.
-
body
- Returns:
this
.
-
x
The X coordinate of the top-left corner of the crop region.- Returns:
this
.
-
y
The Y coordinate of the top-left corner of the crop region.- Returns:
this
.
-
size
The length of each side of the crop region.- Returns:
this
.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-