Interface InstanceMarketOptionsRequest.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<InstanceMarketOptionsRequest.Builder,,InstanceMarketOptionsRequest> SdkBuilder<InstanceMarketOptionsRequest.Builder,,InstanceMarketOptionsRequest> SdkPojo
- Enclosing class:
InstanceMarketOptionsRequest
@Mutable
@NotThreadSafe
public static interface InstanceMarketOptionsRequest.Builder
extends SdkPojo, CopyableBuilder<InstanceMarketOptionsRequest.Builder,InstanceMarketOptionsRequest>
-
Method Summary
Modifier and TypeMethodDescriptionmarketType(String marketType) Specifies the type of marketplace for instance deployment.marketType(MarketTypeEnum marketType) Specifies the type of marketplace for instance deployment.spotOptions(Consumer<SpotMarketOptions.Builder> spotOptions) Configuration options for spot instance deployment.spotOptions(SpotMarketOptions spotOptions) Configuration options for spot instance deployment.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
-
marketType
Specifies the type of marketplace for instance deployment.
- Parameters:
marketType- Specifies the type of marketplace for instance deployment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
marketType
Specifies the type of marketplace for instance deployment.
- Parameters:
marketType- Specifies the type of marketplace for instance deployment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
spotOptions
Configuration options for spot instance deployment.
- Parameters:
spotOptions- Configuration options for spot instance deployment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spotOptions
default InstanceMarketOptionsRequest.Builder spotOptions(Consumer<SpotMarketOptions.Builder> spotOptions) Configuration options for spot instance deployment.
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:
-