Interface LaunchInstancesRequest.Builder
- All Superinterfaces:
AutoScalingRequest.Builder,AwsRequest.Builder,Buildable,CopyableBuilder<LaunchInstancesRequest.Builder,,LaunchInstancesRequest> SdkBuilder<LaunchInstancesRequest.Builder,,LaunchInstancesRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
LaunchInstancesRequest
-
Method Summary
Modifier and TypeMethodDescriptionautoScalingGroupName(String autoScalingGroupName) The name of the Auto Scaling group to launch instances into.availabilityZoneIds(String... availabilityZoneIds) A list of Availability Zone IDs where instances should be launched.availabilityZoneIds(Collection<String> availabilityZoneIds) A list of Availability Zone IDs where instances should be launched.availabilityZones(String... availabilityZones) The Availability Zones for the instance launch.availabilityZones(Collection<String> availabilityZones) The Availability Zones for the instance launch.clientToken(String clientToken) A unique, case-sensitive identifier to ensure idempotency of the request.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.requestedCapacity(Integer requestedCapacity) The number of instances to launch.retryStrategy(String retryStrategy) Specifies whether to retry asynchronously if the synchronous launch fails.retryStrategy(RetryStrategy retryStrategy) Specifies whether to retry asynchronously if the synchronous launch fails.The subnet IDs for the instance launch.subnetIds(Collection<String> subnetIds) The subnet IDs for the instance launch.Methods inherited from interface software.amazon.awssdk.services.autoscaling.model.AutoScalingRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods 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
-
autoScalingGroupName
The name of the Auto Scaling group to launch instances into.
- Parameters:
autoScalingGroupName- The name of the Auto Scaling group to launch instances into.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requestedCapacity
The number of instances to launch. Although this value can exceed 100 for instance weights, the actual instance count is limited to 100 instances per launch.
- Parameters:
requestedCapacity- The number of instances to launch. Although this value can exceed 100 for instance weights, the actual instance count is limited to 100 instances per launch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
A unique, case-sensitive identifier to ensure idempotency of the request.
- Parameters:
clientToken- A unique, case-sensitive identifier to ensure idempotency of the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availabilityZones
The Availability Zones for the instance launch. Must match or be included in the Auto Scaling group's Availability Zone configuration. Either
AvailabilityZonesorSubnetIdsmust be specified for groups with multiple Availability Zone configurations.- Parameters:
availabilityZones- The Availability Zones for the instance launch. Must match or be included in the Auto Scaling group's Availability Zone configuration. EitherAvailabilityZonesorSubnetIdsmust be specified for groups with multiple Availability Zone configurations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availabilityZones
The Availability Zones for the instance launch. Must match or be included in the Auto Scaling group's Availability Zone configuration. Either
AvailabilityZonesorSubnetIdsmust be specified for groups with multiple Availability Zone configurations.- Parameters:
availabilityZones- The Availability Zones for the instance launch. Must match or be included in the Auto Scaling group's Availability Zone configuration. EitherAvailabilityZonesorSubnetIdsmust be specified for groups with multiple Availability Zone configurations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availabilityZoneIds
A list of Availability Zone IDs where instances should be launched. Must match or be included in the group's AZ configuration. You cannot specify both AvailabilityZones and AvailabilityZoneIds. Required for multi-AZ groups, optional for single-AZ groups.
- Parameters:
availabilityZoneIds- A list of Availability Zone IDs where instances should be launched. Must match or be included in the group's AZ configuration. You cannot specify both AvailabilityZones and AvailabilityZoneIds. Required for multi-AZ groups, optional for single-AZ groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availabilityZoneIds
A list of Availability Zone IDs where instances should be launched. Must match or be included in the group's AZ configuration. You cannot specify both AvailabilityZones and AvailabilityZoneIds. Required for multi-AZ groups, optional for single-AZ groups.
- Parameters:
availabilityZoneIds- A list of Availability Zone IDs where instances should be launched. Must match or be included in the group's AZ configuration. You cannot specify both AvailabilityZones and AvailabilityZoneIds. Required for multi-AZ groups, optional for single-AZ groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetIds
The subnet IDs for the instance launch. Either
AvailabilityZonesorSubnetIdsmust be specified. If both are specified, the subnets must reside in the specified Availability Zones.- Parameters:
subnetIds- The subnet IDs for the instance launch. EitherAvailabilityZonesorSubnetIdsmust be specified. If both are specified, the subnets must reside in the specified Availability Zones.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetIds
The subnet IDs for the instance launch. Either
AvailabilityZonesorSubnetIdsmust be specified. If both are specified, the subnets must reside in the specified Availability Zones.- Parameters:
subnetIds- The subnet IDs for the instance launch. EitherAvailabilityZonesorSubnetIdsmust be specified. If both are specified, the subnets must reside in the specified Availability Zones.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retryStrategy
Specifies whether to retry asynchronously if the synchronous launch fails. Valid values are NONE (default, no async retry) and RETRY_WITH_GROUP_CONFIGURATION (increase desired capacity and retry with group configuration).
- Parameters:
retryStrategy- Specifies whether to retry asynchronously if the synchronous launch fails. Valid values are NONE (default, no async retry) and RETRY_WITH_GROUP_CONFIGURATION (increase desired capacity and retry with group configuration).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
retryStrategy
Specifies whether to retry asynchronously if the synchronous launch fails. Valid values are NONE (default, no async retry) and RETRY_WITH_GROUP_CONFIGURATION (increase desired capacity and retry with group configuration).
- Parameters:
retryStrategy- Specifies whether to retry asynchronously if the synchronous launch fails. Valid values are NONE (default, no async retry) and RETRY_WITH_GROUP_CONFIGURATION (increase desired capacity and retry with group configuration).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
LaunchInstancesRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
LaunchInstancesRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-