Interface RouteTransitLegDetails.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RouteTransitLegDetails.Builder,,RouteTransitLegDetails> SdkBuilder<RouteTransitLegDetails.Builder,,RouteTransitLegDetails> SdkPojo
- Enclosing class:
RouteTransitLegDetails
-
Method Summary
Modifier and TypeMethodDescriptionafterTravelSteps(Collection<RouteTransitAfterTravelStep> afterTravelSteps) Steps of a leg that must be performed after the travel portion of the leg.afterTravelSteps(Consumer<RouteTransitAfterTravelStep.Builder>... afterTravelSteps) Steps of a leg that must be performed after the travel portion of the leg.afterTravelSteps(RouteTransitAfterTravelStep... afterTravelSteps) Steps of a leg that must be performed after the travel portion of the leg.default RouteTransitLegDetails.Builderagency(Consumer<RouteTransitAgency.Builder> agency) Details about the transit agency.agency(RouteTransitAgency agency) Details about the transit agency.default RouteTransitLegDetails.Builderarrival(Consumer<RouteTransitArrival.Builder> arrival) Details corresponding to the arrival for the leg.arrival(RouteTransitArrival 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<RouteTransitBeforeTravelStep> beforeTravelSteps) Steps of a leg that must be performed before the travel portion of the leg.beforeTravelSteps(Consumer<RouteTransitBeforeTravelStep.Builder>... beforeTravelSteps) Steps of a leg that must be performed before the travel portion of the leg.beforeTravelSteps(RouteTransitBeforeTravelStep... 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 transit.bookingWebLinks(Consumer<RouteWebLink.Builder>... bookingWebLinks) Web links to external ticket booking services for the transit.bookingWebLinks(RouteWebLink... bookingWebLinks) Web links to external ticket booking services for the transit.default RouteTransitLegDetails.Builderdeparture(Consumer<RouteTransitDeparture.Builder> departure) Details corresponding to the departure for the leg.departure(RouteTransitDeparture departure) Details corresponding to the departure for the leg.incidents(Collection<RouteTransitIncident> incidents) Incidents affecting this leg of the transit route.incidents(Consumer<RouteTransitIncident.Builder>... incidents) Incidents affecting this leg of the transit route.incidents(RouteTransitIncident... incidents) Incidents affecting this leg of the transit route.intermediateStops(Collection<RouteTransitIntermediateStop> intermediateStops) Intermediate stops between departure and destination of the transit route.intermediateStops(Consumer<RouteTransitIntermediateStop.Builder>... intermediateStops) Intermediate stops between departure and destination of the transit route.intermediateStops(RouteTransitIntermediateStop... intermediateStops) Intermediate stops between departure and destination of the transit route.nextDepartures(Collection<RouteTransitNextDeparture> nextDepartures) List of next departures that cover the same section of the route.nextDepartures(Consumer<RouteTransitNextDeparture.Builder>... nextDepartures) List of next departures that cover the same section of the route.nextDepartures(RouteTransitNextDeparture... nextDepartures) List of next departures that cover the same section of the route.notices(Collection<RouteTransitNotice> notices) List of notices that indicate issues that occurred during route calculation.notices(Consumer<RouteTransitNotice.Builder>... notices) List of notices that indicate issues that occurred during route calculation.notices(RouteTransitNotice... notices) List of notices that indicate issues that occurred during route calculation.passThroughWaypoints(Collection<RoutePassThroughWaypoint> passThroughWaypoints) Waypoints that were passed through during the leg.passThroughWaypoints(Consumer<RoutePassThroughWaypoint.Builder>... passThroughWaypoints) Waypoints that were passed through during the leg.passThroughWaypoints(RoutePassThroughWaypoint... passThroughWaypoints) Waypoints that were passed through during the leg.spans(Collection<RouteTransitSpan> spans) Spans that were computed for the requested SpanAdditionalFeatures.spans(Consumer<RouteTransitSpan.Builder>... spans) Spans that were computed for the requested SpanAdditionalFeatures.spans(RouteTransitSpan... spans) Spans that were computed for the requested SpanAdditionalFeatures.default RouteTransitLegDetails.Buildersummary(Consumer<RouteTransitSummary.Builder> summary) Summary of the transit leg.summary(RouteTransitSummary summary) Summary of the transit leg.default RouteTransitLegDetails.BuilderTransport mode details for the transit leg.transport(RouteTransitTransportModeDetails transport) Transport mode details for the transit leg.travelSteps(Collection<RouteTransitTravelStep> travelSteps) Steps of a leg that must be performed during the travel portion of the leg.travelSteps(Consumer<RouteTransitTravelStep.Builder>... travelSteps) Steps of a leg that must be performed during the travel portion of the leg.travelSteps(RouteTransitTravelStep... 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
RouteTransitLegDetails.Builder afterTravelSteps(Collection<RouteTransitAfterTravelStep> 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
RouteTransitLegDetails.Builder afterTravelSteps(Consumer<RouteTransitAfterTravelStep.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 theRouteTransitAfterTravelStep.Builderavoiding the need to create one manually viaRouteTransitAfterTravelStep.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toafterTravelSteps(List<RouteTransitAfterTravelStep>).- Parameters:
afterTravelSteps- a consumer that will call methods onRouteTransitAfterTravelStep.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
agency
Details about the transit agency.
- Parameters:
agency- Details about the transit agency.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agency
Details about the transit agency.
This is a convenience method that creates an instance of theRouteTransitAgency.Builderavoiding the need to create one manually viaRouteTransitAgency.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toagency(RouteTransitAgency).- Parameters:
agency- a consumer that will call methods onRouteTransitAgency.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 theRouteTransitArrival.Builderavoiding the need to create one manually viaRouteTransitArrival.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toarrival(RouteTransitArrival).- Parameters:
arrival- a consumer that will call methods onRouteTransitArrival.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
RouteTransitLegDetails.Builder beforeTravelSteps(Collection<RouteTransitBeforeTravelStep> 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
RouteTransitLegDetails.Builder beforeTravelSteps(Consumer<RouteTransitBeforeTravelStep.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 theRouteTransitBeforeTravelStep.Builderavoiding the need to create one manually viaRouteTransitBeforeTravelStep.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobeforeTravelSteps(List<RouteTransitBeforeTravelStep>).- Parameters:
beforeTravelSteps- a consumer that will call methods onRouteTransitBeforeTravelStep.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 transit.
- Parameters:
bookingWebLinks- Web links to external ticket booking services for the transit.- 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 transit.
- Parameters:
bookingWebLinks- Web links to external ticket booking services for the transit.- 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 transit.
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 theRouteTransitDeparture.Builderavoiding the need to create one manually viaRouteTransitDeparture.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todeparture(RouteTransitDeparture).- Parameters:
departure- a consumer that will call methods onRouteTransitDeparture.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
incidents
Incidents affecting this leg of the transit route.
- Parameters:
incidents- Incidents affecting this leg of the transit route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
incidents
Incidents affecting this leg of the transit route.
- Parameters:
incidents- Incidents affecting this leg of the transit route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
incidents
Incidents affecting this leg of the transit route.
This is a convenience method that creates an instance of theRouteTransitIncident.Builderavoiding the need to create one manually viaRouteTransitIncident.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toincidents(List<RouteTransitIncident>).- Parameters:
incidents- a consumer that will call methods onRouteTransitIncident.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
intermediateStops
RouteTransitLegDetails.Builder intermediateStops(Collection<RouteTransitIntermediateStop> intermediateStops) Intermediate stops between departure and destination of the transit route.
- Parameters:
intermediateStops- Intermediate stops between departure and destination of the transit route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
intermediateStops
Intermediate stops between departure and destination of the transit route.
- Parameters:
intermediateStops- Intermediate stops between departure and destination of the transit route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
intermediateStops
RouteTransitLegDetails.Builder intermediateStops(Consumer<RouteTransitIntermediateStop.Builder>... intermediateStops) Intermediate stops between departure and destination of the transit route.
This is a convenience method that creates an instance of theRouteTransitIntermediateStop.Builderavoiding the need to create one manually viaRouteTransitIntermediateStop.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tointermediateStops(List<RouteTransitIntermediateStop>).- Parameters:
intermediateStops- a consumer that will call methods onRouteTransitIntermediateStop.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextDepartures
List of next departures that cover the same section of the route.
- Parameters:
nextDepartures- List of next departures that cover the same section of the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextDepartures
List of next departures that cover the same section of the route.
- Parameters:
nextDepartures- List of next departures that cover the same section of the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextDepartures
RouteTransitLegDetails.Builder nextDepartures(Consumer<RouteTransitNextDeparture.Builder>... nextDepartures) List of next departures that cover the same section of the route.
This is a convenience method that creates an instance of theRouteTransitNextDeparture.Builderavoiding the need to create one manually viaRouteTransitNextDeparture.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonextDepartures(List<RouteTransitNextDeparture>).- Parameters:
nextDepartures- a consumer that will call methods onRouteTransitNextDeparture.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
notices
List of notices that indicate issues that occurred during route calculation.
- Parameters:
notices- List of notices that indicate issues that occurred during route calculation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notices
List of notices that indicate issues that occurred during route calculation.
- Parameters:
notices- List of notices that indicate issues that occurred during route calculation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notices
List of notices that indicate issues that occurred during route calculation.
This is a convenience method that creates an instance of theRouteTransitNotice.Builderavoiding the need to create one manually viaRouteTransitNotice.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonotices(List<RouteTransitNotice>).- Parameters:
notices- a consumer that will call methods onRouteTransitNotice.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
passThroughWaypoints
RouteTransitLegDetails.Builder passThroughWaypoints(Collection<RoutePassThroughWaypoint> passThroughWaypoints) Waypoints that were passed through during the leg. This includes the waypoints that were configured with the PassThrough option. Not populated when the TravelMode is
TransitorIntermodal.- Parameters:
passThroughWaypoints- Waypoints that were passed through during the leg. This includes the waypoints that were configured with the PassThrough option. Not populated when the TravelMode isTransitorIntermodal.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
passThroughWaypoints
RouteTransitLegDetails.Builder passThroughWaypoints(RoutePassThroughWaypoint... passThroughWaypoints) Waypoints that were passed through during the leg. This includes the waypoints that were configured with the PassThrough option. Not populated when the TravelMode is
TransitorIntermodal.- Parameters:
passThroughWaypoints- Waypoints that were passed through during the leg. This includes the waypoints that were configured with the PassThrough option. Not populated when the TravelMode isTransitorIntermodal.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
passThroughWaypoints
RouteTransitLegDetails.Builder passThroughWaypoints(Consumer<RoutePassThroughWaypoint.Builder>... passThroughWaypoints) Waypoints that were passed through during the leg. This includes the waypoints that were configured with the PassThrough option. Not populated when the TravelMode is
This is a convenience method that creates an instance of theTransitorIntermodal.RoutePassThroughWaypoint.Builderavoiding the need to create one manually viaRoutePassThroughWaypoint.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topassThroughWaypoints(List<RoutePassThroughWaypoint>).- Parameters:
passThroughWaypoints- a consumer that will call methods onRoutePassThroughWaypoint.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
spans
Spans that were computed for the requested SpanAdditionalFeatures. Not populated when the TravelMode is
TransitorIntermodal.- Parameters:
spans- Spans that were computed for the requested SpanAdditionalFeatures. Not populated when the TravelMode isTransitorIntermodal.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spans
Spans that were computed for the requested SpanAdditionalFeatures. Not populated when the TravelMode is
TransitorIntermodal.- Parameters:
spans- Spans that were computed for the requested SpanAdditionalFeatures. Not populated when the TravelMode isTransitorIntermodal.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spans
Spans that were computed for the requested SpanAdditionalFeatures. Not populated when the TravelMode is
This is a convenience method that creates an instance of theTransitorIntermodal.RouteTransitSpan.Builderavoiding the need to create one manually viaRouteTransitSpan.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tospans(List<RouteTransitSpan>).- Parameters:
spans- a consumer that will call methods onRouteTransitSpan.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
summary
Summary of the transit leg.
- Parameters:
summary- Summary of the transit leg.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
summary
Summary of the transit leg.
This is a convenience method that creates an instance of theRouteTransitSummary.Builderavoiding the need to create one manually viaRouteTransitSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosummary(RouteTransitSummary).- Parameters:
summary- a consumer that will call methods onRouteTransitSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
transport
Transport mode details for the transit leg.
- Parameters:
transport- Transport mode details for the transit leg.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
transport
default RouteTransitLegDetails.Builder transport(Consumer<RouteTransitTransportModeDetails.Builder> transport) Transport mode details for the transit leg.
This is a convenience method that creates an instance of theRouteTransitTransportModeDetails.Builderavoiding the need to create one manually viaRouteTransitTransportModeDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totransport(RouteTransitTransportModeDetails).- Parameters:
transport- a consumer that will call methods onRouteTransitTransportModeDetails.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 theRouteTransitTravelStep.Builderavoiding the need to create one manually viaRouteTransitTravelStep.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totravelSteps(List<RouteTransitTravelStep>).- Parameters:
travelSteps- a consumer that will call methods onRouteTransitTravelStep.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-