Interface RouteVehicleAfterTravelStep.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RouteVehicleAfterTravelStep.Builder,,RouteVehicleAfterTravelStep> SdkBuilder<RouteVehicleAfterTravelStep.Builder,,RouteVehicleAfterTravelStep> SdkPojo
- Enclosing class:
RouteVehicleAfterTravelStep
@Mutable
@NotThreadSafe
public static interface RouteVehicleAfterTravelStep.Builder
extends SdkPojo, CopyableBuilder<RouteVehicleAfterTravelStep.Builder,RouteVehicleAfterTravelStep>
-
Method Summary
Modifier and TypeMethodDescriptionchargeStepDetails(Consumer<RouteChargeStepDetails.Builder> chargeStepDetails) Details that are specific to a Charge step.chargeStepDetails(RouteChargeStepDetails chargeStepDetails) Details that are specific to a Charge step.Duration of the step.instruction(String instruction) Brief description of the step in the requested language.Type of the step.Type of the step.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
-
chargeStepDetails
Details that are specific to a Charge step.
Unit:
KwH- Parameters:
chargeStepDetails- Details that are specific to a Charge step.Unit:
KwH- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
chargeStepDetails
default RouteVehicleAfterTravelStep.Builder chargeStepDetails(Consumer<RouteChargeStepDetails.Builder> chargeStepDetails) Details that are specific to a Charge step.
Unit:
This is a convenience method that creates an instance of theKwHRouteChargeStepDetails.Builderavoiding the need to create one manually viaRouteChargeStepDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tochargeStepDetails(RouteChargeStepDetails).- Parameters:
chargeStepDetails- a consumer that will call methods onRouteChargeStepDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
duration
Duration of the step.
Unit:
seconds- Parameters:
duration- Duration of the step.Unit:
seconds- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instruction
Brief description of the step in the requested language.
Only available when the TravelStepType is Default.
- Parameters:
instruction- Brief description of the step in the requested language.Only available when the TravelStepType is Default.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
Type of the step.
- Parameters:
type- Type of the step.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
Type of the step.
- Parameters:
type- Type of the step.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-