Interface RoadSnapTravelModeOptions.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RoadSnapTravelModeOptions.Builder,
,RoadSnapTravelModeOptions> SdkBuilder<RoadSnapTravelModeOptions.Builder,
,RoadSnapTravelModeOptions> SdkPojo
- Enclosing class:
RoadSnapTravelModeOptions
@Mutable
@NotThreadSafe
public static interface RoadSnapTravelModeOptions.Builder
extends SdkPojo, CopyableBuilder<RoadSnapTravelModeOptions.Builder,RoadSnapTravelModeOptions>
-
Method Summary
Modifier and TypeMethodDescriptionTravel mode options when the provided travel mode is "Truck".truck
(RoadSnapTruckOptions truck) Travel mode options when the provided travel mode is "Truck".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 Details
-
truck
Travel mode options when the provided travel mode is "Truck".
- Parameters:
truck
- Travel mode options when the provided travel mode is "Truck".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
truck
Travel mode options when the provided travel mode is "Truck".
This is a convenience method that creates an instance of theRoadSnapTruckOptions.Builder
avoiding the need to create one manually viaRoadSnapTruckOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totruck(RoadSnapTruckOptions)
.- Parameters:
truck
- a consumer that will call methods onRoadSnapTruckOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-