Class PostContentArchiveV1OperationSpec
java.lang.Object
io.github.primelib.confluence4j.rest.v1.operations.PostContentArchiveV1OperationSpec
@Generated("io.github.primelib.primecodegen")
public class PostContentArchiveV1OperationSpec
extends Object
PostContentArchiveV1
Archives a list of pages. The pages to be archived are specified as a list of content IDs. This API accepts the archival request and returns a task ID. The archival process happens asynchronously. Use the /longtask/<taskId> REST API to get the copy task status. Each content ID needs to resolve to page objects that are not already in an archived state. The content IDs need not belong to the same space. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Archive' permission for each of the pages in the corresponding space it belongs to.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Booleanallows to disable validation of the spec, use with care! -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleaninthashCode()@NonNull ArchivePagesBpayload()The pages to be archived.payload(@NonNull ArchivePagesB payload) The pages to be archived.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
-
PostContentArchiveV1OperationSpec
@Internal public PostContentArchiveV1OperationSpec(Consumer<PostContentArchiveV1OperationSpec> spec) Constructs a validated instance ofPostContentArchiveV1OperationSpec.- 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
-
payload
The pages to be archived. -
payload
The pages to be archived.- Returns:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-