Interface Route.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Route.Builder,
,Route> SdkBuilder<Route.Builder,
,Route> SdkPojo
- Enclosing class:
Route
-
Method Summary
Modifier and TypeMethodDescriptionlegs
(Collection<RouteLeg> legs) A leg is a section of a route from one waypoint to the next.legs
(Consumer<RouteLeg.Builder>... legs) A leg is a section of a route from one waypoint to the next.A leg is a section of a route from one waypoint to the next.majorRoadLabels
(Collection<RouteMajorRoadLabel> majorRoadLabels) Important labels including names and route numbers that differentiate the current route from the alternatives presented.majorRoadLabels
(Consumer<RouteMajorRoadLabel.Builder>... majorRoadLabels) Important labels including names and route numbers that differentiate the current route from the alternatives presented.majorRoadLabels
(RouteMajorRoadLabel... majorRoadLabels) Important labels including names and route numbers that differentiate the current route from the alternatives presented.default Route.Builder
summary
(Consumer<RouteSummary.Builder> summary) Summarized details of the leg.summary
(RouteSummary summary) Summarized details of the leg.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, sdkFieldNameToField, sdkFields
-
Method Details
-
legs
A leg is a section of a route from one waypoint to the next. A leg could be of type Vehicle, Pedestrian or Ferry. Legs of different types could occur together within a single route. For example, a car employing the use of a Ferry will contain Vehicle legs corresponding to journey on land, and Ferry legs corresponding to the journey via Ferry.
- Parameters:
legs
- A leg is a section of a route from one waypoint to the next. A leg could be of type Vehicle, Pedestrian or Ferry. Legs of different types could occur together within a single route. For example, a car employing the use of a Ferry will contain Vehicle legs corresponding to journey on land, and Ferry legs corresponding to the journey via Ferry.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
legs
A leg is a section of a route from one waypoint to the next. A leg could be of type Vehicle, Pedestrian or Ferry. Legs of different types could occur together within a single route. For example, a car employing the use of a Ferry will contain Vehicle legs corresponding to journey on land, and Ferry legs corresponding to the journey via Ferry.
- Parameters:
legs
- A leg is a section of a route from one waypoint to the next. A leg could be of type Vehicle, Pedestrian or Ferry. Legs of different types could occur together within a single route. For example, a car employing the use of a Ferry will contain Vehicle legs corresponding to journey on land, and Ferry legs corresponding to the journey via Ferry.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
legs
A leg is a section of a route from one waypoint to the next. A leg could be of type Vehicle, Pedestrian or Ferry. Legs of different types could occur together within a single route. For example, a car employing the use of a Ferry will contain Vehicle legs corresponding to journey on land, and Ferry legs corresponding to the journey via Ferry.
This is a convenience method that creates an instance of theRouteLeg.Builder
avoiding the need to create one manually viaRouteLeg.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolegs(List<RouteLeg>)
.- Parameters:
legs
- a consumer that will call methods onRouteLeg.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
majorRoadLabels
Important labels including names and route numbers that differentiate the current route from the alternatives presented.
- Parameters:
majorRoadLabels
- Important labels including names and route numbers that differentiate the current route from the alternatives presented.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
majorRoadLabels
Important labels including names and route numbers that differentiate the current route from the alternatives presented.
- Parameters:
majorRoadLabels
- Important labels including names and route numbers that differentiate the current route from the alternatives presented.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
majorRoadLabels
Important labels including names and route numbers that differentiate the current route from the alternatives presented.
This is a convenience method that creates an instance of theRouteMajorRoadLabel.Builder
avoiding the need to create one manually viaRouteMajorRoadLabel.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomajorRoadLabels(List<RouteMajorRoadLabel>)
.- Parameters:
majorRoadLabels
- a consumer that will call methods onRouteMajorRoadLabel.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
summary
Summarized details of the leg.
- Parameters:
summary
- Summarized details of the leg.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
summary
Summarized details of the leg.
This is a convenience method that creates an instance of theRouteSummary.Builder
avoiding the need to create one manually viaRouteSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosummary(RouteSummary)
.- Parameters:
summary
- a consumer that will call methods onRouteSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-