Class PostContentByIDPagehierarchyCopyV1OperationSpec
java.lang.Object
io.github.primelib.confluence4j.rest.v1.operations.PostContentByIDPagehierarchyCopyV1OperationSpec
@Generated("io.github.primelib.primecodegen")
public class PostContentByIDPagehierarchyCopyV1OperationSpec
extends Object
PostContentByIDPagehierarchyCopyV1
Copy page hierarchy allows the copying of an entire hierarchy of pages and their associated properties, permissions and attachments. The id path parameter refers to the content id of the page to copy, and the new parent of this copied page is defined using the destinationPageId in the request body. The titleOptions object defines the rules of renaming page titles during the copy; for example, search and replace can be used in conjunction to rewrite the copied page titles. Response example: <pre><code> { "id" : "1180606", "links" : { "status" : "/rest/api/longtask/1180606" } } </code></pre> Use the /longtask/<taskId> REST API to get the copy task status.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Booleanallows to disable validation of the spec, use with care! -
Constructor Summary
ConstructorsConstructorDescriptionPostContentByIDPagehierarchyCopyV1OperationSpec(Consumer<PostContentByIDPagehierarchyCopyV1OperationSpec> spec) Constructs a validated instance ofPostContentByIDPagehierarchyCopyV1OperationSpec. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleaninthashCode()@NonNull Stringid()idid@NonNull CopyPageHierarchyRequestpayload()Request object from json post bodypayload(@NonNull CopyPageHierarchyRequest payload) Request object from json post bodytoString()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
-
PostContentByIDPagehierarchyCopyV1OperationSpec
@Internal public PostContentByIDPagehierarchyCopyV1OperationSpec(Consumer<PostContentByIDPagehierarchyCopyV1OperationSpec> spec) Constructs a validated instance ofPostContentByIDPagehierarchyCopyV1OperationSpec.- 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
id -
payload
Request object from json post body -
id
id- Returns:
this.
-
payload
public PostContentByIDPagehierarchyCopyV1OperationSpec payload(@NonNull CopyPageHierarchyRequest payload) Request object from json post body- Returns:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-