Class PostContentByIDVersionV1OperationSpec
java.lang.Object
io.github.primelib.confluence4j.rest.v1.operations.PostContentByIDVersionV1OperationSpec
@Generated("io.github.primelib.primecodegen")
public class PostContentByIDVersionV1OperationSpec
extends Object
PostContentByIDVersionV1
Restores a historical version to be the latest version. That is, a new version is created with the content of the historical version. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Booleanallows to disable validation of the spec, use with care! -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanexpand()A multi-value parameter indicating which properties of the content to expand.A multi-value parameter indicating which properties of the content to expand.inthashCode()@NonNull Stringid()The ID of the content for which the history will be restored.The ID of the content for which the history will be restored.@NonNull VersionRestorepayload()The content version to be restored.payload(@NonNull VersionRestore payload) The content version to be restored.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
-
PostContentByIDVersionV1OperationSpec
@Internal public PostContentByIDVersionV1OperationSpec(Consumer<PostContentByIDVersionV1OperationSpec> spec) Constructs a validated instance ofPostContentByIDVersionV1OperationSpec.- 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 for which the history will be restored. -
expand
-
payload
The content version to be restored. -
id
The ID of the content for which the history will be restored.- Returns:
this.
-
expand
A multi-value parameter indicating which properties of the content to expand. By default, the `content` object is expanded. - `collaborators` returns the users that collaborated on the version. - `content` returns the content for the version.- Returns:
this.
-
payload
The content version to be restored.- Returns:
this.
-
equals
-
canEqual
-
hashCode
-
toString
-