@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-12-11T00:56:28.222220Z[Etc/UTC]", comments="Generator version: 7.10.0") public class Location extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Location.CustomTypeAdapterFactory |
Modifier and Type | Field and Description |
---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_LATITUDE |
static String |
SERIALIZED_NAME_LONGITUDE |
static String |
SERIALIZED_NAME_NAME |
Constructor and Description |
---|
Location() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static Location |
fromJson(String jsonString)
Create an instance of Location given an JSON string
|
Double |
getLatitude()
Get latitude
|
Double |
getLongitude()
Get longitude
|
String |
getName()
Get name
|
int |
hashCode() |
Location |
latitude(Double latitude) |
Location |
longitude(Double longitude) |
Location |
name(String name) |
void |
setLatitude(Double latitude) |
void |
setLongitude(Double longitude) |
void |
setName(String name) |
String |
toJson()
Convert an instance of Location to an JSON string
|
String |
toString() |
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_LATITUDE
public static final String SERIALIZED_NAME_LONGITUDE
public static final String SERIALIZED_NAME_NAME
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
jsonElement
- JSON ElementIOException
- if the JSON Element is invalid with respect to Locationpublic static Location fromJson(String jsonString) throws IOException
jsonString
- JSON stringIOException
- if the JSON string is invalid with respect to Locationpublic String toJson()
Copyright © 2024. All rights reserved.