Package org.hihn.listenbrainz
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Create an instance of YearInMusicForUserPayloadDataTopGenresInner given an JSON stringgenreCount
(Integer genreCount) genreCountPercent
(Integer genreCountPercent) getGenre()
Get genreGet genreCountGet genreCountPercentint
hashCode()
void
void
setGenreCount
(Integer genreCount) void
setGenreCountPercent
(Integer genreCountPercent) toJson()
Convert an instance of YearInMusicForUserPayloadDataTopGenresInner to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_GENRE
- See Also:
-
SERIALIZED_NAME_GENRE_COUNT
- See Also:
-
SERIALIZED_NAME_GENRE_COUNT_PERCENT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
YearInMusicForUserPayloadDataTopGenresInner
public YearInMusicForUserPayloadDataTopGenresInner()
-
-
Method Details
-
genre
-
getGenre
Get genre- Returns:
- genre
-
setGenre
-
genreCount
-
getGenreCount
Get genreCount- Returns:
- genreCount
-
setGenreCount
-
genreCountPercent
-
getGenreCountPercent
Get genreCountPercent- Returns:
- genreCountPercent
-
setGenreCountPercent
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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
Convert an instance of YearInMusicForUserPayloadDataTopGenresInner to an JSON string- Returns:
- JSON string
-