Class ContentTemplateCreate
java.lang.Object
io.github.primelib.confluence4j.rest.v1.models.ContentTemplateCreate
ContentTemplateCreate
This object is used to create content templates.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContentTemplateBodyCreateThe body of the new content.protected StringA description of the new template.Labels for the new template.protected StringThe name of the new template.The key for the space of the new template.protected StringThe type of the new template. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedContentTemplateCreate(String name, String templateType, ContentTemplateBodyCreate body, String description, List<Label> labels, Map<String, Object> space) Constructs a validated instance ofContentTemplateCreate.Constructs a validated instance ofContentTemplateCreate. -
Method Summary
Modifier and TypeMethodDescriptionbody()The body of the new content.The body of the new content.protected booleanA description of the new template.description(String description) A description of the new template.booleaninthashCode()labels()Labels for the new template.Labels for the new template.name()The name of the new template.The name of the new template.space()The key for the space of the new template.The key for the space of the new template.The type of the new template.templateType(String templateType) The type of the new template.toString()
-
Field Details
-
name
The name of the new template. -
templateType
The type of the new template. Set to `page`. -
body
The body of the new content. Does not apply to attachments. Only one body format should be specified as the property for this object, e.g. `storage`. Note, `editor2` format is used by Atlassian only. `anonymous_export_view` is the same as `export_view` format but only content viewable by an anonymous user is included. -
description
A description of the new template. -
labels
Labels for the new template. -
space
The key for the space of the new template. Only applies to space templates. If the spaceKey is not specified, the template will be created as a global template.
-
-
Constructor Details
-
ContentTemplateCreate
Constructs a validated instance ofContentTemplateCreate.- Parameters:
spec- the specification to process
-
ContentTemplateCreate
@Internal public ContentTemplateCreate(String name, String templateType, ContentTemplateBodyCreate body, String description, List<Label> labels, Map<String, Object> space) Constructs a validated instance ofContentTemplateCreate.NOTE: This constructor is not considered stable and may change if the model is updated. Consider using
ContentTemplateCreate(Consumer)instead.- Parameters:
name- The name of the new template.templateType- The type of the new template. Set to `page`.body- The body of the new content. Does not apply to attachments. Only one body format should be specified as the property for this object, e.g. `storage`. Note, `editor2` format is used by Atlassian only. `anonymous_export_view` is the same as `export_view` format but only content viewable by an anonymous user is included.description- A description of the new template.labels- Labels for the new template.space- The key for the space of the new template. Only applies to space templates. If the spaceKey is not specified, the template will be created as a global template.
-
ContentTemplateCreate
protected ContentTemplateCreate()
-
-
Method Details
-
name
The name of the new template. -
templateType
The type of the new template. Set to `page`. -
body
The body of the new content. Does not apply to attachments. Only one body format should be specified as the property for this object, e.g. `storage`. Note, `editor2` format is used by Atlassian only. `anonymous_export_view` is the same as `export_view` format but only content viewable by an anonymous user is included. -
description
A description of the new template. -
labels
Labels for the new template. -
space
The key for the space of the new template. Only applies to space templates. If the spaceKey is not specified, the template will be created as a global template. -
name
The name of the new template.- Returns:
this.
-
templateType
The type of the new template. Set to `page`.- Returns:
this.
-
body
The body of the new content. Does not apply to attachments. Only one body format should be specified as the property for this object, e.g. `storage`. Note, `editor2` format is used by Atlassian only. `anonymous_export_view` is the same as `export_view` format but only content viewable by an anonymous user is included.- Returns:
this.
-
description
A description of the new template.- Returns:
this.
-
labels
Labels for the new template.- Returns:
this.
-
space
The key for the space of the new template. Only applies to space templates. If the spaceKey is not specified, the template will be created as a global template.- Returns:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-