Interface RouteTransitNextDeparture.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RouteTransitNextDeparture.Builder,,RouteTransitNextDeparture> SdkBuilder<RouteTransitNextDeparture.Builder,,RouteTransitNextDeparture> SdkPojo
- Enclosing class:
RouteTransitNextDeparture
@Mutable
@NotThreadSafe
public static interface RouteTransitNextDeparture.Builder
extends SdkPojo, CopyableBuilder<RouteTransitNextDeparture.Builder,RouteTransitNextDeparture>
-
Method Summary
Modifier and TypeMethodDescriptionThe delay from the scheduled departure time.platformName(String platformName) Platform name or number for the departure.The status of the departure.status(RouteTransitTripStatus status) The status of the departure.The departure time.Transport mode details for this departure.transport(RouteTransitTransportModeDetails transport) Transport mode details for this departure.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
-
delay
The delay from the scheduled departure time.
Unit:
seconds- Parameters:
delay- The delay from the scheduled departure time.Unit:
seconds- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
platformName
Platform name or number for the departure.
- Parameters:
platformName- Platform name or number for the departure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The status of the departure.
- Parameters:
status- The status of the departure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the departure.
- Parameters:
status- The status of the departure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
time
The departure time.
- Parameters:
time- The departure time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
transport
Transport mode details for this departure.
- Parameters:
transport- Transport mode details for this departure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
transport
default RouteTransitNextDeparture.Builder transport(Consumer<RouteTransitTransportModeDetails.Builder> transport) Transport mode details for this departure.
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:
-