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) booleanstatic MetadataCreate 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 userNameinthashCode()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) voidsetBlurbContent(String blurbContent) voidsetCreated(Integer created) voidsetInsertedAt(Integer insertedAt) voidsetListenedAt(Integer listenedAt) voidsetListenedAtIso(String listenedAtIso) voidsetMessage(String message) voidsetPlayingNow(Boolean playingNow) voidsetRelationshipType(String relationshipType) voidsetTrackMetadata(TrackMetadata trackMetadata) voidsetUserName(String userName) toJson()Convert an instance of Metadata to an JSON stringtoString()trackMetadata(TrackMetadata trackMetadata) static voidvalidateJsonElement(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
-