Class ContentTemplateUpdate
This object is used to update content templates.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContentTemplateBodyCreateThe body of the new content.protected StringA description of the template.Labels for the template.protected StringThe name of the template.The key for the space of the template.protected StringThe ID of the template being updated.protected StringThe type of the template. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtected no-args constructor for use by serialization frameworks.ContentTemplateUpdate(String templateId, String name, String templateType, ContentTemplateBodyCreate body, String description, List<Label> labels, Map<String, Object> space) Constructs a validated instance ofContentTemplateUpdate.Constructs a validated instance ofContentTemplateUpdate. -
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 templateId.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.voidsetTemplateId(String templateId) Sets the value of templateId.voidsetTemplateType(String templateType) Sets the value of templateType.space()Fluent getter for space.Fluent setter for space.Fluent getter for templateId.templateId(String templateId) Fluent setter for templateId.Fluent getter for templateType.templateType(String templateType) Fluent setter for templateType.toString()
-
Field Details
-
templateId
The ID of the template being updated. -
name
The name of the template. Set to the current `name` if this field is not being updated. -
templateType
The type of the 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 template. -
labels
-
space
-
-
Constructor Details
-
ContentTemplateUpdate
Constructs a validated instance ofContentTemplateUpdate.- Parameters:
spec- the specification to process
-
ContentTemplateUpdate
@Internal protected ContentTemplateUpdate()Protected no-args constructor for use by serialization frameworks. -
ContentTemplateUpdate
@Internal public ContentTemplateUpdate(String templateId, String name, String templateType, ContentTemplateBodyCreate body, String description, List<Label> labels, Map<String, Object> space) Constructs a validated instance ofContentTemplateUpdate.NOTE: This constructor is not considered stable and may change if the model is updated. Consider using
ContentTemplateUpdate(Consumer)instead.- Parameters:
templateId- The ID of the template being updated.name- The name of the template. Set to the current `name` if this field is not being updated.templateType- The type of the 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 template.labels- Labels for the template.space- The key for the space of the template. Required if the template is a space template. Set this to the current `space.key`.
-
-
Method Details
-
templateId
Fluent getter for templateId.The ID of the template being updated.
- Returns:
- templateId
-
templateId
Fluent setter for templateId.The ID of the template being updated.
- Parameters:
templateId- templateId- Returns:
- this
-
getTemplateId
Gets the value of templateId.The ID of the template being updated.
- Returns:
- templateId
-
setTemplateId
Sets the value of templateId.The ID of the template being updated.
- Parameters:
templateId- templateId
-
name
Fluent getter for name.The name of the template. Set to the current `name` if this field is not being updated.
- Returns:
- name
-
name
Fluent setter for name.The name of the template. Set to the current `name` if this field is not being updated.
- Parameters:
name- name- Returns:
- this
-
getName
Gets the value of name.The name of the template. Set to the current `name` if this field is not being updated.
- Returns:
- name
-
setName
Sets the value of name.The name of the template. Set to the current `name` if this field is not being updated.
- Parameters:
name- name
-
templateType
Fluent getter for templateType.The type of the template. Set to `page`.
- Returns:
- templateType
-
templateType
Fluent setter for templateType.The type of the template. Set to `page`.
- Parameters:
templateType- templateType- Returns:
- this
-
getTemplateType
Gets the value of templateType.The type of the template. Set to `page`.
- Returns:
- templateType
-
setTemplateType
Sets the value of templateType.The type of the 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 template.
- Returns:
- description
-
description
Fluent setter for description.A description of the template.
- Parameters:
description- description- Returns:
- this
-
getDescription
Gets the value of description.A description of the template.
- Returns:
- description
-
setDescription
Sets the value of description.A description of the template.
- Parameters:
description- description
-
labels
-
labels
Fluent setter for labels.Labels for the template.
- Parameters:
labels- labels- Returns:
- this
-
getLabels
-
setLabels
-
space
-
space
Fluent setter for space.The key for the space of the template. Required if the template is a space template. Set this to the current `space.key`.
- Parameters:
space- space- Returns:
- this
-
getSpace
-
setSpace
-
equals
-
hashCode
-
toString
-