Class DeleteContentByIDStateV1OperationSpec
java.lang.Object
io.github.primelib.confluence4j.rest.v1.operations.DeleteContentByIDStateV1OperationSpec
@Generated("io.github.primelib.primecodegen")
public class DeleteContentByIDStateV1OperationSpec
extends Object
DeleteContentByIDStateV1
Removes the content state of the content specified and creates a new version (publishes the content without changing the body) of the content with the new status. **[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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleaninthashCode()@NonNull Stringid()The Id of the content whose content state is to be set.The Id of the content whose content state is to be set.@Nullable Stringstatus()status of content state from which to delete state.status of content state from which to delete state.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
-
DeleteContentByIDStateV1OperationSpec
@Internal public DeleteContentByIDStateV1OperationSpec(Consumer<DeleteContentByIDStateV1OperationSpec> spec) Constructs a validated instance ofDeleteContentByIDStateV1OperationSpec.- 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 whose content state is to be set. -
status
status of content state from which to delete state. Can be draft or archived -
id
The Id of the content whose content state is to be set.- Returns:
this.
-
status
status of content state from which to delete state. Can be draft or archived- Returns:
this.
-
equals
-
canEqual
-
hashCode
-
toString
-