Class PostSpaceBySpaceKeyPermissionCustomContentV1OperationSpec
java.lang.Object
io.github.primelib.confluence4j.rest.v1.operations.PostSpaceBySpaceKeyPermissionCustomContentV1OperationSpec
@Generated("io.github.primelib.primecodegen")
public class PostSpaceBySpaceKeyPermissionCustomContentV1OperationSpec
extends Object
PostSpaceBySpaceKeyPermissionCustomContentV1
Adds new custom content 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: Only apps can access this REST resource and only make changes to the respective app permissions. **[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
ConstructorsConstructorDescriptionPostSpaceBySpaceKeyPermissionCustomContentV1OperationSpec(Consumer<PostSpaceBySpaceKeyPermissionCustomContentV1OperationSpec> spec) Constructs a validated instance ofPostSpaceBySpaceKeyPermissionCustomContentV1OperationSpec. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleaninthashCode()@NonNull SpacePermissionCustomContentpayload()The permissions to be created.payload(@NonNull SpacePermissionCustomContent payload) The permissions 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
-
PostSpaceBySpaceKeyPermissionCustomContentV1OperationSpec
@Internal public PostSpaceBySpaceKeyPermissionCustomContentV1OperationSpec(Consumer<PostSpaceBySpaceKeyPermissionCustomContentV1OperationSpec> spec) Constructs a validated instance ofPostSpaceBySpaceKeyPermissionCustomContentV1OperationSpec.- 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
The permissions to be created. -
spaceKey
The key of the space to be queried for its content.- Returns:
this.
-
payload
public PostSpaceBySpaceKeyPermissionCustomContentV1OperationSpec payload(@NonNull SpacePermissionCustomContent payload) The permissions to be created.- Returns:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-