Package org.hihn.listenbrainz
Class PinRequest
java.lang.Object
org.hihn.listenbrainz.PinRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.7.0")
public class PinRequest
extends Object
PinRequest
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblurbContent
(String blurbContent) boolean
static PinRequest
Create an instance of PinRequest given an JSON stringGet blurbContentGet pinnedUntilGet recordingMbidGet recordingMsidint
hashCode()
pinnedUntil
(Long pinnedUntil) recordingMbid
(UUID recordingMbid) recordingMsid
(UUID recordingMsid) void
setBlurbContent
(String blurbContent) void
setPinnedUntil
(Long pinnedUntil) void
setRecordingMbid
(UUID recordingMbid) void
setRecordingMsid
(UUID recordingMsid) toJson()
Convert an instance of PinRequest 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_RECORDING_MSID
- See Also:
-
SERIALIZED_NAME_RECORDING_MBID
- See Also:
-
SERIALIZED_NAME_BLURB_CONTENT
- See Also:
-
SERIALIZED_NAME_PINNED_UNTIL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PinRequest
public PinRequest()
-
-
Method Details
-
recordingMsid
-
getRecordingMsid
Get recordingMsid- Returns:
- recordingMsid
-
setRecordingMsid
-
recordingMbid
-
getRecordingMbid
Get recordingMbid- Returns:
- recordingMbid
-
setRecordingMbid
-
blurbContent
-
getBlurbContent
Get blurbContent- Returns:
- blurbContent
-
setBlurbContent
-
pinnedUntil
-
getPinnedUntil
Get pinnedUntil- Returns:
- pinnedUntil
-
setPinnedUntil
-
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 PinRequest
-
fromJson
Create an instance of PinRequest given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of PinRequest
- Throws:
IOException
- if the JSON string is invalid with respect to PinRequest
-
toJson
Convert an instance of PinRequest to an JSON string- Returns:
- JSON string
-