Class RouteMatrixEntryError
- java.lang.Object
-
- software.amazon.awssdk.services.location.model.RouteMatrixEntryError
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RouteMatrixEntryError.Builder,RouteMatrixEntryError>
@Generated("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
DeparturePositionandDestinationPosition.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 errorMessage
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRouteMatrixEntryError.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RouteMatrixEntryError.Builderbuilder()RouteMatrixErrorCodecode()The type of error which occurred for the route calculation.StringcodeAsString()The type of error which occurred for the route calculation.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringmessage()A message about the error that occurred for the route calculation.List<SdkField<?>>sdkFields()static Class<? extends RouteMatrixEntryError.Builder>serializableBuilderClass()RouteMatrixEntryError.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
-
code
public 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,
codewill returnRouteMatrixErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcodeAsString().- Returns:
- The type of error which occurred for the route calculation.
- See Also:
RouteMatrixErrorCode
-
codeAsString
public 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,
codewill returnRouteMatrixErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcodeAsString().- Returns:
- The type of error which occurred for the route calculation.
- See Also:
RouteMatrixErrorCode
-
message
public final String message()
A message about the error that occurred for the route calculation.
- Returns:
- A message about the error that occurred for the route calculation.
-
toBuilder
public RouteMatrixEntryError.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<RouteMatrixEntryError.Builder,RouteMatrixEntryError>
-
builder
public static RouteMatrixEntryError.Builder builder()
-
serializableBuilderClass
public static Class<? extends RouteMatrixEntryError.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.
-
-