Package org.hihn.listenbrainz
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
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblurbContent
(String blurbContent) boolean
static Metadata
Create an instance of Metadata given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Get blurbContentGet createdGet insertedAtGet listenedAtGet listenedAtIsoGet messageGet playingNowGet relationshipTypeGet trackMetadataGet userNameint
hashCode()
insertedAt
(Integer insertedAt) listenedAt
(Integer listenedAt) listenedAtIso
(String listenedAtIso) playingNow
(Boolean playingNow) putAdditionalProperty
(String key, Object value) Set the additional (undeclared) property with the specified name and value.relationshipType
(String relationshipType) void
setBlurbContent
(String blurbContent) void
setCreated
(Integer created) void
setInsertedAt
(Integer insertedAt) void
setListenedAt
(Integer listenedAt) void
setListenedAtIso
(String listenedAtIso) void
setMessage
(String message) void
setPlayingNow
(Boolean playingNow) void
setRelationshipType
(String relationshipType) void
setTrackMetadata
(TrackMetadata trackMetadata) void
setUserName
(String userName) toJson()
Convert an instance of Metadata to an JSON stringtoString()
trackMetadata
(TrackMetadata trackMetadata) static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CREATED
- See Also:
-
SERIALIZED_NAME_RELATIONSHIP_TYPE
- See Also:
-
SERIALIZED_NAME_MESSAGE
- See Also:
-
SERIALIZED_NAME_BLURB_CONTENT
- See Also:
-
SERIALIZED_NAME_INSERTED_AT
- See Also:
-
SERIALIZED_NAME_LISTENED_AT
- See Also:
-
SERIALIZED_NAME_LISTENED_AT_ISO
- See Also:
-
SERIALIZED_NAME_PLAYING_NOW
- See Also:
-
SERIALIZED_NAME_TRACK_METADATA
- See Also:
-
SERIALIZED_NAME_USER_NAME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Metadata
public Metadata()
-
-
Method Details
-
created
-
getCreated
Get created- Returns:
- created
-
setCreated
-
relationshipType
-
getRelationshipType
Get relationshipType- Returns:
- relationshipType
-
setRelationshipType
-
message
-
getMessage
Get message- Returns:
- message
-
setMessage
-
blurbContent
-
getBlurbContent
Get blurbContent- Returns:
- blurbContent
-
setBlurbContent
-
insertedAt
-
getInsertedAt
Get insertedAt- Returns:
- insertedAt
-
setInsertedAt
-
listenedAt
-
getListenedAt
Get listenedAt- Returns:
- listenedAt
-
setListenedAt
-
listenedAtIso
-
getListenedAtIso
Get listenedAtIso- Returns:
- listenedAtIso
-
setListenedAtIso
-
playingNow
-
getPlayingNow
Get playingNow- Returns:
- playingNow
-
setPlayingNow
-
trackMetadata
-
getTrackMetadata
Get trackMetadata- Returns:
- trackMetadata
-
setTrackMetadata
-
userName
-
getUserName
Get userName- Returns:
- userName
-
setUserName
-
putAdditionalProperty
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 propertyvalue
- value of the property- Returns:
- the Metadata instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key
- name of the property- Returns:
- an object
-
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 Metadata
-
fromJson
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
Convert an instance of Metadata to an JSON string- Returns:
- JSON string
-