Class ContentTemplateBodyCreate

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

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

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

    • view

      protected Map<String,Object> view
      This object is used when creating or updating content.
    • exportView

      protected Map<String,Object> exportView
      This object is used when creating or updating content.
    • styledView

      protected Map<String,Object> styledView
      This object is used when creating or updating content.
    • storage

      protected Map<String,Object> storage
      This object is used when creating or updating content.
    • editor

      protected Map<String,Object> editor
      This object is used when creating or updating content.
    • editor2

      protected Map<String,Object> editor2
      This object is used when creating or updating content.
    • wiki

      protected Map<String,Object> wiki
      This object is used when creating or updating content.
    • atlasDocFormat

      protected Map<String,Object> atlasDocFormat
      This object is used when creating or updating content.
    • anonymousExportView

      protected Map<String,Object> anonymousExportView
      This object is used when creating or updating content.
  • Constructor Details

    • ContentTemplateBodyCreate

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

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

      @Internal public ContentTemplateBodyCreate(Map<String,Object> view, Map<String,Object> exportView, Map<String,Object> styledView, Map<String,Object> storage, Map<String,Object> editor, Map<String,Object> editor2, Map<String,Object> wiki, Map<String,Object> atlasDocFormat, Map<String,Object> anonymousExportView)
      Constructs a validated instance of ContentTemplateBodyCreate.

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

      Parameters:
      view - This object is used when creating or updating content.
      exportView - This object is used when creating or updating content.
      styledView - This object is used when creating or updating content.
      storage - This object is used when creating or updating content.
      editor - This object is used when creating or updating content.
      editor2 - This object is used when creating or updating content.
      wiki - This object is used when creating or updating content.
      atlasDocFormat - This object is used when creating or updating content.
      anonymousExportView - This object is used when creating or updating content.
  • Method Details

    • view

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

      This object is used when creating or updating content.

      Returns:
      view
    • view

      Fluent setter for view.

      This object is used when creating or updating content.

      Parameters:
      view - view
      Returns:
      this
    • getView

      public Map<String,Object> getView()
      Gets the value of view.

      This object is used when creating or updating content.

      Returns:
      view
    • setView

      public void setView(Map<String,Object> view)
      Sets the value of view.

      This object is used when creating or updating content.

      Parameters:
      view - view
    • exportView

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

      This object is used when creating or updating content.

      Returns:
      exportView
    • exportView

      public ContentTemplateBodyCreate exportView(Map<String,Object> exportView)
      Fluent setter for exportView.

      This object is used when creating or updating content.

      Parameters:
      exportView - exportView
      Returns:
      this
    • getExportView

      public Map<String,Object> getExportView()
      Gets the value of exportView.

      This object is used when creating or updating content.

      Returns:
      exportView
    • setExportView

      public void setExportView(Map<String,Object> exportView)
      Sets the value of exportView.

      This object is used when creating or updating content.

      Parameters:
      exportView - exportView
    • styledView

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

      This object is used when creating or updating content.

      Returns:
      styledView
    • styledView

      public ContentTemplateBodyCreate styledView(Map<String,Object> styledView)
      Fluent setter for styledView.

      This object is used when creating or updating content.

      Parameters:
      styledView - styledView
      Returns:
      this
    • getStyledView

      public Map<String,Object> getStyledView()
      Gets the value of styledView.

      This object is used when creating or updating content.

      Returns:
      styledView
    • setStyledView

      public void setStyledView(Map<String,Object> styledView)
      Sets the value of styledView.

      This object is used when creating or updating content.

      Parameters:
      styledView - styledView
    • storage

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

      This object is used when creating or updating content.

      Returns:
      storage
    • storage

      public ContentTemplateBodyCreate storage(Map<String,Object> storage)
      Fluent setter for storage.

      This object is used when creating or updating content.

      Parameters:
      storage - storage
      Returns:
      this
    • getStorage

      public Map<String,Object> getStorage()
      Gets the value of storage.

      This object is used when creating or updating content.

      Returns:
      storage
    • setStorage

      public void setStorage(Map<String,Object> storage)
      Sets the value of storage.

      This object is used when creating or updating content.

      Parameters:
      storage - storage
    • editor

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

      This object is used when creating or updating content.

      Returns:
      editor
    • editor

      public ContentTemplateBodyCreate editor(Map<String,Object> editor)
      Fluent setter for editor.

      This object is used when creating or updating content.

      Parameters:
      editor - editor
      Returns:
      this
    • getEditor

      public Map<String,Object> getEditor()
      Gets the value of editor.

      This object is used when creating or updating content.

      Returns:
      editor
    • setEditor

      public void setEditor(Map<String,Object> editor)
      Sets the value of editor.

      This object is used when creating or updating content.

      Parameters:
      editor - editor
    • editor2

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

      This object is used when creating or updating content.

      Returns:
      editor2
    • editor2

      public ContentTemplateBodyCreate editor2(Map<String,Object> editor2)
      Fluent setter for editor2.

      This object is used when creating or updating content.

      Parameters:
      editor2 - editor2
      Returns:
      this
    • getEditor2

      public Map<String,Object> getEditor2()
      Gets the value of editor2.

      This object is used when creating or updating content.

      Returns:
      editor2
    • setEditor2

      public void setEditor2(Map<String,Object> editor2)
      Sets the value of editor2.

      This object is used when creating or updating content.

      Parameters:
      editor2 - editor2
    • wiki

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

      This object is used when creating or updating content.

      Returns:
      wiki
    • wiki

      Fluent setter for wiki.

      This object is used when creating or updating content.

      Parameters:
      wiki - wiki
      Returns:
      this
    • getWiki

      public Map<String,Object> getWiki()
      Gets the value of wiki.

      This object is used when creating or updating content.

      Returns:
      wiki
    • setWiki

      public void setWiki(Map<String,Object> wiki)
      Sets the value of wiki.

      This object is used when creating or updating content.

      Parameters:
      wiki - wiki
    • atlasDocFormat

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

      This object is used when creating or updating content.

      Returns:
      atlasDocFormat
    • atlasDocFormat

      public ContentTemplateBodyCreate atlasDocFormat(Map<String,Object> atlasDocFormat)
      Fluent setter for atlasDocFormat.

      This object is used when creating or updating content.

      Parameters:
      atlasDocFormat - atlasDocFormat
      Returns:
      this
    • getAtlasDocFormat

      public Map<String,Object> getAtlasDocFormat()
      Gets the value of atlasDocFormat.

      This object is used when creating or updating content.

      Returns:
      atlasDocFormat
    • setAtlasDocFormat

      public void setAtlasDocFormat(Map<String,Object> atlasDocFormat)
      Sets the value of atlasDocFormat.

      This object is used when creating or updating content.

      Parameters:
      atlasDocFormat - atlasDocFormat
    • anonymousExportView

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

      This object is used when creating or updating content.

      Returns:
      anonymousExportView
    • anonymousExportView

      public ContentTemplateBodyCreate anonymousExportView(Map<String,Object> anonymousExportView)
      Fluent setter for anonymousExportView.

      This object is used when creating or updating content.

      Parameters:
      anonymousExportView - anonymousExportView
      Returns:
      this
    • getAnonymousExportView

      public Map<String,Object> getAnonymousExportView()
      Gets the value of anonymousExportView.

      This object is used when creating or updating content.

      Returns:
      anonymousExportView
    • setAnonymousExportView

      public void setAnonymousExportView(Map<String,Object> anonymousExportView)
      Sets the value of anonymousExportView.

      This object is used when creating or updating content.

      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