public abstract class Admin extends DirectionsJsonObject
| Modifier and Type | Class and Description |
|---|---|
static class |
Admin.Builder
This builder can be used to set the values describing the
Admin. |
| Constructor and Description |
|---|
Admin() |
| Modifier and Type | Method and Description |
|---|---|
static Admin.Builder |
builder()
Create a new instance of this class by using the
Admin.Builder class. |
abstract java.lang.String |
countryCode()
Contains the 2 character ISO 3166-1 alpha-2 code that applies to a country boundary.
|
abstract java.lang.String |
countryCodeAlpha3()
Contains the 3 character ISO 3166-1 alpha-3 code that applies to a country boundary.
|
static Admin |
fromJson(java.lang.String json)
Create a new instance of this class by passing in a formatted valid JSON String.
|
abstract Admin.Builder |
toBuilder()
Convert the current
Admin to its builder holding the currently assigned
values. |
static com.google.gson.TypeAdapter<Admin> |
typeAdapter(com.google.gson.Gson gson)
Gson type adapter for parsing Gson to this class.
|
getUnrecognizedJsonProperties, getUnrecognizedPropertiesNames, getUnrecognizedProperty, toJson@Nullable @SerializedName(value="iso_3166_1") public abstract java.lang.String countryCode()
@Nullable @SerializedName(value="iso_3166_1_alpha3") public abstract java.lang.String countryCodeAlpha3()
public static Admin.Builder builder()
Admin.Builder class.Admin.Builder for creating a new instancepublic abstract Admin.Builder toBuilder()
Admin to its builder holding the currently assigned
values. This allows you to modify a single property and then rebuild the object resulting in
an updated and modified Admin.Admin.Builder with the same values set to match the ones defined in this Adminpublic static com.google.gson.TypeAdapter<Admin> typeAdapter(com.google.gson.Gson gson)
gson - the built Gson objectpublic static Admin fromJson(java.lang.String json)
json - a formatted valid JSON string defining an Incident