Class AddUserToGroupOperationSpec
java.lang.Object
io.github.primelib.jira4j.restv2.spec.AddUserToGroupOperationSpec
@Generated("io.github.primelib.primecodegen.javafeign.JavaFeignGenerator")
public class AddUserToGroupOperationSpec
extends Object
AddUserToGroupSpec
Specification for the AddUserToGroup operation.
Add user to group
-
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
AddUserToGroupOperationSpec
(UpdateUserToGroupBean updateUserToGroupBean, String groupname, String groupId) Constructs a validated instance ofAddUserToGroupOperationSpec
.Constructs a validated instance ofAddUserToGroupOperationSpec
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
protected boolean
boolean
@Nullable String
groupId()
The ID of the group.The ID of the group.@Nullable String
As a group's name can change, use ofgroupId
is recommended to identify a group.As a group's name can change, use ofgroupId
is recommended to identify a group.int
hashCode()
toString()
@NotNull UpdateUserToGroupBean
The user to add to the group.updateUserToGroupBean
(@NotNull UpdateUserToGroupBean updateUserToGroupBean) The user to add to the group.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
-
AddUserToGroupOperationSpec
Constructs a validated instance ofAddUserToGroupOperationSpec
.- Parameters:
spec
- the specification to process
-
AddUserToGroupOperationSpec
@Internal public AddUserToGroupOperationSpec(UpdateUserToGroupBean updateUserToGroupBean, String groupname, String groupId) Constructs a validated instance ofAddUserToGroupOperationSpec
.NOTE: This constructor is not considered stable and may change if the operation is updated.
- Parameters:
updateUserToGroupBean
- The user to add to the group.groupname
- As a group's name can change, use ofgroupId
is recommended to identify a group. The name of the group. This parameter cannot be used with thegroupId
parameter.groupId
- The ID of the group. This parameter cannot be used with thegroupName
parameter.
-
AddUserToGroupOperationSpec
protected AddUserToGroupOperationSpec()
-
-
Method Details
-
validate
public void validate()Validates the Spec, will throw a exception if required parameters are missing- Throws:
NullPointerException
-
builder
-
updateUserToGroupBean
The user to add to the group. -
groupname
As a group's name can change, use ofgroupId
is recommended to identify a group. The name of the group. This parameter cannot be used with thegroupId
parameter. -
groupId
The ID of the group. This parameter cannot be used with thegroupName
parameter. -
updateUserToGroupBean
public AddUserToGroupOperationSpec updateUserToGroupBean(@NotNull @NotNull UpdateUserToGroupBean updateUserToGroupBean) The user to add to the group.- Returns:
this
.
-
groupname
As a group's name can change, use ofgroupId
is recommended to identify a group. The name of the group. This parameter cannot be used with thegroupId
parameter.- Returns:
this
.
-
groupId
The ID of the group. This parameter cannot be used with thegroupName
parameter.- Returns:
this
.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-