Class AutoScalingInstanceDetails
- java.lang.Object
-
- com.amazonaws.services.autoscaling.model.AutoScalingInstanceDetails
-
- All Implemented Interfaces:
Serializable,Cloneable
public class AutoScalingInstanceDetails extends Object implements Serializable, Cloneable
Describes an EC2 instance associated with an Auto Scaling group.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AutoScalingInstanceDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AutoScalingInstanceDetailsclone()booleanequals(Object obj)StringgetAutoScalingGroupName()The name of the Auto Scaling group associated with the instance.StringgetAvailabilityZone()The Availability Zone for the instance.StringgetHealthStatus()The health status of this instance.StringgetInstanceId()The ID of the instance.StringgetLaunchConfigurationName()The launch configuration associated with the instance.StringgetLifecycleState()The lifecycle state for the instance.BooleangetProtectedFromScaleIn()Indicates whether the instance is protected from termination by Auto Scaling when scaling in.inthashCode()BooleanisProtectedFromScaleIn()Indicates whether the instance is protected from termination by Auto Scaling when scaling in.voidsetAutoScalingGroupName(String autoScalingGroupName)The name of the Auto Scaling group associated with the instance.voidsetAvailabilityZone(String availabilityZone)The Availability Zone for the instance.voidsetHealthStatus(String healthStatus)The health status of this instance.voidsetInstanceId(String instanceId)The ID of the instance.voidsetLaunchConfigurationName(String launchConfigurationName)The launch configuration associated with the instance.voidsetLifecycleState(String lifecycleState)The lifecycle state for the instance.voidsetProtectedFromScaleIn(Boolean protectedFromScaleIn)Indicates whether the instance is protected from termination by Auto Scaling when scaling in.StringtoString()Returns a string representation of this object; useful for testing and debugging.AutoScalingInstanceDetailswithAutoScalingGroupName(String autoScalingGroupName)The name of the Auto Scaling group associated with the instance.AutoScalingInstanceDetailswithAvailabilityZone(String availabilityZone)The Availability Zone for the instance.AutoScalingInstanceDetailswithHealthStatus(String healthStatus)The health status of this instance.AutoScalingInstanceDetailswithInstanceId(String instanceId)The ID of the instance.AutoScalingInstanceDetailswithLaunchConfigurationName(String launchConfigurationName)The launch configuration associated with the instance.AutoScalingInstanceDetailswithLifecycleState(String lifecycleState)The lifecycle state for the instance.AutoScalingInstanceDetailswithProtectedFromScaleIn(Boolean protectedFromScaleIn)Indicates whether the instance is protected from termination by Auto Scaling when scaling in.
-
-
-
Method Detail
-
setInstanceId
public void setInstanceId(String instanceId)
The ID of the instance.
- Parameters:
instanceId- The ID of the instance.
-
getInstanceId
public String getInstanceId()
The ID of the instance.
- Returns:
- The ID of the instance.
-
withInstanceId
public AutoScalingInstanceDetails withInstanceId(String instanceId)
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
public void setAutoScalingGroupName(String autoScalingGroupName)
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
public String 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
public AutoScalingInstanceDetails withAutoScalingGroupName(String autoScalingGroupName)
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
public void setAvailabilityZone(String availabilityZone)
The Availability Zone for the instance.
- Parameters:
availabilityZone- The Availability Zone for the instance.
-
getAvailabilityZone
public String getAvailabilityZone()
The Availability Zone for the instance.
- Returns:
- The Availability Zone for the instance.
-
withAvailabilityZone
public AutoScalingInstanceDetails withAvailabilityZone(String availabilityZone)
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
public void setLifecycleState(String lifecycleState)
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
public String 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
public AutoScalingInstanceDetails withLifecycleState(String lifecycleState)
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
public void setHealthStatus(String 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.
- 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
public String 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
public AutoScalingInstanceDetails withHealthStatus(String 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.
- 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
public void setLaunchConfigurationName(String launchConfigurationName)
The launch configuration associated with the instance.
- Parameters:
launchConfigurationName- The launch configuration associated with the instance.
-
getLaunchConfigurationName
public String getLaunchConfigurationName()
The launch configuration associated with the instance.
- Returns:
- The launch configuration associated with the instance.
-
withLaunchConfigurationName
public AutoScalingInstanceDetails withLaunchConfigurationName(String launchConfigurationName)
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
public void setProtectedFromScaleIn(Boolean protectedFromScaleIn)
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
public Boolean 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
public AutoScalingInstanceDetails withProtectedFromScaleIn(Boolean protectedFromScaleIn)
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
public Boolean 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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public AutoScalingInstanceDetails clone()
-
-