Interface DesiredConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<DesiredConfiguration.Builder,
,DesiredConfiguration> SdkBuilder<DesiredConfiguration.Builder,
,DesiredConfiguration> SdkPojo
- Enclosing class:
DesiredConfiguration
-
Method Summary
Modifier and TypeMethodDescriptiondefault DesiredConfiguration.Builder
launchTemplate
(Consumer<LaunchTemplateSpecification.Builder> launchTemplate) Describes the launch template and the version of the launch template that Amazon EC2 Auto Scaling uses to launch Amazon EC2 instances.launchTemplate
(LaunchTemplateSpecification launchTemplate) Describes the launch template and the version of the launch template that Amazon EC2 Auto Scaling uses to launch Amazon EC2 instances.default DesiredConfiguration.Builder
mixedInstancesPolicy
(Consumer<MixedInstancesPolicy.Builder> mixedInstancesPolicy) Use this structure to launch multiple instance types and On-Demand Instances and Spot Instances within a single Auto Scaling group.mixedInstancesPolicy
(MixedInstancesPolicy mixedInstancesPolicy) Use this structure to launch multiple instance types and On-Demand Instances and Spot Instances within a single Auto Scaling group.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 Details
-
launchTemplate
Describes the launch template and the version of the launch template that Amazon EC2 Auto Scaling uses to launch Amazon EC2 instances. For more information about launch templates, see Launch templates in the Amazon EC2 Auto Scaling User Guide.
- Parameters:
launchTemplate
- Describes the launch template and the version of the launch template that Amazon EC2 Auto Scaling uses to launch Amazon EC2 instances. For more information about launch templates, see Launch templates in the Amazon EC2 Auto Scaling User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchTemplate
default DesiredConfiguration.Builder launchTemplate(Consumer<LaunchTemplateSpecification.Builder> launchTemplate) Describes the launch template and the version of the launch template that Amazon EC2 Auto Scaling uses to launch Amazon EC2 instances. For more information about launch templates, see Launch templates in the Amazon EC2 Auto Scaling User Guide.
This is a convenience method that creates an instance of theLaunchTemplateSpecification.Builder
avoiding the need to create one manually viaLaunchTemplateSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolaunchTemplate(LaunchTemplateSpecification)
.- Parameters:
launchTemplate
- a consumer that will call methods onLaunchTemplateSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
mixedInstancesPolicy
Use this structure to launch multiple instance types and On-Demand Instances and Spot Instances within a single Auto Scaling group.
A mixed instances policy contains information that Amazon EC2 Auto Scaling can use to launch instances and help optimize your costs. For more information, see Auto Scaling groups with multiple instance types and purchase options in the Amazon EC2 Auto Scaling User Guide.
- Parameters:
mixedInstancesPolicy
- Use this structure to launch multiple instance types and On-Demand Instances and Spot Instances within a single Auto Scaling group.A mixed instances policy contains information that Amazon EC2 Auto Scaling can use to launch instances and help optimize your costs. For more information, see Auto Scaling groups with multiple instance types and purchase options in the Amazon EC2 Auto Scaling User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mixedInstancesPolicy
default DesiredConfiguration.Builder mixedInstancesPolicy(Consumer<MixedInstancesPolicy.Builder> mixedInstancesPolicy) Use this structure to launch multiple instance types and On-Demand Instances and Spot Instances within a single Auto Scaling group.
A mixed instances policy contains information that Amazon EC2 Auto Scaling can use to launch instances and help optimize your costs. For more information, see Auto Scaling groups with multiple instance types and purchase options in the Amazon EC2 Auto Scaling User Guide.
This is a convenience method that creates an instance of theMixedInstancesPolicy.Builder
avoiding the need to create one manually viaMixedInstancesPolicy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomixedInstancesPolicy(MixedInstancesPolicy)
.- Parameters:
mixedInstancesPolicy
- a consumer that will call methods onMixedInstancesPolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-