Interface InstanceMarketOptionsRequest.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<InstanceMarketOptionsRequest.Builder,InstanceMarketOptionsRequest>,SdkBuilder<InstanceMarketOptionsRequest.Builder,InstanceMarketOptionsRequest>,SdkPojo
- Enclosing class:
- InstanceMarketOptionsRequest
public static interface InstanceMarketOptionsRequest.Builder extends SdkPojo, CopyableBuilder<InstanceMarketOptionsRequest.Builder,InstanceMarketOptionsRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description InstanceMarketOptionsRequest.BuildermarketType(String marketType)The market type.InstanceMarketOptionsRequest.BuildermarketType(MarketType marketType)The market type.default InstanceMarketOptionsRequest.BuilderspotOptions(Consumer<SpotMarketOptions.Builder> spotOptions)The options for Spot Instances.InstanceMarketOptionsRequest.BuilderspotOptions(SpotMarketOptions spotOptions)The options for Spot Instances.-
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 Detail
-
marketType
InstanceMarketOptionsRequest.Builder marketType(String marketType)
The market type.
- Parameters:
marketType- The market type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MarketType,MarketType
-
marketType
InstanceMarketOptionsRequest.Builder marketType(MarketType marketType)
The market type.
- Parameters:
marketType- The market type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MarketType,MarketType
-
spotOptions
InstanceMarketOptionsRequest.Builder spotOptions(SpotMarketOptions spotOptions)
The options for Spot Instances.
- Parameters:
spotOptions- The options for Spot Instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spotOptions
default InstanceMarketOptionsRequest.Builder spotOptions(Consumer<SpotMarketOptions.Builder> spotOptions)
The options for Spot Instances.
This is a convenience method that creates an instance of theSpotMarketOptions.Builderavoiding the need to create one manually viaSpotMarketOptions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tospotOptions(SpotMarketOptions).- Parameters:
spotOptions- a consumer that will call methods onSpotMarketOptions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
spotOptions(SpotMarketOptions)
-
-