Class AutoScalingInstanceDetails
- All Implemented Interfaces:
Serializable
,Cloneable
Describes an EC2 instance associated with an Auto Scaling group.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The name of the Auto Scaling group associated with the instance.The Availability Zone for the instance.The health status of this instance.The ID of the instance.The launch configuration associated with the instance.The lifecycle state for the instance.Indicates whether the instance is protected from termination by Auto Scaling when scaling in.int
hashCode()
Indicates whether the instance is protected from termination by Auto Scaling when scaling in.void
setAutoScalingGroupName
(String autoScalingGroupName) The name of the Auto Scaling group associated with the instance.void
setAvailabilityZone
(String availabilityZone) The Availability Zone for the instance.void
setHealthStatus
(String healthStatus) The health status of this instance.void
setInstanceId
(String instanceId) The ID of the instance.void
setLaunchConfigurationName
(String launchConfigurationName) The launch configuration associated with the instance.void
setLifecycleState
(String lifecycleState) The lifecycle state for the instance.void
setProtectedFromScaleIn
(Boolean protectedFromScaleIn) Indicates whether the instance is protected from termination by Auto Scaling when scaling in.toString()
Returns a string representation of this object; useful for testing and debugging.withAutoScalingGroupName
(String autoScalingGroupName) The name of the Auto Scaling group associated with the instance.withAvailabilityZone
(String availabilityZone) The Availability Zone for the instance.withHealthStatus
(String healthStatus) The health status of this instance.withInstanceId
(String instanceId) The ID of the instance.withLaunchConfigurationName
(String launchConfigurationName) The launch configuration associated with the instance.withLifecycleState
(String lifecycleState) The lifecycle state for the instance.withProtectedFromScaleIn
(Boolean protectedFromScaleIn) Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
-
Constructor Details
-
AutoScalingInstanceDetails
public AutoScalingInstanceDetails()
-
-
Method Details
-
setInstanceId
The ID of the instance.
- Parameters:
instanceId
- The ID of the instance.
-
getInstanceId
The ID of the instance.
- Returns:
- The ID of the instance.
-
withInstanceId
The ID of the instance.
- Parameters:
instanceId
- The ID of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAutoScalingGroupName
The name of the Auto Scaling group associated with the instance.
- Parameters:
autoScalingGroupName
- The name of the Auto Scaling group associated with the instance.
-
getAutoScalingGroupName
The name of the Auto Scaling group associated with the instance.
- Returns:
- The name of the Auto Scaling group associated with the instance.
-
withAutoScalingGroupName
The name of the Auto Scaling group associated with the instance.
- Parameters:
autoScalingGroupName
- The name of the Auto Scaling group associated with the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAvailabilityZone
The Availability Zone for the instance.
- Parameters:
availabilityZone
- The Availability Zone for the instance.
-
getAvailabilityZone
The Availability Zone for the instance.
- Returns:
- The Availability Zone for the instance.
-
withAvailabilityZone
The Availability Zone for the instance.
- Parameters:
availabilityZone
- The Availability Zone for the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLifecycleState
The lifecycle state for the instance. For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.
- Parameters:
lifecycleState
- The lifecycle state for the instance. For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.
-
getLifecycleState
The lifecycle state for the instance. For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.
- Returns:
- The lifecycle state for the instance. For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.
-
withLifecycleState
The lifecycle state for the instance. For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.
- Parameters:
lifecycleState
- The lifecycle state for the instance. For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHealthStatus
The 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 Auto Scaling should terminate and replace it.
- Parameters:
healthStatus
- The 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 Auto Scaling should terminate and replace it.
-
getHealthStatus
The 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 Auto Scaling should terminate and replace it.
- Returns:
- The 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 Auto Scaling should terminate and replace it.
-
withHealthStatus
The 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 Auto Scaling should terminate and replace it.
- Parameters:
healthStatus
- The 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 Auto Scaling should terminate and replace it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLaunchConfigurationName
The launch configuration associated with the instance.
- Parameters:
launchConfigurationName
- The launch configuration associated with the instance.
-
getLaunchConfigurationName
The launch configuration associated with the instance.
- Returns:
- The launch configuration associated with the instance.
-
withLaunchConfigurationName
The launch configuration associated with the instance.
- Parameters:
launchConfigurationName
- The launch configuration associated with the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setProtectedFromScaleIn
Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
- Parameters:
protectedFromScaleIn
- Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
-
getProtectedFromScaleIn
Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
- Returns:
- Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
-
withProtectedFromScaleIn
Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
- Parameters:
protectedFromScaleIn
- Indicates whether the instance is protected from termination by Auto Scaling when scaling in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isProtectedFromScaleIn
Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
- Returns:
- Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-