Interface LaunchTemplateInstanceMarketOptions.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<LaunchTemplateInstanceMarketOptions.Builder,,LaunchTemplateInstanceMarketOptions> SdkBuilder<LaunchTemplateInstanceMarketOptions.Builder,,LaunchTemplateInstanceMarketOptions> SdkPojo
- Enclosing class:
LaunchTemplateInstanceMarketOptions
@Mutable
@NotThreadSafe
public static interface LaunchTemplateInstanceMarketOptions.Builder
extends SdkPojo, CopyableBuilder<LaunchTemplateInstanceMarketOptions.Builder,LaunchTemplateInstanceMarketOptions>
-
Method Summary
Modifier and TypeMethodDescriptionmarketType(String marketType) The market type.marketType(MarketType marketType) The market type.spotOptions(Consumer<LaunchTemplateSpotMarketOptions.Builder> spotOptions) The options for Spot Instances.spotOptions(LaunchTemplateSpotMarketOptions spotOptions) The options for Spot Instances.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
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
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:
-
spotOptions
LaunchTemplateInstanceMarketOptions.Builder spotOptions(LaunchTemplateSpotMarketOptions 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 LaunchTemplateInstanceMarketOptions.Builder spotOptions(Consumer<LaunchTemplateSpotMarketOptions.Builder> spotOptions) The options for Spot Instances.
This is a convenience method that creates an instance of theLaunchTemplateSpotMarketOptions.Builderavoiding the need to create one manually viaLaunchTemplateSpotMarketOptions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tospotOptions(LaunchTemplateSpotMarketOptions).- Parameters:
spotOptions- a consumer that will call methods onLaunchTemplateSpotMarketOptions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-