@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.6.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_CITY |
static String |
SERIALIZED_NAME_COUNTRY |
static String |
SERIALIZED_NAME_COUNTRY_CODE |
static String |
SERIALIZED_NAME_FORMATTED |
static String |
SERIALIZED_NAME_POSTAL_CODE |
static String |
SERIALIZED_NAME_REGION |
static String |
SERIALIZED_NAME_REGION_CODE |
| Constructor and Description |
|---|
Location() |
| Modifier and Type | Method and Description |
|---|---|
Location |
city(String city) |
Location |
country(String country) |
Location |
countryCode(String countryCode) |
boolean |
equals(Object o) |
Location |
formatted(String formatted) |
static Location |
fromJson(String jsonString)
Create an instance of Location given an JSON string
|
String |
getCity()
Get city
|
String |
getCountry()
Get country
|
String |
getCountryCode()
Get countryCode
|
String |
getFormatted()
Get formatted
|
String |
getPostalCode()
Get postalCode
|
String |
getRegion()
Get region
|
String |
getRegionCode()
Get regionCode
|
int |
hashCode() |
Location |
postalCode(String postalCode) |
Location |
region(String region) |
Location |
regionCode(String regionCode) |
void |
setCity(String city) |
void |
setCountry(String country) |
void |
setCountryCode(String countryCode) |
void |
setFormatted(String formatted) |
void |
setPostalCode(String postalCode) |
void |
setRegion(String region) |
void |
setRegionCode(String regionCode) |
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_CITY
public static final String SERIALIZED_NAME_REGION
public static final String SERIALIZED_NAME_REGION_CODE
public static final String SERIALIZED_NAME_COUNTRY
public static final String SERIALIZED_NAME_COUNTRY_CODE
public static final String SERIALIZED_NAME_POSTAL_CODE
public static final String SERIALIZED_NAME_FORMATTED
public void setCity(String city)
public void setRegion(String region)
public void setRegionCode(String regionCode)
public void setCountry(String country)
public void setCountryCode(String countryCode)
public void setPostalCode(String postalCode)
public void setFormatted(String formatted)
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.