Class Metadata

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

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

    • mediaType

      protected String mediaType
      The media type of the attachment, e.g. 'img/jpg'.
    • comment

      protected String comment
      The comment for this update.
  • Constructor Details

    • Metadata

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

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

      @Internal public Metadata(String mediaType, String comment)
      Constructs a validated instance of Metadata.

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

      Parameters:
      mediaType - The media type of the attachment, e.g. 'img/jpg'.
      comment - The comment for this update.
  • Method Details

    • mediaType

      public String mediaType()
      Fluent getter for mediaType.

      The media type of the attachment, e.g. 'img/jpg'.

      Returns:
      mediaType
    • mediaType

      public Metadata mediaType(String mediaType)
      Fluent setter for mediaType.

      The media type of the attachment, e.g. 'img/jpg'.

      Parameters:
      mediaType - mediaType
      Returns:
      this
    • getMediaType

      public String getMediaType()
      Gets the value of mediaType.

      The media type of the attachment, e.g. 'img/jpg'.

      Returns:
      mediaType
    • setMediaType

      public void setMediaType(String mediaType)
      Sets the value of mediaType.

      The media type of the attachment, e.g. 'img/jpg'.

      Parameters:
      mediaType - mediaType
    • comment

      public String comment()
      Fluent getter for comment.

      The comment for this update.

      Returns:
      comment
    • comment

      public Metadata comment(String comment)
      Fluent setter for comment.

      The comment for this update.

      Parameters:
      comment - comment
      Returns:
      this
    • getComment

      public String getComment()
      Gets the value of comment.

      The comment for this update.

      Returns:
      comment
    • setComment

      public void setComment(String comment)
      Sets the value of comment.

      The comment for this update.

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