Class DeleteContentByIDVersionByVersionNumberV1OperationSpec
java.lang.Object
io.github.primelib.confluence4j.rest.v1.operations.DeleteContentByIDVersionByVersionNumberV1OperationSpec
@Generated("io.github.primelib.primecodegen")
public class DeleteContentByIDVersionByVersionNumberV1OperationSpec
extends Object
DeleteContentByIDVersionByVersionNumberV1
Delete a historical version. This does not delete the changes made to the content in that version, rather the changes for the deleted version are rolled up into the next version. Note, you cannot delete the current 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
ConstructorsConstructorDescriptionDeleteContentByIDVersionByVersionNumberV1OperationSpec(Consumer<DeleteContentByIDVersionByVersionNumberV1OperationSpec> spec) Constructs a validated instance ofDeleteContentByIDVersionByVersionNumberV1OperationSpec. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleaninthashCode()@NonNull Stringid()The ID of the content that the version will be deleted from.The ID of the content that the version will be deleted from.toString()voidvalidate()Validates the Spec, will throw a exception if required parameters are missing@NonNull IntegerThe number of the version to be deleted.versionNumber(@NonNull Integer versionNumber) The number of the version to be deleted.
-
Field Details
-
VALIDATION_ENABLED
allows to disable validation of the spec, use with care!
-
-
Constructor Details
-
DeleteContentByIDVersionByVersionNumberV1OperationSpec
@Internal public DeleteContentByIDVersionByVersionNumberV1OperationSpec(Consumer<DeleteContentByIDVersionByVersionNumberV1OperationSpec> spec) Constructs a validated instance ofDeleteContentByIDVersionByVersionNumberV1OperationSpec.- 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 that the version will be deleted from. -
versionNumber
The number of the version to be deleted. The version number starts from 1 up to current version. -
id
The ID of the content that the version will be deleted from.- Returns:
this.
-
versionNumber
public DeleteContentByIDVersionByVersionNumberV1OperationSpec versionNumber(@NonNull Integer versionNumber) The number of the version to be deleted. The version number starts from 1 up to current version.- Returns:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-