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