Class PostContentByIDRestrictionV1OperationSpec
java.lang.Object
io.github.primelib.confluence4j.rest.v1.operations.PostContentByIDRestrictionV1OperationSpec
@Generated("io.github.primelib.primecodegen")
public class PostContentByIDRestrictionV1OperationSpec
extends Object
PostContentByIDRestrictionV1
Adds restrictions to a piece of content. Note, this does not change any existing restrictions on the content. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Booleanallows to disable validation of the spec, use with care! -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a validated instance ofPostContentByIDRestrictionV1OperationSpec. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanexpand()A multi-value parameter indicating which properties of the content restrictions (returned in response) to expand.A multi-value parameter indicating which properties of the content restrictions (returned in response) to expand.inthashCode()@NonNull Stringid()The ID of the content to add restrictions to.The ID of the content to add restrictions to.@NonNull Objectpayload()The restrictions to be added to the content.The restrictions to be added to the 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
-
PostContentByIDRestrictionV1OperationSpec
@Internal public PostContentByIDRestrictionV1OperationSpec(Consumer<PostContentByIDRestrictionV1OperationSpec> spec) Constructs a validated instance ofPostContentByIDRestrictionV1OperationSpec.- 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
-
id
The ID of the content to add restrictions to. -
expand
A multi-value parameter indicating which properties of the content restrictions (returned in response) to expand. - `restrictions.user` returns the piece of content that the restrictions are applied to. Expanded by default. - `restrictions.group` returns the piece of content that the restrictions are applied to. Expanded by default. - `content` returns the piece of content that the restrictions are applied to. -
payload
The restrictions to be added to the content. -
id
The ID of the content to add restrictions to.- Returns:
this.
-
expand
A multi-value parameter indicating which properties of the content restrictions (returned in response) to expand. - `restrictions.user` returns the piece of content that the restrictions are applied to. Expanded by default. - `restrictions.group` returns the piece of content that the restrictions are applied to. Expanded by default. - `content` returns the piece of content that the restrictions are applied to.- Returns:
this.
-
payload
The restrictions to be added to the content.- Returns:
this.
-
equals
-
canEqual
-
hashCode
-
toString
-