Klasse ContentUpdate

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

@Generated("io.github.primelib.primecodegen.javafeign.JavaFeignGenerator") public class ContentUpdate extends Object
ContentUpdate
  • Felddetails

    • version

      protected ContentUpdateVersion version
    • 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 ContentUpdate.StatusEnum 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<ContentUpdateAncestorsInner> ancestors
      The new parent for the content. Only one parent content 'id' can be specified.
    • body

      protected ContentUpdateBody body
  • Konstruktordetails

    • ContentUpdate

      public ContentUpdate(Consumer<ContentUpdate> spec)
      Constructs a validated instance of ContentUpdate.
      Parameter:
      spec - the specification to process
    • ContentUpdate

      @Internal public ContentUpdate(ContentUpdateVersion version, String title, String type, ContentUpdate.StatusEnum status, List<ContentUpdateAncestorsInner> ancestors, ContentUpdateBody 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.

      Parameter:
      version - version
      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 - body
    • ContentUpdate

      protected ContentUpdate()
  • Methodendetails

    • builder

      public static ContentUpdate.ContentUpdateBuilder builder()
    • version

      public ContentUpdateVersion version()
    • 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 ContentUpdate.StatusEnum 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<ContentUpdateAncestorsInner> ancestors()
      The new parent for the content. Only one parent content 'id' can be specified.
    • body

      public ContentUpdateBody body()
    • version

      public ContentUpdate version(ContentUpdateVersion version)
      Gibt zurück:
      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.
      Gibt zurück:
      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
      Gibt zurück:
      this.
    • status

      public ContentUpdate status(ContentUpdate.StatusEnum 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.
      Gibt zurück:
      this.
    • ancestors

      public ContentUpdate ancestors(List<ContentUpdateAncestorsInner> ancestors)
      The new parent for the content. Only one parent content 'id' can be specified.
      Gibt zurück:
      this.
    • body

      public ContentUpdate body(ContentUpdateBody body)
      Gibt zurück:
      this.
    • equals

      public boolean equals(Object o)
      Setzt außer Kraft:
      equals in Klasse Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object