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 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`.
    • ContentUpdate

      protected ContentUpdate()
  • Method Details

    • version

      public 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

      public 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

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

      public 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

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

      public 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`.
    • version

      public ContentUpdate version(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`.
      Returns:
      this.
    • title

      public ContentUpdate title(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.
      Returns:
      this.
    • type

      public ContentUpdate type(String type)
      The type of content. Set this to the current type of the content. For example, - page - blogpost - comment - attachment
      Returns:
      this.
    • status

      public ContentUpdate status(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.
      Returns:
      this.
    • ancestors

      public ContentUpdate ancestors(List<Map<String,Object>> ancestors)
      The new parent for the content. Only one parent content 'id' can be specified.
      Returns:
      this.
    • body

      public ContentUpdate body(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`.
      Returns:
      this.
    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object