public static interface InstanceMarketOptionsRequest.Builder extends SdkPojo, CopyableBuilder<InstanceMarketOptionsRequest.Builder,InstanceMarketOptionsRequest>
Modifier and Type | Method and Description |
---|---|
InstanceMarketOptionsRequest.Builder |
marketType(MarketType marketType)
The market type.
|
InstanceMarketOptionsRequest.Builder |
marketType(String marketType)
The market type.
|
default InstanceMarketOptionsRequest.Builder |
spotOptions(Consumer<SpotMarketOptions.Builder> spotOptions)
The options for Spot Instances.
|
InstanceMarketOptionsRequest.Builder |
spotOptions(SpotMarketOptions spotOptions)
The options for Spot Instances.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
InstanceMarketOptionsRequest.Builder marketType(String marketType)
The market type.
marketType
- The market type.MarketType
,
MarketType
InstanceMarketOptionsRequest.Builder marketType(MarketType marketType)
The market type.
marketType
- The market type.MarketType
,
MarketType
InstanceMarketOptionsRequest.Builder spotOptions(SpotMarketOptions spotOptions)
The options for Spot Instances.
spotOptions
- The options for Spot Instances.default InstanceMarketOptionsRequest.Builder spotOptions(Consumer<SpotMarketOptions.Builder> spotOptions)
The options for Spot Instances.
This is a convenience method that creates an instance of theSpotMarketOptions.Builder
avoiding the
need to create one manually via SpotMarketOptions.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to spotOptions(SpotMarketOptions)
.spotOptions
- a consumer that will call methods on SpotMarketOptions.Builder
spotOptions(SpotMarketOptions)
Copyright © 2022. All rights reserved.