Interface RouteRentalLegDetails.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RouteRentalLegDetails.Builder,,RouteRentalLegDetails> SdkBuilder<RouteRentalLegDetails.Builder,,RouteRentalLegDetails> SdkPojo
- Enclosing class:
RouteRentalLegDetails
-
Method Summary
Modifier and TypeMethodDescriptionafterTravelSteps(Collection<RouteRentalAfterTravelStep> afterTravelSteps) Steps of a leg that must be performed after the travel portion of the leg.afterTravelSteps(Consumer<RouteRentalAfterTravelStep.Builder>... afterTravelSteps) Steps of a leg that must be performed after the travel portion of the leg.afterTravelSteps(RouteRentalAfterTravelStep... afterTravelSteps) Steps of a leg that must be performed after the travel portion of the leg.default RouteRentalLegDetails.Builderagency(Consumer<RouteRentalAgency.Builder> agency) Details about the rental agency.agency(RouteRentalAgency agency) Details about the rental agency.default RouteRentalLegDetails.Builderarrival(Consumer<RouteRentalArrival.Builder> arrival) Details corresponding to the arrival for the leg.arrival(RouteRentalArrival arrival) Details corresponding to the arrival for the leg.attributions(Collection<RouteAttribution> attributions) List of required attributions to display.attributions(Consumer<RouteAttribution.Builder>... attributions) List of required attributions to display.attributions(RouteAttribution... attributions) List of required attributions to display.beforeTravelSteps(Collection<RouteRentalBeforeTravelStep> beforeTravelSteps) Steps of a leg that must be performed before the travel portion of the leg.beforeTravelSteps(Consumer<RouteRentalBeforeTravelStep.Builder>... beforeTravelSteps) Steps of a leg that must be performed before the travel portion of the leg.beforeTravelSteps(RouteRentalBeforeTravelStep... beforeTravelSteps) Steps of a leg that must be performed before the travel portion of the leg.bookingWebLinks(Collection<RouteWebLink> bookingWebLinks) Web links to external ticket booking services for the rental.bookingWebLinks(Consumer<RouteWebLink.Builder>... bookingWebLinks) Web links to external ticket booking services for the rental.bookingWebLinks(RouteWebLink... bookingWebLinks) Web links to external ticket booking services for the rental.default RouteRentalLegDetails.Builderdeparture(Consumer<RouteRentalDeparture.Builder> departure) Details corresponding to the departure for the leg.departure(RouteRentalDeparture departure) Details corresponding to the departure for the leg.default RouteRentalLegDetails.Buildersummary(Consumer<RouteRentalSummary.Builder> summary) Summary of the rental leg.summary(RouteRentalSummary summary) Summary of the rental leg.default RouteRentalLegDetails.Buildertransport(Consumer<RouteRentalTransportModeDetails.Builder> transport) Transport mode details for the rental leg.transport(RouteRentalTransportModeDetails transport) Transport mode details for the rental leg.travelSteps(Collection<RouteRentalTravelStep> travelSteps) Steps of a leg that must be performed during the travel portion of the leg.travelSteps(Consumer<RouteRentalTravelStep.Builder>... travelSteps) Steps of a leg that must be performed during the travel portion of the leg.travelSteps(RouteRentalTravelStep... travelSteps) Steps of a leg that must be performed during the travel portion of the leg.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
afterTravelSteps
RouteRentalLegDetails.Builder afterTravelSteps(Collection<RouteRentalAfterTravelStep> afterTravelSteps) Steps of a leg that must be performed after the travel portion of the leg.
- Parameters:
afterTravelSteps- Steps of a leg that must be performed after the travel portion of the leg.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
afterTravelSteps
Steps of a leg that must be performed after the travel portion of the leg.
- Parameters:
afterTravelSteps- Steps of a leg that must be performed after the travel portion of the leg.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
afterTravelSteps
RouteRentalLegDetails.Builder afterTravelSteps(Consumer<RouteRentalAfterTravelStep.Builder>... afterTravelSteps) Steps of a leg that must be performed after the travel portion of the leg.
This is a convenience method that creates an instance of theRouteRentalAfterTravelStep.Builderavoiding the need to create one manually viaRouteRentalAfterTravelStep.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toafterTravelSteps(List<RouteRentalAfterTravelStep>).- Parameters:
afterTravelSteps- a consumer that will call methods onRouteRentalAfterTravelStep.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
agency
Details about the rental agency.
- Parameters:
agency- Details about the rental agency.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agency
Details about the rental agency.
This is a convenience method that creates an instance of theRouteRentalAgency.Builderavoiding the need to create one manually viaRouteRentalAgency.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toagency(RouteRentalAgency).- Parameters:
agency- a consumer that will call methods onRouteRentalAgency.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
arrival
Details corresponding to the arrival for the leg.
- Parameters:
arrival- Details corresponding to the arrival for the leg.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arrival
Details corresponding to the arrival for the leg.
This is a convenience method that creates an instance of theRouteRentalArrival.Builderavoiding the need to create one manually viaRouteRentalArrival.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toarrival(RouteRentalArrival).- Parameters:
arrival- a consumer that will call methods onRouteRentalArrival.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
attributions
List of required attributions to display.
- Parameters:
attributions- List of required attributions to display.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributions
List of required attributions to display.
- Parameters:
attributions- List of required attributions to display.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributions
List of required attributions to display.
This is a convenience method that creates an instance of theRouteAttribution.Builderavoiding the need to create one manually viaRouteAttribution.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toattributions(List<RouteAttribution>).- Parameters:
attributions- a consumer that will call methods onRouteAttribution.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
beforeTravelSteps
RouteRentalLegDetails.Builder beforeTravelSteps(Collection<RouteRentalBeforeTravelStep> beforeTravelSteps) Steps of a leg that must be performed before the travel portion of the leg.
- Parameters:
beforeTravelSteps- Steps of a leg that must be performed before the travel portion of the leg.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
beforeTravelSteps
Steps of a leg that must be performed before the travel portion of the leg.
- Parameters:
beforeTravelSteps- Steps of a leg that must be performed before the travel portion of the leg.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
beforeTravelSteps
RouteRentalLegDetails.Builder beforeTravelSteps(Consumer<RouteRentalBeforeTravelStep.Builder>... beforeTravelSteps) Steps of a leg that must be performed before the travel portion of the leg.
This is a convenience method that creates an instance of theRouteRentalBeforeTravelStep.Builderavoiding the need to create one manually viaRouteRentalBeforeTravelStep.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobeforeTravelSteps(List<RouteRentalBeforeTravelStep>).- Parameters:
beforeTravelSteps- a consumer that will call methods onRouteRentalBeforeTravelStep.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
bookingWebLinks
Web links to external ticket booking services for the rental.
- Parameters:
bookingWebLinks- Web links to external ticket booking services for the rental.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bookingWebLinks
Web links to external ticket booking services for the rental.
- Parameters:
bookingWebLinks- Web links to external ticket booking services for the rental.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bookingWebLinks
Web links to external ticket booking services for the rental.
This is a convenience method that creates an instance of theRouteWebLink.Builderavoiding the need to create one manually viaRouteWebLink.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobookingWebLinks(List<RouteWebLink>).- Parameters:
bookingWebLinks- a consumer that will call methods onRouteWebLink.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
departure
Details corresponding to the departure for the leg.
- Parameters:
departure- Details corresponding to the departure for the leg.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
departure
Details corresponding to the departure for the leg.
This is a convenience method that creates an instance of theRouteRentalDeparture.Builderavoiding the need to create one manually viaRouteRentalDeparture.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todeparture(RouteRentalDeparture).- Parameters:
departure- a consumer that will call methods onRouteRentalDeparture.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
summary
Summary of the rental leg.
- Parameters:
summary- Summary of the rental leg.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
summary
Summary of the rental leg.
This is a convenience method that creates an instance of theRouteRentalSummary.Builderavoiding the need to create one manually viaRouteRentalSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosummary(RouteRentalSummary).- Parameters:
summary- a consumer that will call methods onRouteRentalSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
transport
Transport mode details for the rental leg.
- Parameters:
transport- Transport mode details for the rental leg.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
transport
default RouteRentalLegDetails.Builder transport(Consumer<RouteRentalTransportModeDetails.Builder> transport) Transport mode details for the rental leg.
This is a convenience method that creates an instance of theRouteRentalTransportModeDetails.Builderavoiding the need to create one manually viaRouteRentalTransportModeDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totransport(RouteRentalTransportModeDetails).- Parameters:
transport- a consumer that will call methods onRouteRentalTransportModeDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
travelSteps
Steps of a leg that must be performed during the travel portion of the leg.
- Parameters:
travelSteps- Steps of a leg that must be performed during the travel portion of the leg.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
travelSteps
Steps of a leg that must be performed during the travel portion of the leg.
- Parameters:
travelSteps- Steps of a leg that must be performed during the travel portion of the leg.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
travelSteps
Steps of a leg that must be performed during the travel portion of the leg.
This is a convenience method that creates an instance of theRouteRentalTravelStep.Builderavoiding the need to create one manually viaRouteRentalTravelStep.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totravelSteps(List<RouteRentalTravelStep>).- Parameters:
travelSteps- a consumer that will call methods onRouteRentalTravelStep.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-