Class CreatePermissionGrantOperationSpec
java.lang.Object
io.github.primelib.jira4j.restv2.spec.CreatePermissionGrantOperationSpec
@Generated("io.github.primelib.primecodegen.javafeign.JavaFeignGenerator")
public class CreatePermissionGrantOperationSpec
extends Object
CreatePermissionGrantSpec
Specification for the CreatePermissionGrant operation.
Create permission grant
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Booleanallows to disable validation of the spec, use with care! -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreatePermissionGrantOperationSpec(Long schemeId, PermissionGrant permissionGrant, String expand) Constructs a validated instance ofCreatePermissionGrantOperationSpec.Constructs a validated instance ofCreatePermissionGrantOperationSpec. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanboolean@Nullable Stringexpand()Use expand to include additional information in the response.Use expand to include additional information in the response.inthashCode()@NotNull PermissionGrantThe permission grant to create.permissionGrant(@NotNull PermissionGrant permissionGrant) The permission grant to create.@NotNull LongschemeId()The ID of the permission scheme in which to create a new permission grant.The ID of the permission scheme in which to create a new permission grant.toString()voidvalidate()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
-
CreatePermissionGrantOperationSpec
@Internal public CreatePermissionGrantOperationSpec(Consumer<CreatePermissionGrantOperationSpec> spec) Constructs a validated instance ofCreatePermissionGrantOperationSpec.- Parameters:
spec- the specification to process
-
CreatePermissionGrantOperationSpec
@Internal public CreatePermissionGrantOperationSpec(Long schemeId, PermissionGrant permissionGrant, String expand) Constructs a validated instance ofCreatePermissionGrantOperationSpec.NOTE: This constructor is not considered stable and may change if the operation is updated.
- Parameters:
schemeId- The ID of the permission scheme in which to create a new permission grant.permissionGrant- The permission grant to create.expand- Use expand to include additional information in the response. This parameter accepts a comma-separated list. Note that permissions are always included when you specify any value. Expand options include: *permissionsReturns all permission grants for each permission scheme. *userReturns information about the user who is granted the permission. *groupReturns information about the group that is granted the permission. *projectRoleReturns information about the project role granted the permission. *fieldReturns information about the custom field granted the permission. *allReturns all expandable information.
-
CreatePermissionGrantOperationSpec
protected CreatePermissionGrantOperationSpec()
-
-
Method Details
-
validate
public void validate()Validates the Spec, will throw a exception if required parameters are missing- Throws:
NullPointerException
-
builder
public static CreatePermissionGrantOperationSpec.CreatePermissionGrantOperationSpecBuilder builder() -
schemeId
The ID of the permission scheme in which to create a new permission grant. -
permissionGrant
The permission grant to create. -
expand
Use expand to include additional information in the response. This parameter accepts a comma-separated list. Note that permissions are always included when you specify any value. Expand options include: *permissionsReturns all permission grants for each permission scheme. *userReturns information about the user who is granted the permission. *groupReturns information about the group that is granted the permission. *projectRoleReturns information about the project role granted the permission. *fieldReturns information about the custom field granted the permission. *allReturns all expandable information. -
schemeId
The ID of the permission scheme in which to create a new permission grant.- Returns:
this.
-
permissionGrant
public CreatePermissionGrantOperationSpec permissionGrant(@NotNull @NotNull PermissionGrant permissionGrant) The permission grant to create.- Returns:
this.
-
expand
Use expand to include additional information in the response. This parameter accepts a comma-separated list. Note that permissions are always included when you specify any value. Expand options include: *permissionsReturns all permission grants for each permission scheme. *userReturns information about the user who is granted the permission. *groupReturns information about the group that is granted the permission. *projectRoleReturns information about the project role granted the permission. *fieldReturns information about the custom field granted the permission. *allReturns all expandable information.- Returns:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-