Interface Step.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Step.Builder,Step>,SdkBuilder<Step.Builder,Step>,SdkPojo
- Enclosing class:
- Step
public static interface Step.Builder extends SdkPojo, CopyableBuilder<Step.Builder,Step>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Step.Builderdistance(Double distance)The travel distance between the step'sStartPositionandEndPosition.Step.BuilderdurationSeconds(Double durationSeconds)The estimated travel time, in seconds, from the step'sStartPositionto theEndPosition.Step.BuilderendPosition(Double... endPosition)The end position of a step.Step.BuilderendPosition(Collection<Double> endPosition)The end position of a step.Step.BuildergeometryOffset(Integer geometryOffset)Represents the start position, or index, in a sequence of steps within the leg's line string geometry.Step.BuilderstartPosition(Double... startPosition)The starting position of a step.Step.BuilderstartPosition(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 Detail
-
distance
Step.Builder distance(Double distance)
The travel distance between the step's
StartPositionandEndPosition.- Parameters:
distance- The travel distance between the step'sStartPositionandEndPosition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
durationSeconds
Step.Builder durationSeconds(Double durationSeconds)
The estimated travel time, in seconds, from the step's
StartPositionto 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'sStartPositionto 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
Step.Builder endPosition(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.
- 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
Step.Builder endPosition(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.
- 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
Step.Builder geometryOffset(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
IncludeLegGeometrytoTrue.- 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
IncludeLegGeometrytoTrue.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startPosition
Step.Builder startPosition(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.
- 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
Step.Builder startPosition(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.
- 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.
-
-