Class ContentCreate

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

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

    • id

      protected String id
      The ID of the draft content. Required when publishing a draft.
    • title

      protected String title
    • type

      protected String type
      The type of the new content. Custom content types defined by apps are also supported. eg. 'page', 'blogpost', 'comment' etc.
    • space

      protected Spacecc1E40 space
      The space that the content is being created in.
    • status

      protected String status
      The status of the new content.
    • container

      protected Map<String,Object> container
      The container of the content. Required if type is `comment` or certain types of custom content. If you are trying to create a comment that is a child of another comment, specify the parent comment in the ancestors field, not in this field.
    • ancestors

      protected List<Map<String,Object>> ancestors
      The parent content of the new content. If you are creating a top-level `page` or `comment`, this can be left blank. If you are creating a child page, this is where the parent page id goes. If you are creating a child comment, this is where the parent comment id goes. Only one parent content id can be specified.
    • body

      protected Body5304Ad body
      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.
  • Constructor Details

    • ContentCreate

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

      @Internal public ContentCreate(String id, String title, String type, Spacecc1E40 space, String status, Map<String,Object> container, List<Map<String,Object>> ancestors, Body5304Ad body)
      Constructs a validated instance of ContentCreate.

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

      Parameters:
      id - The ID of the draft content. Required when publishing a draft.
      title - title
      type - The type of the new content. Custom content types defined by apps are also supported. eg. 'page', 'blogpost', 'comment' etc.
      space - The space that the content is being created in.
      status - The status of the new content.
      container - The container of the content. Required if type is `comment` or certain types of custom content. If you are trying to create a comment that is a child of another comment, specify the parent comment in the ancestors field, not in this field.
      ancestors - The parent content of the new content. If you are creating a top-level `page` or `comment`, this can be left blank. If you are creating a child page, this is where the parent page id goes. If you are creating a child comment, this is where the parent comment id goes. Only one parent content id can be specified.
      body - 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.
    • ContentCreate

      protected ContentCreate()
  • Method Details

    • id

      public String id()
      The ID of the draft content. Required when publishing a draft.
    • title

      public String title()
    • type

      public String type()
      The type of the new content. Custom content types defined by apps are also supported. eg. 'page', 'blogpost', 'comment' etc.
    • space

      public Spacecc1E40 space()
      The space that the content is being created in.
    • status

      public String status()
      The status of the new content.
    • container

      public Map<String,Object> container()
      The container of the content. Required if type is `comment` or certain types of custom content. If you are trying to create a comment that is a child of another comment, specify the parent comment in the ancestors field, not in this field.
    • ancestors

      public List<Map<String,Object>> ancestors()
      The parent content of the new content. If you are creating a top-level `page` or `comment`, this can be left blank. If you are creating a child page, this is where the parent page id goes. If you are creating a child comment, this is where the parent comment id goes. Only one parent content id can be specified.
    • body

      public Body5304Ad body()
      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.
    • id

      public ContentCreate id(String id)
      The ID of the draft content. Required when publishing a draft.
      Returns:
      this.
    • title

      public ContentCreate title(String title)
      Returns:
      this.
    • type

      public ContentCreate type(String type)
      The type of the new content. Custom content types defined by apps are also supported. eg. 'page', 'blogpost', 'comment' etc.
      Returns:
      this.
    • space

      public ContentCreate space(Spacecc1E40 space)
      The space that the content is being created in.
      Returns:
      this.
    • status

      public ContentCreate status(String status)
      The status of the new content.
      Returns:
      this.
    • container

      public ContentCreate container(Map<String,Object> container)
      The container of the content. Required if type is `comment` or certain types of custom content. If you are trying to create a comment that is a child of another comment, specify the parent comment in the ancestors field, not in this field.
      Returns:
      this.
    • ancestors

      public ContentCreate ancestors(List<Map<String,Object>> ancestors)
      The parent content of the new content. If you are creating a top-level `page` or `comment`, this can be left blank. If you are creating a child page, this is where the parent page id goes. If you are creating a child comment, this is where the parent comment id goes. Only one parent content id can be specified.
      Returns:
      this.
    • body

      public ContentCreate body(Body5304Ad body)
      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.
      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