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 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.
    • ContentBlueprintDraft

      protected ContentBlueprintDraft()
  • Method Details

    • version

      public Map<String,Object> version()
      The version for the new content.
    • title

      public 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

      public String type()
      The type of content. Set this to `page`.
    • status

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

      public Map<String,Object> space()
      The space for the content.
    • ancestors

      public 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.
    • version

      public ContentBlueprintDraft version(Map<String,Object> version)
      The version for the new content.
      Returns:
      this.
    • title

      public ContentBlueprintDraft title(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.
      Returns:
      this.
    • type

      public ContentBlueprintDraft type(String type)
      The type of content. Set this to `page`.
      Returns:
      this.
    • status

      public ContentBlueprintDraft status(String status)
      The status of the content. Set this to `current` or omit it altogether.
      Returns:
      this.
    • space

      public ContentBlueprintDraft space(Map<String,Object> space)
      The space for the content.
      Returns:
      this.
    • ancestors

      public ContentBlueprintDraft ancestors(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.
      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