Class PostSpaceBySpaceKeyPermissionV1OperationSpec
java.lang.Object
io.github.primelib.confluence4j.rest.v1.operations.PostSpaceBySpaceKeyPermissionV1OperationSpec
@Generated("io.github.primelib.primecodegen")
public class PostSpaceBySpaceKeyPermissionV1OperationSpec
extends Object
PostSpaceBySpaceKeyPermissionV1
Adds new permission to space. If the permission to be added is a group permission, the group can be identified by its group name or group id. Note: Apps cannot access this REST resource - including when utilizing user impersonation. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Admin' permission for the space.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Booleanallows to disable validation of the spec, use with care! -
Constructor Summary
ConstructorsConstructorDescriptionPostSpaceBySpaceKeyPermissionV1OperationSpec(Consumer<PostSpaceBySpaceKeyPermissionV1OperationSpec> spec) Constructs a validated instance ofPostSpaceBySpaceKeyPermissionV1OperationSpec. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleaninthashCode()payload()The permission to be created.The permission to be created.@NonNull StringspaceKey()The key of the space to be queried for its content.The key of the space to be queried for its content.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
-
PostSpaceBySpaceKeyPermissionV1OperationSpec
@Internal public PostSpaceBySpaceKeyPermissionV1OperationSpec(Consumer<PostSpaceBySpaceKeyPermissionV1OperationSpec> spec) Constructs a validated instance ofPostSpaceBySpaceKeyPermissionV1OperationSpec.- Parameters:
spec- the specification to process
-
-
Method Details
-
validate
public void validate()Validates the Spec, will throw a exception if required parameters are missing- Throws:
NullPointerException
-
spaceKey
The key of the space to be queried for its content. -
payload
-
spaceKey
The key of the space to be queried for its content.- Returns:
this.
-
payload
The permission to be created.- Returns:
this.
-
equals
-
canEqual
-
hashCode
-
toString
-