Class RouteVehicleIncident
- java.lang.Object
-
- software.amazon.awssdk.services.georoutes.model.RouteVehicleIncident
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RouteVehicleIncident.Builder,RouteVehicleIncident>
@Generated("software.amazon.awssdk:codegen") public final class RouteVehicleIncident extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RouteVehicleIncident.Builder,RouteVehicleIncident>
Incidents corresponding to this leg of the route.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRouteVehicleIncident.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RouteVehicleIncident.Builderbuilder()Stringdescription()Brief readable description of the incident.StringendTime()End timestamp of the incident.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends RouteVehicleIncident.Builder>serializableBuilderClass()RouteVehicleIncidentSeverityseverity()Severity of the incident Critical - The part of the route the incident affects is unusable.StringseverityAsString()Severity of the incident Critical - The part of the route the incident affects is unusable.StringstartTime()Start time of the incident.RouteVehicleIncident.BuildertoBuilder()StringtoString()Returns a string representation of this object.RouteVehicleIncidentTypetype()Type of the incident.StringtypeAsString()Type of the incident.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
description
public final String description()
Brief readable description of the incident.
- Returns:
- Brief readable description of the incident.
-
endTime
public final String endTime()
End timestamp of the incident.
- Returns:
- End timestamp of the incident.
-
severity
public final RouteVehicleIncidentSeverity severity()
Severity of the incident Critical - The part of the route the incident affects is unusable. Major- Major impact on the leg duration, for example stop and go Minor- Minor impact on the leg duration, for example traffic jam Low - Low on duration, for example slightly increased traffic
If the service returns an enum value that is not available in the current SDK version,
severitywill returnRouteVehicleIncidentSeverity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromseverityAsString().- Returns:
- Severity of the incident Critical - The part of the route the incident affects is unusable. Major- Major impact on the leg duration, for example stop and go Minor- Minor impact on the leg duration, for example traffic jam Low - Low on duration, for example slightly increased traffic
- See Also:
RouteVehicleIncidentSeverity
-
severityAsString
public final String severityAsString()
Severity of the incident Critical - The part of the route the incident affects is unusable. Major- Major impact on the leg duration, for example stop and go Minor- Minor impact on the leg duration, for example traffic jam Low - Low on duration, for example slightly increased traffic
If the service returns an enum value that is not available in the current SDK version,
severitywill returnRouteVehicleIncidentSeverity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromseverityAsString().- Returns:
- Severity of the incident Critical - The part of the route the incident affects is unusable. Major- Major impact on the leg duration, for example stop and go Minor- Minor impact on the leg duration, for example traffic jam Low - Low on duration, for example slightly increased traffic
- See Also:
RouteVehicleIncidentSeverity
-
startTime
public final String startTime()
Start time of the incident.
- Returns:
- Start time of the incident.
-
type
public final RouteVehicleIncidentType type()
Type of the incident.
If the service returns an enum value that is not available in the current SDK version,
typewill returnRouteVehicleIncidentType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- Type of the incident.
- See Also:
RouteVehicleIncidentType
-
typeAsString
public final String typeAsString()
Type of the incident.
If the service returns an enum value that is not available in the current SDK version,
typewill returnRouteVehicleIncidentType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- Type of the incident.
- See Also:
RouteVehicleIncidentType
-
toBuilder
public RouteVehicleIncident.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<RouteVehicleIncident.Builder,RouteVehicleIncident>
-
builder
public static RouteVehicleIncident.Builder builder()
-
serializableBuilderClass
public static Class<? extends RouteVehicleIncident.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-