@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RouteMatrixEntry extends Object implements Serializable, Cloneable, StructuredPojo
The result for the calculated route of one DeparturePosition
DestinationPosition
pair.
Constructor and Description |
---|
RouteMatrixEntry() |
Modifier and Type | Method and Description |
---|---|
RouteMatrixEntry |
clone() |
boolean |
equals(Object obj) |
Double |
getDistance()
The total distance of travel for the route.
|
Double |
getDurationSeconds()
The expected duration of travel for the route.
|
RouteMatrixEntryError |
getError()
An error corresponding to the calculation of a route between the
DeparturePosition and
DestinationPosition . |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDistance(Double distance)
The total distance of travel for the route.
|
void |
setDurationSeconds(Double durationSeconds)
The expected duration of travel for the route.
|
void |
setError(RouteMatrixEntryError error)
An error corresponding to the calculation of a route between the
DeparturePosition and
DestinationPosition . |
String |
toString()
Returns a string representation of this object.
|
RouteMatrixEntry |
withDistance(Double distance)
The total distance of travel for the route.
|
RouteMatrixEntry |
withDurationSeconds(Double durationSeconds)
The expected duration of travel for the route.
|
RouteMatrixEntry |
withError(RouteMatrixEntryError error)
An error corresponding to the calculation of a route between the
DeparturePosition and
DestinationPosition . |
public void setDistance(Double distance)
The total distance of travel for the route.
distance
- The total distance of travel for the route.public Double getDistance()
The total distance of travel for the route.
public RouteMatrixEntry withDistance(Double distance)
The total distance of travel for the route.
distance
- The total distance of travel for the route.public void setDurationSeconds(Double durationSeconds)
The expected duration of travel for the route.
durationSeconds
- The expected duration of travel for the route.public Double getDurationSeconds()
The expected duration of travel for the route.
public RouteMatrixEntry withDurationSeconds(Double durationSeconds)
The expected duration of travel for the route.
durationSeconds
- The expected duration of travel for the route.public void setError(RouteMatrixEntryError error)
An error corresponding to the calculation of a route between the DeparturePosition
and
DestinationPosition
.
error
- An error corresponding to the calculation of a route between the DeparturePosition
and
DestinationPosition
.public RouteMatrixEntryError getError()
An error corresponding to the calculation of a route between the DeparturePosition
and
DestinationPosition
.
DeparturePosition
and
DestinationPosition
.public RouteMatrixEntry withError(RouteMatrixEntryError error)
An error corresponding to the calculation of a route between the DeparturePosition
and
DestinationPosition
.
error
- An error corresponding to the calculation of a route between the DeparturePosition
and
DestinationPosition
.public String toString()
toString
in class Object
Object.toString()
public RouteMatrixEntry clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.