@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CalculateRouteMatrixResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Returns the result of the route matrix calculation.
Constructor and Description |
---|
CalculateRouteMatrixResult() |
Modifier and Type | Method and Description |
---|---|
CalculateRouteMatrixResult |
clone() |
boolean |
equals(Object obj) |
List<List<RouteMatrixEntry>> |
getRouteMatrix()
The calculated route matrix containing the results for all pairs of
DeparturePositions to
DestinationPositions . |
List<List<Double>> |
getSnappedDeparturePositions()
For routes calculated using an Esri route calculator resource, departure positions are snapped to the closest
road.
|
List<List<Double>> |
getSnappedDestinationPositions()
The list of destination positions for the route matrix used for calculation of the
RouteMatrix . |
CalculateRouteMatrixSummary |
getSummary()
Contains information about the route matrix,
DataSource , DistanceUnit ,
RouteCount and ErrorCount . |
int |
hashCode() |
void |
setRouteMatrix(Collection<List<RouteMatrixEntry>> routeMatrix)
The calculated route matrix containing the results for all pairs of
DeparturePositions to
DestinationPositions . |
void |
setSnappedDeparturePositions(Collection<List<Double>> snappedDeparturePositions)
For routes calculated using an Esri route calculator resource, departure positions are snapped to the closest
road.
|
void |
setSnappedDestinationPositions(Collection<List<Double>> snappedDestinationPositions)
The list of destination positions for the route matrix used for calculation of the
RouteMatrix . |
void |
setSummary(CalculateRouteMatrixSummary summary)
Contains information about the route matrix,
DataSource , DistanceUnit ,
RouteCount and ErrorCount . |
String |
toString()
Returns a string representation of this object.
|
CalculateRouteMatrixResult |
withRouteMatrix(Collection<List<RouteMatrixEntry>> routeMatrix)
The calculated route matrix containing the results for all pairs of
DeparturePositions to
DestinationPositions . |
CalculateRouteMatrixResult |
withRouteMatrix(List<RouteMatrixEntry>... routeMatrix)
The calculated route matrix containing the results for all pairs of
DeparturePositions to
DestinationPositions . |
CalculateRouteMatrixResult |
withSnappedDeparturePositions(Collection<List<Double>> snappedDeparturePositions)
For routes calculated using an Esri route calculator resource, departure positions are snapped to the closest
road.
|
CalculateRouteMatrixResult |
withSnappedDeparturePositions(List<Double>... snappedDeparturePositions)
For routes calculated using an Esri route calculator resource, departure positions are snapped to the closest
road.
|
CalculateRouteMatrixResult |
withSnappedDestinationPositions(Collection<List<Double>> snappedDestinationPositions)
The list of destination positions for the route matrix used for calculation of the
RouteMatrix . |
CalculateRouteMatrixResult |
withSnappedDestinationPositions(List<Double>... snappedDestinationPositions)
The list of destination positions for the route matrix used for calculation of the
RouteMatrix . |
CalculateRouteMatrixResult |
withSummary(CalculateRouteMatrixSummary summary)
Contains information about the route matrix,
DataSource , DistanceUnit ,
RouteCount and ErrorCount . |
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<List<RouteMatrixEntry>> getRouteMatrix()
The calculated route matrix containing the results for all pairs of DeparturePositions
to
DestinationPositions
. Each row corresponds to one entry in DeparturePositions
. Each
entry in the row corresponds to the route from that entry in DeparturePositions
to an entry in
DestinationPositions
.
DeparturePositions
to
DestinationPositions
. Each row corresponds to one entry in DeparturePositions
.
Each entry in the row corresponds to the route from that entry in DeparturePositions
to an
entry in DestinationPositions
.public void setRouteMatrix(Collection<List<RouteMatrixEntry>> routeMatrix)
The calculated route matrix containing the results for all pairs of DeparturePositions
to
DestinationPositions
. Each row corresponds to one entry in DeparturePositions
. Each
entry in the row corresponds to the route from that entry in DeparturePositions
to an entry in
DestinationPositions
.
routeMatrix
- The calculated route matrix containing the results for all pairs of DeparturePositions
to
DestinationPositions
. Each row corresponds to one entry in DeparturePositions
.
Each entry in the row corresponds to the route from that entry in DeparturePositions
to an
entry in DestinationPositions
.public CalculateRouteMatrixResult withRouteMatrix(List<RouteMatrixEntry>... routeMatrix)
The calculated route matrix containing the results for all pairs of DeparturePositions
to
DestinationPositions
. Each row corresponds to one entry in DeparturePositions
. Each
entry in the row corresponds to the route from that entry in DeparturePositions
to an entry in
DestinationPositions
.
NOTE: This method appends the values to the existing list (if any). Use
setRouteMatrix(java.util.Collection)
or withRouteMatrix(java.util.Collection)
if you want to
override the existing values.
routeMatrix
- The calculated route matrix containing the results for all pairs of DeparturePositions
to
DestinationPositions
. Each row corresponds to one entry in DeparturePositions
.
Each entry in the row corresponds to the route from that entry in DeparturePositions
to an
entry in DestinationPositions
.public CalculateRouteMatrixResult withRouteMatrix(Collection<List<RouteMatrixEntry>> routeMatrix)
The calculated route matrix containing the results for all pairs of DeparturePositions
to
DestinationPositions
. Each row corresponds to one entry in DeparturePositions
. Each
entry in the row corresponds to the route from that entry in DeparturePositions
to an entry in
DestinationPositions
.
routeMatrix
- The calculated route matrix containing the results for all pairs of DeparturePositions
to
DestinationPositions
. Each row corresponds to one entry in DeparturePositions
.
Each entry in the row corresponds to the route from that entry in DeparturePositions
to an
entry in DestinationPositions
.public List<List<Double>> getSnappedDeparturePositions()
For routes calculated using an Esri route calculator resource, departure positions are snapped to the closest
road. For Esri route calculator resources, this returns the list of departure/origin positions used for
calculation of the RouteMatrix
.
RouteMatrix
.public void setSnappedDeparturePositions(Collection<List<Double>> snappedDeparturePositions)
For routes calculated using an Esri route calculator resource, departure positions are snapped to the closest
road. For Esri route calculator resources, this returns the list of departure/origin positions used for
calculation of the RouteMatrix
.
snappedDeparturePositions
- For routes calculated using an Esri route calculator resource, departure positions are snapped to the
closest road. For Esri route calculator resources, this returns the list of departure/origin positions
used for calculation of the RouteMatrix
.public CalculateRouteMatrixResult withSnappedDeparturePositions(List<Double>... snappedDeparturePositions)
For routes calculated using an Esri route calculator resource, departure positions are snapped to the closest
road. For Esri route calculator resources, this returns the list of departure/origin positions used for
calculation of the RouteMatrix
.
NOTE: This method appends the values to the existing list (if any). Use
setSnappedDeparturePositions(java.util.Collection)
or
withSnappedDeparturePositions(java.util.Collection)
if you want to override the existing values.
snappedDeparturePositions
- For routes calculated using an Esri route calculator resource, departure positions are snapped to the
closest road. For Esri route calculator resources, this returns the list of departure/origin positions
used for calculation of the RouteMatrix
.public CalculateRouteMatrixResult withSnappedDeparturePositions(Collection<List<Double>> snappedDeparturePositions)
For routes calculated using an Esri route calculator resource, departure positions are snapped to the closest
road. For Esri route calculator resources, this returns the list of departure/origin positions used for
calculation of the RouteMatrix
.
snappedDeparturePositions
- For routes calculated using an Esri route calculator resource, departure positions are snapped to the
closest road. For Esri route calculator resources, this returns the list of departure/origin positions
used for calculation of the RouteMatrix
.public List<List<Double>> getSnappedDestinationPositions()
The list of destination positions for the route matrix used for calculation of the RouteMatrix
.
RouteMatrix
.public void setSnappedDestinationPositions(Collection<List<Double>> snappedDestinationPositions)
The list of destination positions for the route matrix used for calculation of the RouteMatrix
.
snappedDestinationPositions
- The list of destination positions for the route matrix used for calculation of the
RouteMatrix
.public CalculateRouteMatrixResult withSnappedDestinationPositions(List<Double>... snappedDestinationPositions)
The list of destination positions for the route matrix used for calculation of the RouteMatrix
.
NOTE: This method appends the values to the existing list (if any). Use
setSnappedDestinationPositions(java.util.Collection)
or
withSnappedDestinationPositions(java.util.Collection)
if you want to override the existing values.
snappedDestinationPositions
- The list of destination positions for the route matrix used for calculation of the
RouteMatrix
.public CalculateRouteMatrixResult withSnappedDestinationPositions(Collection<List<Double>> snappedDestinationPositions)
The list of destination positions for the route matrix used for calculation of the RouteMatrix
.
snappedDestinationPositions
- The list of destination positions for the route matrix used for calculation of the
RouteMatrix
.public void setSummary(CalculateRouteMatrixSummary summary)
Contains information about the route matrix, DataSource
, DistanceUnit
,
RouteCount
and ErrorCount
.
summary
- Contains information about the route matrix, DataSource
, DistanceUnit
,
RouteCount
and ErrorCount
.public CalculateRouteMatrixSummary getSummary()
Contains information about the route matrix, DataSource
, DistanceUnit
,
RouteCount
and ErrorCount
.
DataSource
, DistanceUnit
,
RouteCount
and ErrorCount
.public CalculateRouteMatrixResult withSummary(CalculateRouteMatrixSummary summary)
Contains information about the route matrix, DataSource
, DistanceUnit
,
RouteCount
and ErrorCount
.
summary
- Contains information about the route matrix, DataSource
, DistanceUnit
,
RouteCount
and ErrorCount
.public String toString()
toString
in class Object
Object.toString()
public CalculateRouteMatrixResult clone()