/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the location-2020-11-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.LocationService.Model
{
///
/// 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
///
///
///
public partial class RouteMatrixEntryError
{
private RouteMatrixErrorCode _code;
private string _message;
///
/// Gets and sets the property Code.
///
/// The type of error which occurred for the route calculation.
///
///
[AWSProperty(Required=true)]
public RouteMatrixErrorCode Code
{
get { return this._code; }
set { this._code = value; }
}
// Check to see if Code property is set
internal bool IsSetCode()
{
return this._code != null;
}
///
/// Gets and sets the property Message.
///
/// A message about the error that occurred for the route calculation.
///
///
public string Message
{
get { return this._message; }
set { this._message = value; }
}
// Check to see if Message property is set
internal bool IsSetMessage()
{
return this._message != null;
}
}
}