Class ContentTemplateUpdate
java.lang.Object
io.github.primelib.confluence4j.rest.v1.models.ContentTemplateUpdate
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
ConstructorsModifierConstructorDescriptionprotectedContentTemplateUpdate(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()The body of the new content.The body of the new content.protected booleanA description of the template.description(String description) A description of the template.booleaninthashCode()labels()Labels for the template.Labels for the template.name()The name of the template.The name of the template.space()The key for the space of the template.The key for the space of the template.The ID of the template being updated.templateId(String templateId) The ID of the template being updated.The type of the template.templateType(String templateType) The type of the template.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
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`.
-
-
Constructor Details
-
ContentTemplateUpdate
Constructs a validated instance ofContentTemplateUpdate.- Parameters:
spec- the specification to process
-
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`.
-
ContentTemplateUpdate
protected ContentTemplateUpdate()
-
-
Method 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
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`. -
templateId
The ID of the template being updated.- Returns:
this.
-
name
The name of the template. Set to the current `name` if this field is not being updated.- Returns:
this.
-
templateType
The type of the 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 template.- Returns:
this.
-
labels
Labels for the template.- Returns:
this.
-
space
The key for the space of the template. Required if the template is a space template. Set this to the current `space.key`.- Returns:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-