Class RouteMatrixEntry
- java.lang.Object
-
- software.amazon.awssdk.services.georoutes.model.RouteMatrixEntry
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RouteMatrixEntry.Builder,RouteMatrixEntry>
@Generated("software.amazon.awssdk:codegen") public final class RouteMatrixEntry extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RouteMatrixEntry.Builder,RouteMatrixEntry>
The calculated route matrix containing the results for all pairs of Origins to Destination positions. Each row corresponds to one entry in Origins. Each entry in the row corresponds to the route from that entry in Origins to an entry in Destination positions.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRouteMatrixEntry.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RouteMatrixEntry.Builderbuilder()Longdistance()The total distance of travel for the route.Longduration()The expected duration of travel for the route.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)RouteMatrixErrorCodeerror()Error code that occurred during calculation of the route.StringerrorAsString()Error code that occurred during calculation of the route.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends RouteMatrixEntry.Builder>serializableBuilderClass()RouteMatrixEntry.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
distance
public final Long distance()
The total distance of travel for the route.
- Returns:
- The total distance of travel for the route.
-
duration
public final Long duration()
The expected duration of travel for the route.
Unit:
seconds- Returns:
- The expected duration of travel for the route.
Unit:
seconds
-
error
public final RouteMatrixErrorCode error()
Error code that occurred during calculation of the route.
If the service returns an enum value that is not available in the current SDK version,
errorwill returnRouteMatrixErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromerrorAsString().- Returns:
- Error code that occurred during calculation of the route.
- See Also:
RouteMatrixErrorCode
-
errorAsString
public final String errorAsString()
Error code that occurred during calculation of the route.
If the service returns an enum value that is not available in the current SDK version,
errorwill returnRouteMatrixErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromerrorAsString().- Returns:
- Error code that occurred during calculation of the route.
- See Also:
RouteMatrixErrorCode
-
toBuilder
public RouteMatrixEntry.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<RouteMatrixEntry.Builder,RouteMatrixEntry>
-
builder
public static RouteMatrixEntry.Builder builder()
-
serializableBuilderClass
public static Class<? extends RouteMatrixEntry.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
-
-