Package org.hihn.listenbrainz
Class ServicesForUser
java.lang.Object
org.hihn.listenbrainz.ServicesForUser
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.7.0")
public class ServicesForUser
extends Object
ServicesForUser
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddServicesItem
(String servicesItem) boolean
static ServicesForUser
Create an instance of ServicesForUser given an JSON stringGet servicesGet userNameint
hashCode()
void
setServices
(List<String> services) void
setUserName
(String userName) toJson()
Convert an instance of ServicesForUser 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_SERVICES
- See Also:
-
SERIALIZED_NAME_USER_NAME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ServicesForUser
public ServicesForUser()
-
-
Method Details
-
services
-
addServicesItem
-
getServices
Get services- Returns:
- services
-
setServices
-
userName
-
getUserName
Get userName- Returns:
- userName
-
setUserName
-
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 ServicesForUser
-
fromJson
Create an instance of ServicesForUser given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of ServicesForUser
- Throws:
IOException
- if the JSON string is invalid with respect to ServicesForUser
-
toJson
Convert an instance of ServicesForUser to an JSON string- Returns:
- JSON string
-