Class ContentUpdate
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe new parent for the content.protected Body632549The updated body of the content.protected StringThe updated status of the content.protected StringThe updated title of the content.protected StringThe type of content.The new version for the updated content. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtected no-args constructor for use by serialization frameworks.ContentUpdate(Consumer<ContentUpdate> spec) Constructs a validated instance ofContentUpdate.ContentUpdate(Map<String, Object> version, String title, String type, String status, List<Map<String, Object>> ancestors, Body632549 body) Constructs a validated instance ofContentUpdate. -
Method Summary
Modifier and TypeMethodDescriptionFluent getter for ancestors.Fluent setter for ancestors.body()Fluent getter for body.body(Body632549 body) Fluent setter for body.booleanGets the value of ancestors.getBody()Gets the value of body.Gets the value of status.getTitle()Gets the value of title.getType()Gets the value of type.Gets the value of version.inthashCode()voidsetAncestors(List<Map<String, Object>> ancestors) Sets the value of ancestors.voidsetBody(Body632549 body) Sets the value of body.voidSets the value of status.voidSets the value of title.voidSets the value of type.voidsetVersion(Map<String, Object> version) Sets the value of version.status()Fluent getter for status.Fluent setter for status.title()Fluent getter for title.Fluent setter for title.toString()type()Fluent getter for type.Fluent setter for type.version()Fluent getter for version.Fluent setter for version.
-
Field Details
-
version
The new version for the updated content. Set this to the current version number incremented by one, unless you are changing the status to 'draft' which must have a version number of 1. To get the current version number, use [Get content by ID](#api-content-id-get) and retrieve `version.number`. -
title
The updated title of the content. If you are updating a non-draft `page` or `blogpost`, title is required. If you are not changing the title, set this field to the the current title. -
type
The type of content. Set this to the current type of the content. For example, - page - blogpost - comment - attachment -
status
The updated status of the content. Note, if you change the status of a page from 'current' to 'draft' and it has an existing draft, the existing draft will be deleted in favor of the updated page. -
ancestors
-
body
The updated body of the content. Does not apply to attachments. If you are not sure how to generate these formats, you can create a page in the Confluence application, retrieve the content using [Get content](#api-content-get), and expand the desired content format, e.g. `expand=body.storage`.
-
-
Constructor Details
-
ContentUpdate
Constructs a validated instance ofContentUpdate.- Parameters:
spec- the specification to process
-
ContentUpdate
@Internal protected ContentUpdate()Protected no-args constructor for use by serialization frameworks. -
ContentUpdate
@Internal public ContentUpdate(Map<String, Object> version, String title, String type, String status, List<Map<String, Object>> ancestors, Body632549 body) Constructs a validated instance ofContentUpdate.NOTE: This constructor is not considered stable and may change if the model is updated. Consider using
ContentUpdate(Consumer)instead.- Parameters:
version- The new version for the updated content. Set this to the current version number incremented by one, unless you are changing the status to 'draft' which must have a version number of 1. To get the current version number, use [Get content by ID](#api-content-id-get) and retrieve `version.number`.title- The updated title of the content. If you are updating a non-draft `page` or `blogpost`, title is required. If you are not changing the title, set this field to the the current title.type- The type of content. Set this to the current type of the content. For example, - page - blogpost - comment - attachmentstatus- The updated status of the content. Note, if you change the status of a page from 'current' to 'draft' and it has an existing draft, the existing draft will be deleted in favor of the updated page.ancestors- The new parent for the content. Only one parent content 'id' can be specified.body- The updated body of the content. Does not apply to attachments. If you are not sure how to generate these formats, you can create a page in the Confluence application, retrieve the content using [Get content](#api-content-get), and expand the desired content format, e.g. `expand=body.storage`.
-
-
Method Details
-
version
Fluent getter for version.The new version for the updated content. Set this to the current version number incremented by one, unless you are changing the status to 'draft' which must have a version number of 1. To get the current version number, use [Get content by ID](#api-content-id-get) and retrieve `version.number`.
- Returns:
- version
-
version
Fluent setter for version.The new version for the updated content. Set this to the current version number incremented by one, unless you are changing the status to 'draft' which must have a version number of 1. To get the current version number, use [Get content by ID](#api-content-id-get) and retrieve `version.number`.
- Parameters:
version- version- Returns:
- this
-
getVersion
Gets the value of version.The new version for the updated content. Set this to the current version number incremented by one, unless you are changing the status to 'draft' which must have a version number of 1. To get the current version number, use [Get content by ID](#api-content-id-get) and retrieve `version.number`.
- Returns:
- version
-
setVersion
Sets the value of version.The new version for the updated content. Set this to the current version number incremented by one, unless you are changing the status to 'draft' which must have a version number of 1. To get the current version number, use [Get content by ID](#api-content-id-get) and retrieve `version.number`.
- Parameters:
version- version
-
title
Fluent getter for title.The updated title of the content. If you are updating a non-draft `page` or `blogpost`, title is required. If you are not changing the title, set this field to the the current title.
- Returns:
- title
-
title
Fluent setter for title.The updated title of the content. If you are updating a non-draft `page` or `blogpost`, title is required. If you are not changing the title, set this field to the the current title.
- Parameters:
title- title- Returns:
- this
-
getTitle
Gets the value of title.The updated title of the content. If you are updating a non-draft `page` or `blogpost`, title is required. If you are not changing the title, set this field to the the current title.
- Returns:
- title
-
setTitle
Sets the value of title.The updated title of the content. If you are updating a non-draft `page` or `blogpost`, title is required. If you are not changing the title, set this field to the the current title.
- Parameters:
title- title
-
type
Fluent getter for type.The type of content. Set this to the current type of the content. For example, - page - blogpost - comment - attachment
- Returns:
- type
-
type
Fluent setter for type.The type of content. Set this to the current type of the content. For example, - page - blogpost - comment - attachment
- Parameters:
type- type- Returns:
- this
-
getType
Gets the value of type.The type of content. Set this to the current type of the content. For example, - page - blogpost - comment - attachment
- Returns:
- type
-
setType
Sets the value of type.The type of content. Set this to the current type of the content. For example, - page - blogpost - comment - attachment
- Parameters:
type- type
-
status
Fluent getter for status.The updated status of the content. Note, if you change the status of a page from 'current' to 'draft' and it has an existing draft, the existing draft will be deleted in favor of the updated page.
- Returns:
- status
-
status
Fluent setter for status.The updated status of the content. Note, if you change the status of a page from 'current' to 'draft' and it has an existing draft, the existing draft will be deleted in favor of the updated page.
- Parameters:
status- status- Returns:
- this
-
getStatus
Gets the value of status.The updated status of the content. Note, if you change the status of a page from 'current' to 'draft' and it has an existing draft, the existing draft will be deleted in favor of the updated page.
- Returns:
- status
-
setStatus
Sets the value of status.The updated status of the content. Note, if you change the status of a page from 'current' to 'draft' and it has an existing draft, the existing draft will be deleted in favor of the updated page.
- Parameters:
status- status
-
ancestors
-
ancestors
Fluent setter for ancestors.The new parent for the content. Only one parent content 'id' can be specified.
- Parameters:
ancestors- ancestors- Returns:
- this
-
getAncestors
-
setAncestors
-
body
Fluent getter for body.The updated body of the content. Does not apply to attachments. If you are not sure how to generate these formats, you can create a page in the Confluence application, retrieve the content using [Get content](#api-content-get), and expand the desired content format, e.g. `expand=body.storage`.
- Returns:
- body
-
body
Fluent setter for body.The updated body of the content. Does not apply to attachments. If you are not sure how to generate these formats, you can create a page in the Confluence application, retrieve the content using [Get content](#api-content-get), and expand the desired content format, e.g. `expand=body.storage`.
- Parameters:
body- body- Returns:
- this
-
getBody
Gets the value of body.The updated body of the content. Does not apply to attachments. If you are not sure how to generate these formats, you can create a page in the Confluence application, retrieve the content using [Get content](#api-content-get), and expand the desired content format, e.g. `expand=body.storage`.
- Returns:
- body
-
setBody
Sets the value of body.The updated body of the content. Does not apply to attachments. If you are not sure how to generate these formats, you can create a page in the Confluence application, retrieve the content using [Get content](#api-content-get), and expand the desired content format, e.g. `expand=body.storage`.
- Parameters:
body- body
-
equals
-
hashCode
-
toString
-