@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.6.0") public class Photo extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Photo.CustomTypeAdapterFactory |
| Modifier and Type | Field and Description |
|---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_LABEL |
static String |
SERIALIZED_NAME_URL |
| Constructor and Description |
|---|
Photo() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static Photo |
fromJson(String jsonString)
Create an instance of Photo given an JSON string
|
String |
getLabel()
Get label
|
String |
getUrl()
Get url
|
int |
hashCode() |
Photo |
label(String label) |
void |
setLabel(String label) |
void |
setUrl(String url) |
String |
toJson()
Convert an instance of Photo to an JSON string
|
String |
toString() |
Photo |
url(String url) |
static void |
validateJsonElement(com.google.gson.JsonElement jsonElement)
Validates the JSON Element and throws an exception if issues found
|
public static final String SERIALIZED_NAME_URL
public static final String SERIALIZED_NAME_LABEL
public void setUrl(String url)
public void setLabel(String label)
public static void validateJsonElement(com.google.gson.JsonElement jsonElement)
throws IOException
jsonElement - JSON ElementIOException - if the JSON Element is invalid with respect to Photopublic static Photo fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to Photopublic String toJson()
Copyright © 2024. All rights reserved.