@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Step extends Object implements Serializable, Cloneable, StructuredPojo
Represents an element of a leg within a route. A step contains instructions for how to move to the next step in the leg.
Constructor and Description |
---|
Step() |
Modifier and Type | Method and Description |
---|---|
Step |
clone() |
boolean |
equals(Object obj) |
Double |
getDistance()
The travel distance between the step's
StartPosition and EndPosition . |
Double |
getDurationSeconds()
The estimated travel time, in seconds, from the step's
StartPosition to the EndPosition
. |
List<Double> |
getEndPosition()
The end position of a step.
|
Integer |
getGeometryOffset()
Represents the start position, or index, in a sequence of steps within the leg's line string geometry.
|
List<Double> |
getStartPosition()
The starting position of a step.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDistance(Double distance)
The travel distance between the step's
StartPosition and EndPosition . |
void |
setDurationSeconds(Double durationSeconds)
The estimated travel time, in seconds, from the step's
StartPosition to the EndPosition
. |
void |
setEndPosition(Collection<Double> endPosition)
The end position of a step.
|
void |
setGeometryOffset(Integer geometryOffset)
Represents the start position, or index, in a sequence of steps within the leg's line string geometry.
|
void |
setStartPosition(Collection<Double> startPosition)
The starting position of a step.
|
String |
toString()
Returns a string representation of this object.
|
Step |
withDistance(Double distance)
The travel distance between the step's
StartPosition and EndPosition . |
Step |
withDurationSeconds(Double durationSeconds)
The estimated travel time, in seconds, from the step's
StartPosition to the EndPosition
. |
Step |
withEndPosition(Collection<Double> endPosition)
The end position of a step.
|
Step |
withEndPosition(Double... endPosition)
The end position of a step.
|
Step |
withGeometryOffset(Integer geometryOffset)
Represents the start position, or index, in a sequence of steps within the leg's line string geometry.
|
Step |
withStartPosition(Collection<Double> startPosition)
The starting position of a step.
|
Step |
withStartPosition(Double... startPosition)
The starting position of a step.
|
public List<Double> getStartPosition()
The starting position of a step. If the position is the first step in the leg, this position is the same as the start position of the leg.
public void setStartPosition(Collection<Double> startPosition)
The starting position of a step. If the position is the first step in the leg, this position is the same as the start position of the leg.
startPosition
- The starting position of a step. If the position is the first step in the leg, this position is the same
as the start position of the leg.public Step withStartPosition(Double... startPosition)
The starting position of a step. If the position is the first step in the leg, this position is the same as the start position of the leg.
NOTE: This method appends the values to the existing list (if any). Use
setStartPosition(java.util.Collection)
or withStartPosition(java.util.Collection)
if you want
to override the existing values.
startPosition
- The starting position of a step. If the position is the first step in the leg, this position is the same
as the start position of the leg.public Step withStartPosition(Collection<Double> startPosition)
The starting position of a step. If the position is the first step in the leg, this position is the same as the start position of the leg.
startPosition
- The starting position of a step. If the position is the first step in the leg, this position is the same
as the start position of the leg.public List<Double> getEndPosition()
The end position of a step. If the position the last step in the leg, this position is the same as the end position of the leg.
public void setEndPosition(Collection<Double> endPosition)
The end position of a step. If the position the last step in the leg, this position is the same as the end position of the leg.
endPosition
- The end position of a step. If the position the last step in the leg, this position is the same as the end
position of the leg.public Step withEndPosition(Double... endPosition)
The end position of a step. If the position the last step in the leg, this position is the same as the end position of the leg.
NOTE: This method appends the values to the existing list (if any). Use
setEndPosition(java.util.Collection)
or withEndPosition(java.util.Collection)
if you want to
override the existing values.
endPosition
- The end position of a step. If the position the last step in the leg, this position is the same as the end
position of the leg.public Step withEndPosition(Collection<Double> endPosition)
The end position of a step. If the position the last step in the leg, this position is the same as the end position of the leg.
endPosition
- The end position of a step. If the position the last step in the leg, this position is the same as the end
position of the leg.public void setDistance(Double distance)
The travel distance between the step's StartPosition
and EndPosition
.
distance
- The travel distance between the step's StartPosition
and EndPosition
.public Double getDistance()
The travel distance between the step's StartPosition
and EndPosition
.
StartPosition
and EndPosition
.public Step withDistance(Double distance)
The travel distance between the step's StartPosition
and EndPosition
.
distance
- The travel distance between the step's StartPosition
and EndPosition
.public void setDurationSeconds(Double durationSeconds)
The estimated travel time, in seconds, from the step's StartPosition
to the EndPosition
. . The travel mode and departure time that you specify in the request determines the calculated time.
durationSeconds
- The estimated travel time, in seconds, from the step's StartPosition
to the
EndPosition
. . The travel mode and departure time that you specify in the request determines
the calculated time.public Double getDurationSeconds()
The estimated travel time, in seconds, from the step's StartPosition
to the EndPosition
. . The travel mode and departure time that you specify in the request determines the calculated time.
StartPosition
to the
EndPosition
. . The travel mode and departure time that you specify in the request determines
the calculated time.public Step withDurationSeconds(Double durationSeconds)
The estimated travel time, in seconds, from the step's StartPosition
to the EndPosition
. . The travel mode and departure time that you specify in the request determines the calculated time.
durationSeconds
- The estimated travel time, in seconds, from the step's StartPosition
to the
EndPosition
. . The travel mode and departure time that you specify in the request determines
the calculated time.public void setGeometryOffset(Integer geometryOffset)
Represents the start position, or index, in a sequence of steps within the leg's line string geometry. For
example, the index of the first step in a leg geometry is 0
.
Included in the response for queries that set IncludeLegGeometry
to True
.
geometryOffset
- Represents the start position, or index, in a sequence of steps within the leg's line string geometry. For
example, the index of the first step in a leg geometry is 0
.
Included in the response for queries that set IncludeLegGeometry
to True
.
public Integer getGeometryOffset()
Represents the start position, or index, in a sequence of steps within the leg's line string geometry. For
example, the index of the first step in a leg geometry is 0
.
Included in the response for queries that set IncludeLegGeometry
to True
.
0
.
Included in the response for queries that set IncludeLegGeometry
to True
.
public Step withGeometryOffset(Integer geometryOffset)
Represents the start position, or index, in a sequence of steps within the leg's line string geometry. For
example, the index of the first step in a leg geometry is 0
.
Included in the response for queries that set IncludeLegGeometry
to True
.
geometryOffset
- Represents the start position, or index, in a sequence of steps within the leg's line string geometry. For
example, the index of the first step in a leg geometry is 0
.
Included in the response for queries that set IncludeLegGeometry
to True
.
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.