Class ContentBlueprintDraft

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

@Generated("io.github.primelib.primecodegen") public class ContentBlueprintDraft extends Object
ContentBlueprintDraft
  • Field Details

    • version

      protected Map<String,Object> version
      The version for the new content.
    • title

      protected String title
      The title of the content. If you don't want to change the title, set this to the current title of the draft.
    • type

      protected String type
      The type of content. Set this to `page`.
    • status

      protected String status
      The status of the content. Set this to `current` or omit it altogether.
    • space

      protected Map<String,Object> space
      The space for the content.
    • ancestors

      protected List<AncestorsItem> ancestors
      The new ancestor (i.e. parent page) for the content. If you have specified an ancestor, you must also specify a `space` property in the request body for the space that the ancestor is in. Note, if you specify more than one ancestor, the last ID in the array will be selected as the parent page for the content.
  • Constructor Details

    • ContentBlueprintDraft

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

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

      @Internal public ContentBlueprintDraft(Map<String,Object> version, String title, String type, String status, Map<String,Object> space, List<AncestorsItem> ancestors)
      Constructs a validated instance of ContentBlueprintDraft.

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

      Parameters:
      version - The version for the new content.
      title - The title of the content. If you don't want to change the title, set this to the current title of the draft.
      type - The type of content. Set this to `page`.
      status - The status of the content. Set this to `current` or omit it altogether.
      space - The space for the content.
      ancestors - The new ancestor (i.e. parent page) for the content. If you have specified an ancestor, you must also specify a `space` property in the request body for the space that the ancestor is in. Note, if you specify more than one ancestor, the last ID in the array will be selected as the parent page for the content.
  • Method Details

    • version

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

      The version for the new content.

      Returns:
      version
    • version

      public ContentBlueprintDraft version(Map<String,Object> version)
      Fluent setter for version.

      The version for the new content.

      Parameters:
      version - version
      Returns:
      this
    • getVersion

      public Map<String,Object> getVersion()
      Gets the value of version.

      The version for the new content.

      Returns:
      version
    • setVersion

      public void setVersion(Map<String,Object> version)
      Sets the value of version.

      The version for the new content.

      Parameters:
      version - version
    • title

      public String title()
      Fluent getter for title.

      The title of the content. If you don't want to change the title, set this to the current title of the draft.

      Returns:
      title
    • title

      public ContentBlueprintDraft title(String title)
      Fluent setter for title.

      The title of the content. If you don't want to change the title, set this to the current title of the draft.

      Parameters:
      title - title
      Returns:
      this
    • getTitle

      public String getTitle()
      Gets the value of title.

      The title of the content. If you don't want to change the title, set this to the current title of the draft.

      Returns:
      title
    • setTitle

      public void setTitle(String title)
      Sets the value of title.

      The title of the content. If you don't want to change the title, set this to the current title of the draft.

      Parameters:
      title - title
    • type

      public String type()
      Fluent getter for type.

      The type of content. Set this to `page`.

      Returns:
      type
    • type

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

      The type of content. Set this to `page`.

      Parameters:
      type - type
      Returns:
      this
    • getType

      public String getType()
      Gets the value of type.

      The type of content. Set this to `page`.

      Returns:
      type
    • setType

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

      The type of content. Set this to `page`.

      Parameters:
      type - type
    • status

      public String status()
      Fluent getter for status.

      The status of the content. Set this to `current` or omit it altogether.

      Returns:
      status
    • status

      public ContentBlueprintDraft status(String status)
      Fluent setter for status.

      The status of the content. Set this to `current` or omit it altogether.

      Parameters:
      status - status
      Returns:
      this
    • getStatus

      public String getStatus()
      Gets the value of status.

      The status of the content. Set this to `current` or omit it altogether.

      Returns:
      status
    • setStatus

      public void setStatus(String status)
      Sets the value of status.

      The status of the content. Set this to `current` or omit it altogether.

      Parameters:
      status - status
    • space

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

      The space for the content.

      Returns:
      space
    • space

      public ContentBlueprintDraft space(Map<String,Object> space)
      Fluent setter for space.

      The space for the content.

      Parameters:
      space - space
      Returns:
      this
    • getSpace

      public Map<String,Object> getSpace()
      Gets the value of space.

      The space for the content.

      Returns:
      space
    • setSpace

      public void setSpace(Map<String,Object> space)
      Sets the value of space.

      The space for the content.

      Parameters:
      space - space
    • ancestors

      public List<AncestorsItem> ancestors()
      Fluent getter for ancestors.

      The new ancestor (i.e. parent page) for the content. If you have specified an ancestor, you must also specify a `space` property in the request body for the space that the ancestor is in. Note, if you specify more than one ancestor, the last ID in the array will be selected as the parent page for the content.

      Returns:
      ancestors
    • ancestors

      public ContentBlueprintDraft ancestors(List<AncestorsItem> ancestors)
      Fluent setter for ancestors.

      The new ancestor (i.e. parent page) for the content. If you have specified an ancestor, you must also specify a `space` property in the request body for the space that the ancestor is in. Note, if you specify more than one ancestor, the last ID in the array will be selected as the parent page for the content.

      Parameters:
      ancestors - ancestors
      Returns:
      this
    • getAncestors

      public List<AncestorsItem> getAncestors()
      Gets the value of ancestors.

      The new ancestor (i.e. parent page) for the content. If you have specified an ancestor, you must also specify a `space` property in the request body for the space that the ancestor is in. Note, if you specify more than one ancestor, the last ID in the array will be selected as the parent page for the content.

      Returns:
      ancestors
    • setAncestors

      public void setAncestors(List<AncestorsItem> ancestors)
      Sets the value of ancestors.

      The new ancestor (i.e. parent page) for the content. If you have specified an ancestor, you must also specify a `space` property in the request body for the space that the ancestor is in. Note, if you specify more than one ancestor, the last ID in the array will be selected as the parent page for the content.

      Parameters:
      ancestors - ancestors
    • 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