Class RoutePedestrianSpan
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<RoutePedestrianSpan.Builder,
RoutePedestrianSpan>
Span computed for the requested SpanAdditionalFeatures.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal Long
Duration of the computed span without traffic congestion.static RoutePedestrianSpan.Builder
builder()
final String
country()
3 letter Country code corresponding to the Span.final Long
distance()
Distance of the computed span.final Long
duration()
Duration of the computed span.Dynamic speed details corresponding to the span.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final Integer
Functional classification of the road segment corresponding to the span.final Integer
Offset in the leg geometry corresponding to the start of this span.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final boolean
For responses, this returns true if the service returned a value for the Incidents property.final boolean
hasNames()
For responses, this returns true if the service returned a value for the Names property.final boolean
For responses, this returns true if the service returned a value for the PedestrianAccess property.final boolean
For responses, this returns true if the service returned a value for the RoadAttributes property.final boolean
For responses, this returns true if the service returned a value for the RouteNumbers property.Incidents corresponding to the span.final List
<LocalizedString> names()
Provides an array of names of the pedestrian span in available languages.Access attributes for a pedestrian corresponding to the span.Access attributes for a pedestrian corresponding to the span.final String
region()
2-3 letter Region code corresponding to the Span.final List
<RouteSpanRoadAttribute> Attributes for the road segment corresponding to the span.Attributes for the road segment corresponding to the span.final List
<RouteNumber> Designated route name or number corresponding to the span.static Class
<? extends RoutePedestrianSpan.Builder> Speed limit details corresponding to the span.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final Long
Duration of the computed span under typical traffic congestion.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
bestCaseDuration
Duration of the computed span without traffic congestion.
Unit:
seconds
- Returns:
- Duration of the computed span without traffic congestion.
Unit:
seconds
-
country
3 letter Country code corresponding to the Span.
- Returns:
- 3 letter Country code corresponding to the Span.
-
distance
Distance of the computed span. This feature doesn't split a span, but is always computed on a span split by other properties.
- Returns:
- Distance of the computed span. This feature doesn't split a span, but is always computed on a span split by other properties.
-
duration
Duration of the computed span. This feature doesn't split a span, but is always computed on a span split by other properties.
Unit:
seconds
- Returns:
- Duration of the computed span. This feature doesn't split a span, but is always computed on a span split
by other properties.
Unit:
seconds
-
dynamicSpeed
Dynamic speed details corresponding to the span.
Unit:
KilometersPerHour
- Returns:
- Dynamic speed details corresponding to the span.
Unit:
KilometersPerHour
-
functionalClassification
Functional classification of the road segment corresponding to the span.
- Returns:
- Functional classification of the road segment corresponding to the span.
-
geometryOffset
Offset in the leg geometry corresponding to the start of this span.
- Returns:
- Offset in the leg geometry corresponding to the start of this span.
-
hasIncidents
public final boolean hasIncidents()For responses, this returns true if the service returned a value for the Incidents property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
incidents
Incidents corresponding to the span. These index into the Incidents in the parent Leg.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasIncidents()
method.- Returns:
- Incidents corresponding to the span. These index into the Incidents in the parent Leg.
-
hasNames
public final boolean hasNames()For responses, this returns true if the service returned a value for the Names property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
names
Provides an array of names of the pedestrian span in available languages.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasNames()
method.- Returns:
- Provides an array of names of the pedestrian span in available languages.
-
pedestrianAccess
Access attributes for a pedestrian corresponding to the span.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasPedestrianAccess()
method.- Returns:
- Access attributes for a pedestrian corresponding to the span.
-
hasPedestrianAccess
public final boolean hasPedestrianAccess()For responses, this returns true if the service returned a value for the PedestrianAccess property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
pedestrianAccessAsStrings
Access attributes for a pedestrian corresponding to the span.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasPedestrianAccess()
method.- Returns:
- Access attributes for a pedestrian corresponding to the span.
-
region
2-3 letter Region code corresponding to the Span. This is either a province or a state.
- Returns:
- 2-3 letter Region code corresponding to the Span. This is either a province or a state.
-
roadAttributes
Attributes for the road segment corresponding to the span.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasRoadAttributes()
method.- Returns:
- Attributes for the road segment corresponding to the span.
-
hasRoadAttributes
public final boolean hasRoadAttributes()For responses, this returns true if the service returned a value for the RoadAttributes property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
roadAttributesAsStrings
Attributes for the road segment corresponding to the span.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasRoadAttributes()
method.- Returns:
- Attributes for the road segment corresponding to the span.
-
hasRouteNumbers
public final boolean hasRouteNumbers()For responses, this returns true if the service returned a value for the RouteNumbers property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
routeNumbers
Designated route name or number corresponding to the span.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasRouteNumbers()
method.- Returns:
- Designated route name or number corresponding to the span.
-
speedLimit
Speed limit details corresponding to the span.
Unit:
KilometersPerHour
- Returns:
- Speed limit details corresponding to the span.
Unit:
KilometersPerHour
-
typicalDuration
Duration of the computed span under typical traffic congestion.
Unit:
seconds
- Returns:
- Duration of the computed span under typical traffic congestion.
Unit:
seconds
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<RoutePedestrianSpan.Builder,
RoutePedestrianSpan> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-