Class Metadata

java.lang.Object
org.hihn.listenbrainz.Metadata

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class Metadata extends Object
Metadata
  • Field Details

  • Constructor Details

    • Metadata

      public Metadata()
  • Method Details

    • created

      public Metadata created(Integer created)
    • getCreated

      @Nullable public Integer getCreated()
      Get created
      Returns:
      created
    • setCreated

      public void setCreated(Integer created)
    • relationshipType

      public Metadata relationshipType(String relationshipType)
    • getRelationshipType

      @Nullable public String getRelationshipType()
      Get relationshipType
      Returns:
      relationshipType
    • setRelationshipType

      public void setRelationshipType(String relationshipType)
    • message

      public Metadata message(String message)
    • getMessage

      @Nullable public String getMessage()
      Get message
      Returns:
      message
    • setMessage

      public void setMessage(String message)
    • blurbContent

      public Metadata blurbContent(String blurbContent)
    • getBlurbContent

      @Nullable public String getBlurbContent()
      Get blurbContent
      Returns:
      blurbContent
    • setBlurbContent

      public void setBlurbContent(String blurbContent)
    • insertedAt

      public Metadata insertedAt(Integer insertedAt)
    • getInsertedAt

      @Nullable public Integer getInsertedAt()
      Get insertedAt
      Returns:
      insertedAt
    • setInsertedAt

      public void setInsertedAt(Integer insertedAt)
    • listenedAt

      public Metadata listenedAt(Integer listenedAt)
    • getListenedAt

      @Nullable public Integer getListenedAt()
      Get listenedAt
      Returns:
      listenedAt
    • setListenedAt

      public void setListenedAt(Integer listenedAt)
    • listenedAtIso

      public Metadata listenedAtIso(String listenedAtIso)
    • getListenedAtIso

      @Nullable public String getListenedAtIso()
      Get listenedAtIso
      Returns:
      listenedAtIso
    • setListenedAtIso

      public void setListenedAtIso(String listenedAtIso)
    • playingNow

      public Metadata playingNow(Boolean playingNow)
    • getPlayingNow

      @Nullable public Boolean getPlayingNow()
      Get playingNow
      Returns:
      playingNow
    • setPlayingNow

      public void setPlayingNow(Boolean playingNow)
    • trackMetadata

      public Metadata trackMetadata(TrackMetadata trackMetadata)
    • getTrackMetadata

      @Nullable public TrackMetadata getTrackMetadata()
      Get trackMetadata
      Returns:
      trackMetadata
    • setTrackMetadata

      public void setTrackMetadata(TrackMetadata trackMetadata)
    • userName

      public Metadata userName(String userName)
    • getUserName

      @Nullable public String getUserName()
      Get userName
      Returns:
      userName
    • setUserName

      public void setUserName(String userName)
    • putAdditionalProperty

      public Metadata putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - name of the property
      value - value of the property
      Returns:
      the Metadata instance itself
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      a map of objects
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - name of the property
      Returns:
      an object
    • 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
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to Metadata
    • fromJson

      public static Metadata fromJson(String jsonString) throws IOException
      Create an instance of Metadata given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of Metadata
      Throws:
      IOException - if the JSON string is invalid with respect to Metadata
    • toJson

      public String toJson()
      Convert an instance of Metadata to an JSON string
      Returns:
      JSON string