public static interface AutoScalingInstanceDetails.Builder extends SdkPojo, CopyableBuilder<AutoScalingInstanceDetails.Builder,AutoScalingInstanceDetails>
| Modifier and Type | Method and Description |
|---|---|
AutoScalingInstanceDetails.Builder |
autoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group for the instance.
|
AutoScalingInstanceDetails.Builder |
availabilityZone(String availabilityZone)
The Availability Zone for the instance.
|
AutoScalingInstanceDetails.Builder |
healthStatus(String healthStatus)
The last reported health status of this instance.
|
AutoScalingInstanceDetails.Builder |
instanceId(String instanceId)
The ID of the instance.
|
AutoScalingInstanceDetails.Builder |
instanceType(String instanceType)
The instance type of the EC2 instance.
|
AutoScalingInstanceDetails.Builder |
launchConfigurationName(String launchConfigurationName)
The launch configuration used to launch the instance.
|
default AutoScalingInstanceDetails.Builder |
launchTemplate(Consumer<LaunchTemplateSpecification.Builder> launchTemplate)
The launch template for the instance.
|
AutoScalingInstanceDetails.Builder |
launchTemplate(LaunchTemplateSpecification launchTemplate)
The launch template for the instance.
|
AutoScalingInstanceDetails.Builder |
lifecycleState(String lifecycleState)
The lifecycle state for the instance.
|
AutoScalingInstanceDetails.Builder |
protectedFromScaleIn(Boolean protectedFromScaleIn)
Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.
|
AutoScalingInstanceDetails.Builder |
weightedCapacity(String weightedCapacity)
The number of capacity units contributed by the instance based on its instance type.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildAutoScalingInstanceDetails.Builder instanceId(String instanceId)
The ID of the instance.
instanceId - The ID of the instance.AutoScalingInstanceDetails.Builder instanceType(String instanceType)
The instance type of the EC2 instance.
instanceType - The instance type of the EC2 instance.AutoScalingInstanceDetails.Builder autoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group for the instance.
autoScalingGroupName - The name of the Auto Scaling group for the instance.AutoScalingInstanceDetails.Builder availabilityZone(String availabilityZone)
The Availability Zone for the instance.
availabilityZone - The Availability Zone for the instance.AutoScalingInstanceDetails.Builder lifecycleState(String lifecycleState)
The lifecycle state for the instance. The Quarantined state is not used. For information about
lifecycle states, see Instance
lifecycle in the Amazon EC2 Auto Scaling User Guide.
Valid values: Pending | Pending:Wait | Pending:Proceed |
Quarantined | InService | Terminating | Terminating:Wait
| Terminating:Proceed | Terminated | Detaching | Detached
| EnteringStandby | Standby | Warmed:Pending |
Warmed:Pending:Wait | Warmed:Pending:Proceed | Warmed:Terminating |
Warmed:Terminating:Wait | Warmed:Terminating:Proceed |
Warmed:Terminated | Warmed:Stopped | Warmed:Running
lifecycleState - The lifecycle state for the instance. The Quarantined state is not used. For information
about lifecycle states, see Instance
lifecycle in the Amazon EC2 Auto Scaling User Guide.
Valid values: Pending | Pending:Wait | Pending:Proceed |
Quarantined | InService | Terminating |
Terminating:Wait | Terminating:Proceed | Terminated |
Detaching | Detached | EnteringStandby | Standby |
Warmed:Pending | Warmed:Pending:Wait | Warmed:Pending:Proceed |
Warmed:Terminating | Warmed:Terminating:Wait |
Warmed:Terminating:Proceed | Warmed:Terminated | Warmed:Stopped
| Warmed:Running
AutoScalingInstanceDetails.Builder healthStatus(String healthStatus)
The last reported health status of this instance. Healthy means that the instance is healthy and
should remain in service. Unhealthy means that the instance is unhealthy and Amazon EC2 Auto
Scaling should terminate and replace it.
healthStatus - The last reported health status of this instance. Healthy means that the instance is
healthy and should remain in service. Unhealthy means that the instance is unhealthy and
Amazon EC2 Auto Scaling should terminate and replace it.AutoScalingInstanceDetails.Builder launchConfigurationName(String launchConfigurationName)
The launch configuration used to launch the instance. This value is not available if you attached the instance to the Auto Scaling group.
launchConfigurationName - The launch configuration used to launch the instance. This value is not available if you attached the
instance to the Auto Scaling group.AutoScalingInstanceDetails.Builder launchTemplate(LaunchTemplateSpecification launchTemplate)
The launch template for the instance.
launchTemplate - The launch template for the instance.default AutoScalingInstanceDetails.Builder launchTemplate(Consumer<LaunchTemplateSpecification.Builder> launchTemplate)
The launch template for the instance.
This is a convenience method that creates an instance of theLaunchTemplateSpecification.Builder
avoiding the need to create one manually via LaunchTemplateSpecification.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to launchTemplate(LaunchTemplateSpecification).
launchTemplate - a consumer that will call methods on LaunchTemplateSpecification.BuilderlaunchTemplate(LaunchTemplateSpecification)AutoScalingInstanceDetails.Builder protectedFromScaleIn(Boolean protectedFromScaleIn)
Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.
protectedFromScaleIn - Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling
in.AutoScalingInstanceDetails.Builder weightedCapacity(String weightedCapacity)
The number of capacity units contributed by the instance based on its instance type.
Valid Range: Minimum value of 1. Maximum value of 999.
weightedCapacity - The number of capacity units contributed by the instance based on its instance type.
Valid Range: Minimum value of 1. Maximum value of 999.
Copyright © 2023. All rights reserved.