public abstract class TrafficCodes extends DirectionsJsonObject
Incident.trafficCodes().| Modifier and Type | Class and Description |
|---|---|
static class |
TrafficCodes.Builder
This builder can be used to set the values describing the
TrafficCodes. |
| Constructor and Description |
|---|
TrafficCodes() |
| Modifier and Type | Method and Description |
|---|---|
static TrafficCodes.Builder |
builder()
Create a new instance of this class by using the
TrafficCodes.Builder class. |
static TrafficCodes |
fromJson(java.lang.String json)
Create a new instance of this class by passing in a formatted valid JSON String.
|
abstract java.lang.Integer |
jarticCauseCode()
Jartic cause code value.
|
abstract java.lang.Integer |
jarticRegulationCode()
Jartic regulation code value.
|
abstract TrafficCodes.Builder |
toBuilder()
Convert the current
TrafficCodes to its builder holding the currently assigned
values. |
static com.google.gson.TypeAdapter<TrafficCodes> |
typeAdapter(com.google.gson.Gson gson)
Gson type adapter for parsing Gson to this class.
|
getUnrecognizedJsonProperties, getUnrecognizedPropertiesNames, getUnrecognizedProperty, toJson@Nullable @SerializedName(value="jartic_cause_code") public abstract java.lang.Integer jarticCauseCode()
@Nullable @SerializedName(value="jartic_regulation_code") public abstract java.lang.Integer jarticRegulationCode()
public static TrafficCodes.Builder builder()
TrafficCodes.Builder class.TrafficCodes.Builder for creating a new instancepublic abstract TrafficCodes.Builder toBuilder()
TrafficCodes 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 TrafficCodes.TrafficCodes.Builder with the same values set to match the ones defined in this
TrafficCodespublic static com.google.gson.TypeAdapter<TrafficCodes> typeAdapter(com.google.gson.Gson gson)
gson - the built Gson objectpublic static TrafficCodes fromJson(java.lang.String json)
json - a formatted valid JSON string defining a TrafficCodes