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

      protected Metadata()
  • Method Details

    • mediaType

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

      public String comment()
      The comment for this update.
    • mediaType

      public Metadata mediaType(String mediaType)
      The media type of the attachment, e.g. 'img/jpg'.
      Returns:
      this.
    • comment

      public Metadata comment(String comment)
      The comment for this update.
      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