Class ContentUpdate

java.lang.Object
io.github.primelib.confluence4j.rest.v1.models.ContentUpdate

@Generated("io.github.primelib.primecodegen") public class ContentUpdate extends Object
ContentUpdate
  • Field Details

    • version

      protected Map<String,Object> 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

      protected String 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

      protected String type
      The type of content. Set this to the current type of the content. For example, - page - blogpost - comment - attachment
    • status

      protected String 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

      protected List<Map<String,Object>> ancestors
      The new parent for the content. Only one parent content 'id' can be specified.
    • body

      protected Body632549 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

      public ContentUpdate(Consumer<ContentUpdate> spec)
      Constructs a validated instance of ContentUpdate.
      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 of ContentUpdate.

      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 - 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 - 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

      public Map<String,Object> 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

      public ContentUpdate version(Map<String,Object> 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

      public Map<String,Object> 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

      public void setVersion(Map<String,Object> version)
      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

      public String 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

      public ContentUpdate title(String 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

      public String 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

      public void setTitle(String title)
      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

      public String 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

      public ContentUpdate type(String 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

      public String 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

      public void setType(String type)
      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

      public String 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

      public ContentUpdate status(String 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

      public String 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

      public void setStatus(String status)
      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

      public List<Map<String,Object>> ancestors()
      Fluent getter for ancestors.

      The new parent for the content. Only one parent content 'id' can be specified.

      Returns:
      ancestors
    • ancestors

      public ContentUpdate ancestors(List<Map<String,Object>> 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

      public List<Map<String,Object>> getAncestors()
      Gets the value of ancestors.

      The new parent for the content. Only one parent content 'id' can be specified.

      Returns:
      ancestors
    • setAncestors

      public void setAncestors(List<Map<String,Object>> ancestors)
      Sets the value of ancestors.

      The new parent for the content. Only one parent content 'id' can be specified.

      Parameters:
      ancestors - ancestors
    • body

      public Body632549 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

      public ContentUpdate body(Body632549 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

      public Body632549 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

      public void setBody(Body632549 body)
      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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object