Interface RouteLeg.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RouteLeg.Builder,RouteLeg>,SdkBuilder<RouteLeg.Builder,RouteLeg>,SdkPojo
- Enclosing class:
- RouteLeg
public static interface RouteLeg.Builder extends SdkPojo, CopyableBuilder<RouteLeg.Builder,RouteLeg>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default RouteLeg.BuilderferryLegDetails(Consumer<RouteFerryLegDetails.Builder> ferryLegDetails)FerryLegDetails is populated when the Leg type is Ferry, and provides additional information that is specificRouteLeg.BuilderferryLegDetails(RouteFerryLegDetails ferryLegDetails)FerryLegDetails is populated when the Leg type is Ferry, and provides additional information that is specificdefault RouteLeg.Buildergeometry(Consumer<RouteLegGeometry.Builder> geometry)Geometry of the area to be avoided.RouteLeg.Buildergeometry(RouteLegGeometry geometry)Geometry of the area to be avoided.RouteLeg.Builderlanguage(String language)List of languages for instructions within steps in the response.default RouteLeg.BuilderpedestrianLegDetails(Consumer<RoutePedestrianLegDetails.Builder> pedestrianLegDetails)Details related to the pedestrian leg.RouteLeg.BuilderpedestrianLegDetails(RoutePedestrianLegDetails pedestrianLegDetails)Details related to the pedestrian leg.RouteLeg.BuildertravelMode(String travelMode)Specifies the mode of transport when calculating a route.RouteLeg.BuildertravelMode(RouteLegTravelMode travelMode)Specifies the mode of transport when calculating a route.RouteLeg.Buildertype(String type)Type of the leg.RouteLeg.Buildertype(RouteLegType type)Type of the leg.default RouteLeg.BuildervehicleLegDetails(Consumer<RouteVehicleLegDetails.Builder> vehicleLegDetails)Details related to the vehicle leg.RouteLeg.BuildervehicleLegDetails(RouteVehicleLegDetails vehicleLegDetails)Details related to the vehicle 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
-
ferryLegDetails
RouteLeg.Builder ferryLegDetails(RouteFerryLegDetails ferryLegDetails)
FerryLegDetails is populated when the Leg type is Ferry, and provides additional information that is specific
- Parameters:
ferryLegDetails- FerryLegDetails is populated when the Leg type is Ferry, and provides additional information that is specific- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ferryLegDetails
default RouteLeg.Builder ferryLegDetails(Consumer<RouteFerryLegDetails.Builder> ferryLegDetails)
FerryLegDetails is populated when the Leg type is Ferry, and provides additional information that is specific
This is a convenience method that creates an instance of theRouteFerryLegDetails.Builderavoiding the need to create one manually viaRouteFerryLegDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toferryLegDetails(RouteFerryLegDetails).- Parameters:
ferryLegDetails- a consumer that will call methods onRouteFerryLegDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ferryLegDetails(RouteFerryLegDetails)
-
geometry
RouteLeg.Builder geometry(RouteLegGeometry geometry)
Geometry of the area to be avoided.
- Parameters:
geometry- Geometry of the area to be avoided.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
geometry
default RouteLeg.Builder geometry(Consumer<RouteLegGeometry.Builder> geometry)
Geometry of the area to be avoided.
This is a convenience method that creates an instance of theRouteLegGeometry.Builderavoiding the need to create one manually viaRouteLegGeometry.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed togeometry(RouteLegGeometry).- Parameters:
geometry- a consumer that will call methods onRouteLegGeometry.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
geometry(RouteLegGeometry)
-
language
RouteLeg.Builder language(String language)
List of languages for instructions within steps in the response.
- Parameters:
language- List of languages for instructions within steps in the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pedestrianLegDetails
RouteLeg.Builder pedestrianLegDetails(RoutePedestrianLegDetails pedestrianLegDetails)
Details related to the pedestrian leg.
- Parameters:
pedestrianLegDetails- Details related to the pedestrian leg.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pedestrianLegDetails
default RouteLeg.Builder pedestrianLegDetails(Consumer<RoutePedestrianLegDetails.Builder> pedestrianLegDetails)
Details related to the pedestrian leg.
This is a convenience method that creates an instance of theRoutePedestrianLegDetails.Builderavoiding the need to create one manually viaRoutePedestrianLegDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topedestrianLegDetails(RoutePedestrianLegDetails).- Parameters:
pedestrianLegDetails- a consumer that will call methods onRoutePedestrianLegDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
pedestrianLegDetails(RoutePedestrianLegDetails)
-
travelMode
RouteLeg.Builder travelMode(String travelMode)
Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility.
Default Value:
Car- Parameters:
travelMode- Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility.Default Value:
Car- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RouteLegTravelMode,RouteLegTravelMode
-
travelMode
RouteLeg.Builder travelMode(RouteLegTravelMode travelMode)
Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility.
Default Value:
Car- Parameters:
travelMode- Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility.Default Value:
Car- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RouteLegTravelMode,RouteLegTravelMode
-
type
RouteLeg.Builder type(String type)
Type of the leg.
- Parameters:
type- Type of the leg.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RouteLegType,RouteLegType
-
type
RouteLeg.Builder type(RouteLegType type)
Type of the leg.
- Parameters:
type- Type of the leg.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RouteLegType,RouteLegType
-
vehicleLegDetails
RouteLeg.Builder vehicleLegDetails(RouteVehicleLegDetails vehicleLegDetails)
Details related to the vehicle leg.
- Parameters:
vehicleLegDetails- Details related to the vehicle leg.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vehicleLegDetails
default RouteLeg.Builder vehicleLegDetails(Consumer<RouteVehicleLegDetails.Builder> vehicleLegDetails)
Details related to the vehicle leg.
This is a convenience method that creates an instance of theRouteVehicleLegDetails.Builderavoiding the need to create one manually viaRouteVehicleLegDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovehicleLegDetails(RouteVehicleLegDetails).- Parameters:
vehicleLegDetails- a consumer that will call methods onRouteVehicleLegDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
vehicleLegDetails(RouteVehicleLegDetails)
-
-