Interface Step.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Step.Builder,
,Step> SdkBuilder<Step.Builder,
,Step> SdkPojo
- Enclosing class:
Step
-
Method Summary
Modifier and TypeMethodDescriptionThe travel distance between the step'sStartPosition
andEndPosition
.durationSeconds
(Double durationSeconds) The estimated travel time, in seconds, from the step'sStartPosition
to theEndPosition
.endPosition
(Double... endPosition) The end position of a step.endPosition
(Collection<Double> endPosition) The end position of a step.geometryOffset
(Integer geometryOffset) Represents the start position, or index, in a sequence of steps within the leg's line string geometry.startPosition
(Double... startPosition) The starting position of a step.startPosition
(Collection<Double> startPosition) The starting position of a step.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
distance
The travel distance between the step's
StartPosition
andEndPosition
.- Parameters:
distance
- The travel distance between the step'sStartPosition
andEndPosition
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
durationSeconds
The estimated travel time, in seconds, from the step's
StartPosition
to theEndPosition
. . The travel mode and departure time that you specify in the request determines the calculated time.- Parameters:
durationSeconds
- The estimated travel time, in seconds, from the step'sStartPosition
to theEndPosition
. . The travel mode and departure time that you specify in the request determines the calculated time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
toTrue
.- Parameters:
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 is0
.Included in the response for queries that set
IncludeLegGeometry
toTrue
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-