Class GetContentByIDStateV1OperationSpec
java.lang.Object
io.github.primelib.confluence4j.rest.v1.operations.GetContentByIDStateV1OperationSpec
@Generated("io.github.primelib.primecodegen")
public class GetContentByIDStateV1OperationSpec
extends Object
GetContentByIDStateV1
Gets the current content state of the draft or current version of content. To specify the draft version, set the parameter status to draft, otherwise archived or current will get the relevant published state. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view 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 of interest.The id of the content whose content state is of interest.@Nullable Stringstatus()Set status to one of [current,draft,archived].Set status to one of [current,draft,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
-
GetContentByIDStateV1OperationSpec
@Internal public GetContentByIDStateV1OperationSpec(Consumer<GetContentByIDStateV1OperationSpec> spec) Constructs a validated instance ofGetContentByIDStateV1OperationSpec.- 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 of interest. -
status
Set status to one of [current,draft,archived]. Default value is current. -
id
The id of the content whose content state is of interest.- Returns:
this.
-
status
Set status to one of [current,draft,archived]. Default value is current.- Returns:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-