Class ContentTemplateCreate

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

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

This object is used to create content templates.

  • Field Details

    • name

      protected String name
      The name of the new template.
    • templateType

      protected String templateType
      The type of the new template. Set to `page`.
    • body

      protected ContentTemplateBodyCreate 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.
    • description

      protected String description
      A description of the new template.
    • labels

      protected List<Label> labels
      Labels for the new template.
    • space

      protected Map<String,Object> space
      The key for the space of the new template. Only applies to space templates. If the spaceKey is not specified, the template will be created as a global template.
  • Constructor Details

    • ContentTemplateCreate

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

      @Internal public ContentTemplateCreate(String name, String templateType, ContentTemplateBodyCreate body, String description, List<Label> labels, Map<String,Object> space)
      Constructs a validated instance of ContentTemplateCreate.

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

      Parameters:
      name - The name of the new template.
      templateType - The type of the new template. Set to `page`.
      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.
      description - A description of the new template.
      labels - Labels for the new template.
      space - The key for the space of the new template. Only applies to space templates. If the spaceKey is not specified, the template will be created as a global template.
    • ContentTemplateCreate

      protected ContentTemplateCreate()
  • Method Details

    • name

      public String name()
      The name of the new template.
    • templateType

      public String templateType()
      The type of the new template. Set to `page`.
    • 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.
    • description

      public String description()
      A description of the new template.
    • labels

      public List<Label> labels()
      Labels for the new template.
    • space

      public Map<String,Object> space()
      The key for the space of the new template. Only applies to space templates. If the spaceKey is not specified, the template will be created as a global template.
    • name

      public ContentTemplateCreate name(String name)
      The name of the new template.
      Returns:
      this.
    • templateType

      public ContentTemplateCreate templateType(String templateType)
      The type of the new template. Set to `page`.
      Returns:
      this.
    • 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.
    • description

      public ContentTemplateCreate description(String description)
      A description of the new template.
      Returns:
      this.
    • labels

      public ContentTemplateCreate labels(List<Label> labels)
      Labels for the new template.
      Returns:
      this.
    • space

      public ContentTemplateCreate space(Map<String,Object> space)
      The key for the space of the new template. Only applies to space templates. If the spaceKey is not specified, the template will be created as a global template.
      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