Interface Route.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Route.Builder,Route>,SdkBuilder<Route.Builder,Route>,SdkPojo
- Enclosing class:
- Route
public static interface Route.Builder extends SdkPojo, CopyableBuilder<Route.Builder,Route>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Route.Builderlegs(Collection<RouteLeg> legs)A leg is a section of a route from one waypoint to the next.Route.Builderlegs(Consumer<RouteLeg.Builder>... legs)A leg is a section of a route from one waypoint to the next.Route.Builderlegs(RouteLeg... legs)A leg is a section of a route from one waypoint to the next.Route.BuildermajorRoadLabels(Collection<RouteMajorRoadLabel> majorRoadLabels)Important labels including names and route numbers that differentiate the current route from the alternatives presented.Route.BuildermajorRoadLabels(Consumer<RouteMajorRoadLabel.Builder>... majorRoadLabels)Important labels including names and route numbers that differentiate the current route from the alternatives presented.Route.BuildermajorRoadLabels(RouteMajorRoadLabel... majorRoadLabels)Important labels including names and route numbers that differentiate the current route from the alternatives presented.default Route.Buildersummary(Consumer<RouteSummary.Builder> summary)Summarized details of the leg.Route.Buildersummary(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 Detail
-
legs
Route.Builder legs(Collection<RouteLeg> 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
Route.Builder legs(RouteLeg... 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
Route.Builder legs(Consumer<RouteLeg.Builder>... 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.Builderavoiding the need to create one manually viaRouteLeg.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#legs(List.) - 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:
#legs(java.util.Collection)
-
majorRoadLabels
Route.Builder majorRoadLabels(Collection<RouteMajorRoadLabel> 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
Route.Builder majorRoadLabels(RouteMajorRoadLabel... 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
Route.Builder majorRoadLabels(Consumer<RouteMajorRoadLabel.Builder>... 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.Builderavoiding the need to create one manually viaRouteMajorRoadLabel.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#majorRoadLabels(List.) - 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:
#majorRoadLabels(java.util.Collection)
-
summary
Route.Builder summary(RouteSummary 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
default Route.Builder summary(Consumer<RouteSummary.Builder> summary)
Summarized details of the leg.
This is a convenience method that creates an instance of theRouteSummary.Builderavoiding the need to create one manually viaRouteSummary.builder().When the
Consumercompletes,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:
summary(RouteSummary)
-
-