Class Content

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

      protected Expandable07C2Ed additionalExpandable
    • 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 protected Content()
      Protected no-args constructor for use by serialization frameworks.
    • 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 additionalExpandable, Map<String,Object> additionalLinks, 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
      additionalExpandable - additionalExpandable
      additionalLinks - additionalLinks
      ari - ari
      base64EncodedAri - base64EncodedAri
  • Method Details

    • id

      public String id()
      Fluent getter for id.
      Returns:
      id
    • id

      public Content id(String id)
      Fluent setter for id.
      Parameters:
      id - id
      Returns:
      this
    • getId

      public String getId()
      Gets the value of id.
      Returns:
      id
    • setId

      public void setId(String id)
      Sets the value of id.
      Parameters:
      id - id
    • type

      public String type()
      Fluent getter for type.

      Can be "page", "blogpost", "attachment" or "content"

      Returns:
      type
    • type

      public Content type(String type)
      Fluent setter for type.

      Can be "page", "blogpost", "attachment" or "content"

      Parameters:
      type - type
      Returns:
      this
    • getType

      public String getType()
      Gets the value of type.

      Can be "page", "blogpost", "attachment" or "content"

      Returns:
      type
    • setType

      public void setType(String type)
      Sets the value of type.

      Can be "page", "blogpost", "attachment" or "content"

      Parameters:
      type - type
    • status

      public String status()
      Fluent getter for status.
      Returns:
      status
    • status

      public Content status(String status)
      Fluent setter for status.
      Parameters:
      status - status
      Returns:
      this
    • getStatus

      public String getStatus()
      Gets the value of status.
      Returns:
      status
    • setStatus

      public void setStatus(String status)
      Sets the value of status.
      Parameters:
      status - status
    • title

      public String title()
      Fluent getter for title.
      Returns:
      title
    • title

      public Content title(String title)
      Fluent setter for title.
      Parameters:
      title - title
      Returns:
      this
    • getTitle

      public String getTitle()
      Gets the value of title.
      Returns:
      title
    • setTitle

      public void setTitle(String title)
      Sets the value of title.
      Parameters:
      title - title
    • space

      public Space space()
      Fluent getter for space.
      Returns:
      space
    • space

      public Content space(Space space)
      Fluent setter for space.
      Parameters:
      space - space
      Returns:
      this
    • getSpace

      public Space getSpace()
      Gets the value of space.
      Returns:
      space
    • setSpace

      public void setSpace(Space space)
      Sets the value of space.
      Parameters:
      space - space
    • history

      public ContentHistory history()
      Fluent getter for history.
      Returns:
      history
    • history

      public Content history(ContentHistory history)
      Fluent setter for history.
      Parameters:
      history - history
      Returns:
      this
    • getHistory

      public ContentHistory getHistory()
      Gets the value of history.
      Returns:
      history
    • setHistory

      public void setHistory(ContentHistory history)
      Sets the value of history.
      Parameters:
      history - history
    • version

      public Version version()
      Fluent getter for version.
      Returns:
      version
    • version

      public Content version(Version version)
      Fluent setter for version.
      Parameters:
      version - version
      Returns:
      this
    • getVersion

      public Version getVersion()
      Gets the value of version.
      Returns:
      version
    • setVersion

      public void setVersion(Version version)
      Sets the value of version.
      Parameters:
      version - version
    • ancestors

      public List<Content> ancestors()
      Fluent getter for ancestors.
      Returns:
      ancestors
    • ancestors

      public Content ancestors(List<Content> ancestors)
      Fluent setter for ancestors.
      Parameters:
      ancestors - ancestors
      Returns:
      this
    • getAncestors

      public List<Content> getAncestors()
      Gets the value of ancestors.
      Returns:
      ancestors
    • setAncestors

      public void setAncestors(List<Content> ancestors)
      Sets the value of ancestors.
      Parameters:
      ancestors - ancestors
    • operations

      public List<OperationCheckResult> operations()
      Fluent getter for operations.
      Returns:
      operations
    • operations

      public Content operations(List<OperationCheckResult> operations)
      Fluent setter for operations.
      Parameters:
      operations - operations
      Returns:
      this
    • getOperations

      public List<OperationCheckResult> getOperations()
      Gets the value of operations.
      Returns:
      operations
    • setOperations

      public void setOperations(List<OperationCheckResult> operations)
      Sets the value of operations.
      Parameters:
      operations - operations
    • children

      public Map<String,Object> children()
      Fluent getter for children.
      Returns:
      children
    • children

      public Content children(Map<String,Object> children)
      Fluent setter for children.
      Parameters:
      children - children
      Returns:
      this
    • getChildren

      public Map<String,Object> getChildren()
      Gets the value of children.
      Returns:
      children
    • setChildren

      public void setChildren(Map<String,Object> children)
      Sets the value of children.
      Parameters:
      children - children
    • childTypes

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

      Shows whether a piece of content has attachments, comments, or child pages/whiteboards. Note, this doesn't actually contain the child objects.

      Returns:
      childTypes
    • childTypes

      public Content childTypes(Map<String,Object> childTypes)
      Fluent setter for childTypes.

      Shows whether a piece of content has attachments, comments, or child pages/whiteboards. Note, this doesn't actually contain the child objects.

      Parameters:
      childTypes - childTypes
      Returns:
      this
    • getChildTypes

      public Map<String,Object> getChildTypes()
      Gets the value of childTypes.

      Shows whether a piece of content has attachments, comments, or child pages/whiteboards. Note, this doesn't actually contain the child objects.

      Returns:
      childTypes
    • setChildTypes

      public void setChildTypes(Map<String,Object> childTypes)
      Sets the value of childTypes.

      Shows whether a piece of content has attachments, comments, or child pages/whiteboards. Note, this doesn't actually contain the child objects.

      Parameters:
      childTypes - childTypes
    • descendants

      public Map<String,Object> descendants()
      Fluent getter for descendants.
      Returns:
      descendants
    • descendants

      public Content descendants(Map<String,Object> descendants)
      Fluent setter for descendants.
      Parameters:
      descendants - descendants
      Returns:
      this
    • getDescendants

      public Map<String,Object> getDescendants()
      Gets the value of descendants.
      Returns:
      descendants
    • setDescendants

      public void setDescendants(Map<String,Object> descendants)
      Sets the value of descendants.
      Parameters:
      descendants - descendants
    • container

      public Map<String,Object> container()
      Fluent getter for 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:
      container
    • container

      public Content container(Map<String,Object> container)
      Fluent setter for 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)

      Parameters:
      container - container
      Returns:
      this
    • getContainer

      public Map<String,Object> getContainer()
      Gets the value of 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:
      container
    • setContainer

      public void setContainer(Map<String,Object> container)
      Sets the value of 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)

      Parameters:
      container - container
    • body

      public Body body()
      Fluent getter for body.
      Returns:
      body
    • body

      public Content body(Body body)
      Fluent setter for body.
      Parameters:
      body - body
      Returns:
      this
    • getBody

      public Body getBody()
      Gets the value of body.
      Returns:
      body
    • setBody

      public void setBody(Body body)
      Sets the value of body.
      Parameters:
      body - body
    • restrictions

      public Restrictions restrictions()
      Fluent getter for restrictions.
      Returns:
      restrictions
    • restrictions

      public Content restrictions(Restrictions restrictions)
      Fluent setter for restrictions.
      Parameters:
      restrictions - restrictions
      Returns:
      this
    • getRestrictions

      public Restrictions getRestrictions()
      Gets the value of restrictions.
      Returns:
      restrictions
    • setRestrictions

      public void setRestrictions(Restrictions restrictions)
      Sets the value of restrictions.
      Parameters:
      restrictions - restrictions
    • metadata

      public ContentMetadata metadata()
      Fluent getter for metadata.

      Metadata object for page, blogpost, comment content

      Returns:
      metadata
    • metadata

      public Content metadata(ContentMetadata metadata)
      Fluent setter for metadata.

      Metadata object for page, blogpost, comment content

      Parameters:
      metadata - metadata
      Returns:
      this
    • getMetadata

      public ContentMetadata getMetadata()
      Gets the value of metadata.

      Metadata object for page, blogpost, comment content

      Returns:
      metadata
    • setMetadata

      public void setMetadata(ContentMetadata metadata)
      Sets the value of metadata.

      Metadata object for page, blogpost, comment content

      Parameters:
      metadata - metadata
    • macroRenderedOutput

      public Map<String,Object> macroRenderedOutput()
      Fluent getter for macroRenderedOutput.
      Returns:
      macroRenderedOutput
    • macroRenderedOutput

      public Content macroRenderedOutput(Map<String,Object> macroRenderedOutput)
      Fluent setter for macroRenderedOutput.
      Parameters:
      macroRenderedOutput - macroRenderedOutput
      Returns:
      this
    • getMacroRenderedOutput

      public Map<String,Object> getMacroRenderedOutput()
      Gets the value of macroRenderedOutput.
      Returns:
      macroRenderedOutput
    • setMacroRenderedOutput

      public void setMacroRenderedOutput(Map<String,Object> macroRenderedOutput)
      Sets the value of macroRenderedOutput.
      Parameters:
      macroRenderedOutput - macroRenderedOutput
    • extensions

      public Object extensions()
      Fluent getter for extensions.
      Returns:
      extensions
    • extensions

      public Content extensions(Object extensions)
      Fluent setter for extensions.
      Parameters:
      extensions - extensions
      Returns:
      this
    • getExtensions

      public Object getExtensions()
      Gets the value of extensions.
      Returns:
      extensions
    • setExtensions

      public void setExtensions(Object extensions)
      Sets the value of extensions.
      Parameters:
      extensions - extensions
    • additionalExpandable

      public Expandable07C2Ed additionalExpandable()
      Fluent getter for additionalExpandable.
      Returns:
      additionalExpandable
    • additionalExpandable

      public Content additionalExpandable(Expandable07C2Ed additionalExpandable)
      Fluent setter for additionalExpandable.
      Parameters:
      additionalExpandable - additionalExpandable
      Returns:
      this
    • getAdditionalExpandable

      public Expandable07C2Ed getAdditionalExpandable()
      Gets the value of additionalExpandable.
      Returns:
      additionalExpandable
    • setAdditionalExpandable

      public void setAdditionalExpandable(Expandable07C2Ed additionalExpandable)
      Sets the value of additionalExpandable.
      Parameters:
      additionalExpandable - additionalExpandable
    • additionalLinks

      public Map<String,Object> additionalLinks()
      Fluent getter for additionalLinks.
      Returns:
      additionalLinks
    • additionalLinks

      public Content additionalLinks(Map<String,Object> additionalLinks)
      Fluent setter for additionalLinks.
      Parameters:
      additionalLinks - additionalLinks
      Returns:
      this
    • getAdditionalLinks

      public Map<String,Object> getAdditionalLinks()
      Gets the value of additionalLinks.
      Returns:
      additionalLinks
    • setAdditionalLinks

      public void setAdditionalLinks(Map<String,Object> additionalLinks)
      Sets the value of additionalLinks.
      Parameters:
      additionalLinks - additionalLinks
    • ari

      public String ari()
      Fluent getter for ari.
      Returns:
      ari
    • ari

      public Content ari(String ari)
      Fluent setter for ari.
      Parameters:
      ari - ari
      Returns:
      this
    • getAri

      public String getAri()
      Gets the value of ari.
      Returns:
      ari
    • setAri

      public void setAri(String ari)
      Sets the value of ari.
      Parameters:
      ari - ari
    • base64EncodedAri

      public String base64EncodedAri()
      Fluent getter for base64EncodedAri.
      Returns:
      base64EncodedAri
    • base64EncodedAri

      public Content base64EncodedAri(String base64EncodedAri)
      Fluent setter for base64EncodedAri.
      Parameters:
      base64EncodedAri - base64EncodedAri
      Returns:
      this
    • getBase64EncodedAri

      public String getBase64EncodedAri()
      Gets the value of base64EncodedAri.
      Returns:
      base64EncodedAri
    • setBase64EncodedAri

      public void setBase64EncodedAri(String base64EncodedAri)
      Sets the value of base64EncodedAri.
      Parameters:
      base64EncodedAri - base64EncodedAri
    • 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