@Generated(value="software.amazon.awssdk:codegen") public final class RouteMatrixEntryError extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RouteMatrixEntryError.Builder,RouteMatrixEntryError>
An error corresponding to the calculation of a route between the DeparturePosition and
DestinationPosition.
The error code can be one of the following:
RouteNotFound - Unable to find a valid route with the given parameters.
RouteTooLong - Route calculation went beyond the maximum size of a route and was terminated before
completion.
PositionsNotFound - One or more of the input positions were not found on the route network.
DestinationPositionNotFound - The destination position was not found on the route network.
DeparturePositionNotFound - The departure position was not found on the route network.
OtherValidationError - The given inputs were not valid or a route was not found. More information is
given in the error Message
| Modifier and Type | Class and Description |
|---|---|
static interface |
RouteMatrixEntryError.Builder |
| Modifier and Type | Method and Description |
|---|---|
static RouteMatrixEntryError.Builder |
builder() |
RouteMatrixErrorCode |
code()
The type of error which occurred for the route calculation.
|
String |
codeAsString()
The type of error which occurred for the route calculation.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
message()
A message about the error that occurred for the route calculation.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends RouteMatrixEntryError.Builder> |
serializableBuilderClass() |
RouteMatrixEntryError.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final RouteMatrixErrorCode code()
The type of error which occurred for the route calculation.
If the service returns an enum value that is not available in the current SDK version, code will return
RouteMatrixErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
codeAsString().
RouteMatrixErrorCodepublic final String codeAsString()
The type of error which occurred for the route calculation.
If the service returns an enum value that is not available in the current SDK version, code will return
RouteMatrixErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
codeAsString().
RouteMatrixErrorCodepublic final String message()
A message about the error that occurred for the route calculation.
public RouteMatrixEntryError.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<RouteMatrixEntryError.Builder,RouteMatrixEntryError>public static RouteMatrixEntryError.Builder builder()
public static Class<? extends RouteMatrixEntryError.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.