Class ContentTemplateBody

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

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

The body of the new content. Does not apply to attachments. Only one body format should be specified as the property for this object, e.g. `storage`. Note, `editor2` format is used by Atlassian only. `anonymous_export_view` is the same as `export_view` format but only content viewable by an anonymous user is included.

  • Field Details

  • Constructor Details

    • ContentTemplateBody

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

      @Internal protected ContentTemplateBody()
      Protected no-args constructor for use by serialization frameworks.
    • ContentTemplateBody

      @Internal public ContentTemplateBody(ContentBody view, ContentBody exportView, ContentBody styledView, ContentBody storage, ContentBody editor, ContentBody editor2, ContentBody wiki, ContentBody atlasDocFormat, ContentBody anonymousExportView)
      Constructs a validated instance of ContentTemplateBody.

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

      Parameters:
      view - view
      exportView - exportView
      styledView - styledView
      storage - storage
      editor - editor
      editor2 - editor2
      wiki - wiki
      atlasDocFormat - atlasDocFormat
      anonymousExportView - anonymousExportView
  • Method Details

    • view

      public ContentBody view()
      Fluent getter for view.
      Returns:
      view
    • view

      public ContentTemplateBody view(ContentBody view)
      Fluent setter for view.
      Parameters:
      view - view
      Returns:
      this
    • getView

      public ContentBody getView()
      Gets the value of view.
      Returns:
      view
    • setView

      public void setView(ContentBody view)
      Sets the value of view.
      Parameters:
      view - view
    • exportView

      public ContentBody exportView()
      Fluent getter for exportView.
      Returns:
      exportView
    • exportView

      public ContentTemplateBody exportView(ContentBody exportView)
      Fluent setter for exportView.
      Parameters:
      exportView - exportView
      Returns:
      this
    • getExportView

      public ContentBody getExportView()
      Gets the value of exportView.
      Returns:
      exportView
    • setExportView

      public void setExportView(ContentBody exportView)
      Sets the value of exportView.
      Parameters:
      exportView - exportView
    • styledView

      public ContentBody styledView()
      Fluent getter for styledView.
      Returns:
      styledView
    • styledView

      public ContentTemplateBody styledView(ContentBody styledView)
      Fluent setter for styledView.
      Parameters:
      styledView - styledView
      Returns:
      this
    • getStyledView

      public ContentBody getStyledView()
      Gets the value of styledView.
      Returns:
      styledView
    • setStyledView

      public void setStyledView(ContentBody styledView)
      Sets the value of styledView.
      Parameters:
      styledView - styledView
    • storage

      public ContentBody storage()
      Fluent getter for storage.
      Returns:
      storage
    • storage

      public ContentTemplateBody storage(ContentBody storage)
      Fluent setter for storage.
      Parameters:
      storage - storage
      Returns:
      this
    • getStorage

      public ContentBody getStorage()
      Gets the value of storage.
      Returns:
      storage
    • setStorage

      public void setStorage(ContentBody storage)
      Sets the value of storage.
      Parameters:
      storage - storage
    • editor

      public ContentBody editor()
      Fluent getter for editor.
      Returns:
      editor
    • editor

      public ContentTemplateBody editor(ContentBody editor)
      Fluent setter for editor.
      Parameters:
      editor - editor
      Returns:
      this
    • getEditor

      public ContentBody getEditor()
      Gets the value of editor.
      Returns:
      editor
    • setEditor

      public void setEditor(ContentBody editor)
      Sets the value of editor.
      Parameters:
      editor - editor
    • editor2

      public ContentBody editor2()
      Fluent getter for editor2.
      Returns:
      editor2
    • editor2

      public ContentTemplateBody editor2(ContentBody editor2)
      Fluent setter for editor2.
      Parameters:
      editor2 - editor2
      Returns:
      this
    • getEditor2

      public ContentBody getEditor2()
      Gets the value of editor2.
      Returns:
      editor2
    • setEditor2

      public void setEditor2(ContentBody editor2)
      Sets the value of editor2.
      Parameters:
      editor2 - editor2
    • wiki

      public ContentBody wiki()
      Fluent getter for wiki.
      Returns:
      wiki
    • wiki

      public ContentTemplateBody wiki(ContentBody wiki)
      Fluent setter for wiki.
      Parameters:
      wiki - wiki
      Returns:
      this
    • getWiki

      public ContentBody getWiki()
      Gets the value of wiki.
      Returns:
      wiki
    • setWiki

      public void setWiki(ContentBody wiki)
      Sets the value of wiki.
      Parameters:
      wiki - wiki
    • atlasDocFormat

      public ContentBody atlasDocFormat()
      Fluent getter for atlasDocFormat.
      Returns:
      atlasDocFormat
    • atlasDocFormat

      public ContentTemplateBody atlasDocFormat(ContentBody atlasDocFormat)
      Fluent setter for atlasDocFormat.
      Parameters:
      atlasDocFormat - atlasDocFormat
      Returns:
      this
    • getAtlasDocFormat

      public ContentBody getAtlasDocFormat()
      Gets the value of atlasDocFormat.
      Returns:
      atlasDocFormat
    • setAtlasDocFormat

      public void setAtlasDocFormat(ContentBody atlasDocFormat)
      Sets the value of atlasDocFormat.
      Parameters:
      atlasDocFormat - atlasDocFormat
    • anonymousExportView

      public ContentBody anonymousExportView()
      Fluent getter for anonymousExportView.
      Returns:
      anonymousExportView
    • anonymousExportView

      public ContentTemplateBody anonymousExportView(ContentBody anonymousExportView)
      Fluent setter for anonymousExportView.
      Parameters:
      anonymousExportView - anonymousExportView
      Returns:
      this
    • getAnonymousExportView

      public ContentBody getAnonymousExportView()
      Gets the value of anonymousExportView.
      Returns:
      anonymousExportView
    • setAnonymousExportView

      public void setAnonymousExportView(ContentBody anonymousExportView)
      Sets the value of anonymousExportView.
      Parameters:
      anonymousExportView - anonymousExportView
    • 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