Class YearInMusicForUserPayloadDataTopGenresInner

java.lang.Object
org.hihn.listenbrainz.YearInMusicForUserPayloadDataTopGenresInner

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

  • Constructor Details

    • YearInMusicForUserPayloadDataTopGenresInner

      public YearInMusicForUserPayloadDataTopGenresInner()
  • Method Details

    • genre

    • getGenre

      @Nullable public String getGenre()
      Get genre
      Returns:
      genre
    • setGenre

      public void setGenre(String genre)
    • genreCount

      public YearInMusicForUserPayloadDataTopGenresInner genreCount(Integer genreCount)
    • getGenreCount

      @Nullable public Integer getGenreCount()
      Get genreCount
      Returns:
      genreCount
    • setGenreCount

      public void setGenreCount(Integer genreCount)
    • genreCountPercent

      public YearInMusicForUserPayloadDataTopGenresInner genreCountPercent(Integer genreCountPercent)
    • getGenreCountPercent

      @Nullable public Integer getGenreCountPercent()
      Get genreCountPercent
      Returns:
      genreCountPercent
    • setGenreCountPercent

      public void setGenreCountPercent(Integer genreCountPercent)
    • 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 YearInMusicForUserPayloadDataTopGenresInner
    • fromJson

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

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