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

@Generated("io.github.primelib.primecodegen") public class Content extends Object
Content

Base object for all content types. Representation of a blogpost (content)

  • Field Details

    • id

      protected String id
    • type

      protected String type
      Can be "page", "blogpost", "attachment" or "content"
    • status

      protected String status
    • title

      protected String title
    • space

      protected Space space
    • history

      protected ContentHistory history
    • version

      protected Version version
    • ancestors

      protected List<Content> ancestors
    • operations

      protected List<OperationCheckResult> operations
    • children

      protected Map<String,Object> children
    • childTypes

      protected Map<String,Object> childTypes
      Shows whether a piece of content has attachments, comments, or child pages/whiteboards. Note, this doesn't actually contain the child objects.
    • descendants

      protected Map<String,Object> descendants
    • container

      protected Map<String,Object> container
      Container for content. This can be either a space (containing a page or blogpost) or a page/blog post (containing an attachment or comment)
    • body

      protected Body body
    • restrictions

      protected Restrictions restrictions
    • metadata

      protected ContentMetadata metadata
      Metadata object for page, blogpost, comment content
    • macroRenderedOutput

      protected Map<String,Object> macroRenderedOutput
    • extensions

      protected Object extensions
    • Expandable

      protected Expandable07C2Ed Expandable
    • ari

      protected String ari
    • base64EncodedAri

      protected String base64EncodedAri
  • Constructor Details

    • Content

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

      @Internal public Content(String id, String type, String status, String title, Space space, ContentHistory history, Version version, List<Content> ancestors, List<OperationCheckResult> operations, Map<String,Object> children, Map<String,Object> childTypes, Map<String,Object> descendants, Map<String,Object> container, Body body, Restrictions restrictions, ContentMetadata metadata, Map<String,Object> macroRenderedOutput, Object extensions, Expandable07C2Ed Expandable, Map<String,Object> Links, String ari, String base64EncodedAri)
      Constructs a validated instance of Content.

      NOTE: This constructor is not considered stable and may change if the model is updated. Consider using Content(Consumer) instead.

      Parameters:
      id - id
      type - Can be "page", "blogpost", "attachment" or "content"
      status - status
      title - title
      space - space
      history - history
      version - version
      ancestors - ancestors
      operations - operations
      children - children
      childTypes - Shows whether a piece of content has attachments, comments, or child pages/whiteboards. Note, this doesn't actually contain the child objects.
      descendants - descendants
      container - Container for content. This can be either a space (containing a page or blogpost) or a page/blog post (containing an attachment or comment)
      body - body
      restrictions - restrictions
      metadata - Metadata object for page, blogpost, comment content
      macroRenderedOutput - macroRenderedOutput
      extensions - extensions
      Expandable - Expandable
      Links - Links
      ari - ari
      base64EncodedAri - base64EncodedAri
    • Content

      protected Content()
  • Method Details

    • id

      public String id()
    • type

      public String type()
      Can be "page", "blogpost", "attachment" or "content"
    • status

      public String status()
    • title

      public String title()
    • space

      public Space space()
    • history

      public ContentHistory history()
    • version

      public Version version()
    • ancestors

      public List<Content> ancestors()
    • operations

      public List<OperationCheckResult> operations()
    • children

      public Map<String,Object> children()
    • childTypes

      public Map<String,Object> childTypes()
      Shows whether a piece of content has attachments, comments, or child pages/whiteboards. Note, this doesn't actually contain the child objects.
    • descendants

      public Map<String,Object> descendants()
    • container

      public Map<String,Object> container()
      Container for content. This can be either a space (containing a page or blogpost) or a page/blog post (containing an attachment or comment)
    • body

      public Body body()
    • restrictions

      public Restrictions restrictions()
    • metadata

      public ContentMetadata metadata()
      Metadata object for page, blogpost, comment content
    • macroRenderedOutput

      public Map<String,Object> macroRenderedOutput()
    • extensions

      public Object extensions()
    • Expandable

      public Expandable07C2Ed Expandable()
    • Links

      public Map<String,Object> Links()
    • ari

      public String ari()
    • base64EncodedAri

      public String base64EncodedAri()
    • id

      public Content id(String id)
      Returns:
      this.
    • type

      public Content type(String type)
      Can be "page", "blogpost", "attachment" or "content"
      Returns:
      this.
    • status

      public Content status(String status)
      Returns:
      this.
    • title

      public Content title(String title)
      Returns:
      this.
    • space

      public Content space(Space space)
      Returns:
      this.
    • history

      public Content history(ContentHistory history)
      Returns:
      this.
    • version

      public Content version(Version version)
      Returns:
      this.
    • ancestors

      public Content ancestors(List<Content> ancestors)
      Returns:
      this.
    • operations

      public Content operations(List<OperationCheckResult> operations)
      Returns:
      this.
    • children

      public Content children(Map<String,Object> children)
      Returns:
      this.
    • childTypes

      public Content childTypes(Map<String,Object> childTypes)
      Shows whether a piece of content has attachments, comments, or child pages/whiteboards. Note, this doesn't actually contain the child objects.
      Returns:
      this.
    • descendants

      public Content descendants(Map<String,Object> descendants)
      Returns:
      this.
    • container

      public Content container(Map<String,Object> container)
      Container for content. This can be either a space (containing a page or blogpost) or a page/blog post (containing an attachment or comment)
      Returns:
      this.
    • body

      public Content body(Body body)
      Returns:
      this.
    • restrictions

      public Content restrictions(Restrictions restrictions)
      Returns:
      this.
    • metadata

      public Content metadata(ContentMetadata metadata)
      Metadata object for page, blogpost, comment content
      Returns:
      this.
    • macroRenderedOutput

      public Content macroRenderedOutput(Map<String,Object> macroRenderedOutput)
      Returns:
      this.
    • extensions

      public Content extensions(Object extensions)
      Returns:
      this.
    • Expandable

      public Content Expandable(Expandable07C2Ed Expandable)
      Returns:
      this.
    • Links

      public Content Links(Map<String,Object> Links)
      Returns:
      this.
    • ari

      public Content ari(String ari)
      Returns:
      this.
    • base64EncodedAri

      public Content base64EncodedAri(String base64EncodedAri)
      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