Class 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
ConstructorsModifierConstructorDescriptionprotectedProtected no-args constructor for use by serialization frameworks.ContentTemplateCreate(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()Fluent getter for body.Fluent setter for body.Fluent getter for description.description(String description) Fluent setter for description.booleangetBody()Gets the value of body.Gets the value of description.Gets the value of labels.getName()Gets the value of name.getSpace()Gets the value of space.Gets the value of templateType.inthashCode()labels()Fluent getter for labels.Fluent setter for labels.name()Fluent getter for name.Fluent setter for name.voidSets the value of body.voidsetDescription(String description) Sets the value of description.voidSets the value of labels.voidSets the value of name.voidSets the value of space.voidsetTemplateType(String templateType) Sets the value of templateType.space()Fluent getter for space.Fluent setter for space.Fluent getter for templateType.templateType(String templateType) Fluent setter for templateType.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
-
space
-
-
Constructor Details
-
ContentTemplateCreate
Constructs a validated instance ofContentTemplateCreate.- Parameters:
spec- the specification to process
-
ContentTemplateCreate
@Internal protected ContentTemplateCreate()Protected no-args constructor for use by serialization frameworks. -
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.
-
-
Method Details
-
name
-
name
Fluent setter for name.The name of the new template.
- Parameters:
name- name- Returns:
- this
-
getName
-
setName
Sets the value of name.The name of the new template.
- Parameters:
name- name
-
templateType
Fluent getter for templateType.The type of the new template. Set to `page`.
- Returns:
- templateType
-
templateType
Fluent setter for templateType.The type of the new template. Set to `page`.
- Parameters:
templateType- templateType- Returns:
- this
-
getTemplateType
Gets the value of templateType.The type of the new template. Set to `page`.
- Returns:
- templateType
-
setTemplateType
Sets the value of templateType.The type of the new template. Set to `page`.
- Parameters:
templateType- templateType
-
body
Fluent getter for 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:
- body
-
body
Fluent setter for 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.
- Parameters:
body- body- Returns:
- this
-
getBody
Gets the value of 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:
- body
-
setBody
Sets the value of 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.
- Parameters:
body- body
-
description
Fluent getter for description.A description of the new template.
- Returns:
- description
-
description
Fluent setter for description.A description of the new template.
- Parameters:
description- description- Returns:
- this
-
getDescription
Gets the value of description.A description of the new template.
- Returns:
- description
-
setDescription
Sets the value of description.A description of the new template.
- Parameters:
description- description
-
labels
-
labels
Fluent setter for labels.Labels for the new template.
- Parameters:
labels- labels- Returns:
- this
-
getLabels
-
setLabels
-
space
-
space
Fluent setter for 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.
- Parameters:
space- space- Returns:
- this
-
getSpace
-
setSpace
-
equals
-
hashCode
-
toString
-