Class GetTemplateByContentTemplateIDV1OperationSpec
java.lang.Object
io.github.primelib.confluence4j.rest.v1.operations.GetTemplateByContentTemplateIDV1OperationSpec
@Generated("io.github.primelib.primecodegen")
public class GetTemplateByContentTemplateIDV1OperationSpec
extends Object
GetTemplateByContentTemplateIDV1
Returns a content template. This includes information about template, like the name, the space or blueprint that the template is in, the body of the template, and more. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'View' permission for the space to view space templates and permission to access the Confluence site ('Can use' global permission) to view global templates.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Booleanallows to disable validation of the spec, use with care! -
Constructor Summary
ConstructorsConstructorDescriptionGetTemplateByContentTemplateIDV1OperationSpec(Consumer<GetTemplateByContentTemplateIDV1OperationSpec> spec) Constructs a validated instance ofGetTemplateByContentTemplateIDV1OperationSpec. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean@NonNull StringThe ID of the content template to be returned.contentTemplateId(@NonNull String contentTemplateId) The ID of the content template to be returned.booleanexpand()A multi-value parameter indicating which properties of the template to expand.A multi-value parameter indicating which properties of the template to expand.inthashCode()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
-
GetTemplateByContentTemplateIDV1OperationSpec
@Internal public GetTemplateByContentTemplateIDV1OperationSpec(Consumer<GetTemplateByContentTemplateIDV1OperationSpec> spec) Constructs a validated instance ofGetTemplateByContentTemplateIDV1OperationSpec.- 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
-
contentTemplateId
The ID of the content template to be returned. -
expand
-
contentTemplateId
public GetTemplateByContentTemplateIDV1OperationSpec contentTemplateId(@NonNull String contentTemplateId) The ID of the content template to be returned.- Returns:
this.
-
expand
A multi-value parameter indicating which properties of the template to expand. - `body` or `body.storage` returns the content of the template in storage format.- Returns:
this.
-
equals
-
canEqual
-
hashCode
-
toString
-