@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AutoScalingInstanceDetails extends Object implements Serializable, Cloneable
Describes an EC2 instance associated with an Auto Scaling group.
Constructor and Description |
---|
AutoScalingInstanceDetails() |
Modifier and Type | Method and Description |
---|---|
AutoScalingInstanceDetails |
clone() |
boolean |
equals(Object obj) |
String |
getAutoScalingGroupName()
The name of the Auto Scaling group for the instance.
|
String |
getAvailabilityZone()
The Availability Zone for the instance.
|
String |
getHealthStatus()
The last reported health status of this instance.
|
String |
getInstanceId()
The ID of the instance.
|
String |
getInstanceType()
The instance type of the EC2 instance.
|
String |
getLaunchConfigurationName()
The launch configuration used to launch the instance.
|
LaunchTemplateSpecification |
getLaunchTemplate()
The launch template for the instance.
|
String |
getLifecycleState()
The lifecycle state for the instance.
|
Boolean |
getProtectedFromScaleIn()
Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.
|
String |
getWeightedCapacity()
The number of capacity units contributed by the instance based on its instance type.
|
int |
hashCode() |
Boolean |
isProtectedFromScaleIn()
Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.
|
void |
setAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group for the instance.
|
void |
setAvailabilityZone(String availabilityZone)
The Availability Zone for the instance.
|
void |
setHealthStatus(String healthStatus)
The last reported health status of this instance.
|
void |
setInstanceId(String instanceId)
The ID of the instance.
|
void |
setInstanceType(String instanceType)
The instance type of the EC2 instance.
|
void |
setLaunchConfigurationName(String launchConfigurationName)
The launch configuration used to launch the instance.
|
void |
setLaunchTemplate(LaunchTemplateSpecification launchTemplate)
The launch template for 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 Amazon EC2 Auto Scaling when scaling in.
|
void |
setWeightedCapacity(String weightedCapacity)
The number of capacity units contributed by the instance based on its instance type.
|
String |
toString()
Returns a string representation of this object.
|
AutoScalingInstanceDetails |
withAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group for the instance.
|
AutoScalingInstanceDetails |
withAvailabilityZone(String availabilityZone)
The Availability Zone for the instance.
|
AutoScalingInstanceDetails |
withHealthStatus(String healthStatus)
The last reported health status of this instance.
|
AutoScalingInstanceDetails |
withInstanceId(String instanceId)
The ID of the instance.
|
AutoScalingInstanceDetails |
withInstanceType(String instanceType)
The instance type of the EC2 instance.
|
AutoScalingInstanceDetails |
withLaunchConfigurationName(String launchConfigurationName)
The launch configuration used to launch the instance.
|
AutoScalingInstanceDetails |
withLaunchTemplate(LaunchTemplateSpecification launchTemplate)
The launch template for the instance.
|
AutoScalingInstanceDetails |
withLifecycleState(String lifecycleState)
The lifecycle state for the instance.
|
AutoScalingInstanceDetails |
withProtectedFromScaleIn(Boolean protectedFromScaleIn)
Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.
|
AutoScalingInstanceDetails |
withWeightedCapacity(String weightedCapacity)
The number of capacity units contributed by the instance based on its instance type.
|
public void setInstanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public String getInstanceId()
The ID of the instance.
public AutoScalingInstanceDetails withInstanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public void setInstanceType(String instanceType)
The instance type of the EC2 instance.
instanceType
- The instance type of the EC2 instance.public String getInstanceType()
The instance type of the EC2 instance.
public AutoScalingInstanceDetails withInstanceType(String instanceType)
The instance type of the EC2 instance.
instanceType
- The instance type of the EC2 instance.public void setAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group for the instance.
autoScalingGroupName
- The name of the Auto Scaling group for the instance.public String getAutoScalingGroupName()
The name of the Auto Scaling group for the instance.
public AutoScalingInstanceDetails withAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group for the instance.
autoScalingGroupName
- The name of the Auto Scaling group for the instance.public void setAvailabilityZone(String availabilityZone)
The Availability Zone for the instance.
availabilityZone
- The Availability Zone for the instance.public String getAvailabilityZone()
The Availability Zone for the instance.
public AutoScalingInstanceDetails withAvailabilityZone(String availabilityZone)
The Availability Zone for the instance.
availabilityZone
- The Availability Zone for the instance.public void setLifecycleState(String lifecycleState)
The lifecycle state for the instance. The Quarantined
state is not used. For more information, see
Amazon EC2 Auto
Scaling 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 more
information, see Amazon EC2
Auto Scaling 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
public String getLifecycleState()
The lifecycle state for the instance. The Quarantined
state is not used. For more information, see
Amazon EC2 Auto
Scaling 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
Quarantined
state is not used. For more
information, see Amazon EC2
Auto Scaling 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
public AutoScalingInstanceDetails withLifecycleState(String lifecycleState)
The lifecycle state for the instance. The Quarantined
state is not used. For more information, see
Amazon EC2 Auto
Scaling 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 more
information, see Amazon EC2
Auto Scaling 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
public void setHealthStatus(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.public String getHealthStatus()
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.
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.public AutoScalingInstanceDetails withHealthStatus(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.public void setLaunchConfigurationName(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.public String getLaunchConfigurationName()
The launch configuration used to launch the instance. This value is not available if you attached the instance to the Auto Scaling group.
public AutoScalingInstanceDetails withLaunchConfigurationName(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.public void setLaunchTemplate(LaunchTemplateSpecification launchTemplate)
The launch template for the instance.
launchTemplate
- The launch template for the instance.public LaunchTemplateSpecification getLaunchTemplate()
The launch template for the instance.
public AutoScalingInstanceDetails withLaunchTemplate(LaunchTemplateSpecification launchTemplate)
The launch template for the instance.
launchTemplate
- The launch template for the instance.public void setProtectedFromScaleIn(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.public Boolean getProtectedFromScaleIn()
Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.
public AutoScalingInstanceDetails withProtectedFromScaleIn(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.public Boolean isProtectedFromScaleIn()
Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.
public void setWeightedCapacity(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.
public String getWeightedCapacity()
The number of capacity units contributed by the instance based on its instance type.
Valid Range: Minimum value of 1. Maximum value of 999.
Valid Range: Minimum value of 1. Maximum value of 999.
public AutoScalingInstanceDetails withWeightedCapacity(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.
public String toString()
toString
in class Object
Object.toString()
public AutoScalingInstanceDetails clone()