public class Instance extends Object implements Serializable
The Instance
data type.
Constructor and Description |
---|
Instance() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAvailabilityZone()
Availability Zones associated with this instance.
|
String |
getHealthStatus()
The instance's health status.
|
String |
getInstanceId()
Specifies the ID of the Amazon EC2 instance.
|
String |
getLaunchConfigurationName()
The launch configuration associated with this instance.
|
String |
getLifecycleState()
Contains a description of the current lifecycle state.
|
int |
hashCode() |
void |
setAvailabilityZone(String availabilityZone)
Availability Zones associated with this instance.
|
void |
setHealthStatus(String healthStatus)
The instance's health status.
|
void |
setInstanceId(String instanceId)
Specifies the ID of the Amazon EC2 instance.
|
void |
setLaunchConfigurationName(String launchConfigurationName)
The launch configuration associated with this instance.
|
void |
setLifecycleState(LifecycleState lifecycleState)
Contains a description of the current lifecycle state.
|
void |
setLifecycleState(String lifecycleState)
Contains a description of the current lifecycle state.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Instance |
withAvailabilityZone(String availabilityZone)
Availability Zones associated with this instance.
|
Instance |
withHealthStatus(String healthStatus)
The instance's health status.
|
Instance |
withInstanceId(String instanceId)
Specifies the ID of the Amazon EC2 instance.
|
Instance |
withLaunchConfigurationName(String launchConfigurationName)
The launch configuration associated with this instance.
|
Instance |
withLifecycleState(LifecycleState lifecycleState)
Contains a description of the current lifecycle state.
|
Instance |
withLifecycleState(String lifecycleState)
Contains a description of the current lifecycle state.
|
public String getInstanceId()
Constraints:
Length: 1 - 16
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setInstanceId(String instanceId)
Constraints:
Length: 1 - 16
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
instanceId
- Specifies the ID of the Amazon EC2 instance.public Instance withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 16
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
instanceId
- Specifies the ID of the Amazon EC2 instance.public String getAvailabilityZone()
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setAvailabilityZone(String availabilityZone)
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
availabilityZone
- Availability Zones associated with this instance.public Instance withAvailabilityZone(String availabilityZone)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
availabilityZone
- Availability Zones associated with this instance.public String getLifecycleState()
The Quarantined
lifecycle state is currently not used.
Constraints:
Allowed Values: Pending, Pending:Wait, Pending:Proceed, Quarantined, InService, Terminating, Terminating:Wait, Terminating:Proceed, Terminated, Detaching, Detached, EnteringStandby, Standby
The Quarantined
lifecycle state is currently not used.
LifecycleState
public void setLifecycleState(String lifecycleState)
The Quarantined
lifecycle state is currently not used.
Constraints:
Allowed Values: Pending, Pending:Wait, Pending:Proceed, Quarantined, InService, Terminating, Terminating:Wait, Terminating:Proceed, Terminated, Detaching, Detached, EnteringStandby, Standby
lifecycleState
- Contains a description of the current lifecycle state. The Quarantined
lifecycle state is currently not used.
LifecycleState
public Instance withLifecycleState(String lifecycleState)
The Quarantined
lifecycle state is currently not used.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Pending, Pending:Wait, Pending:Proceed, Quarantined, InService, Terminating, Terminating:Wait, Terminating:Proceed, Terminated, Detaching, Detached, EnteringStandby, Standby
lifecycleState
- Contains a description of the current lifecycle state. The Quarantined
lifecycle state is currently not used.
LifecycleState
public void setLifecycleState(LifecycleState lifecycleState)
The Quarantined
lifecycle state is currently not used.
Constraints:
Allowed Values: Pending, Pending:Wait, Pending:Proceed, Quarantined, InService, Terminating, Terminating:Wait, Terminating:Proceed, Terminated, Detaching, Detached, EnteringStandby, Standby
lifecycleState
- Contains a description of the current lifecycle state. The Quarantined
lifecycle state is currently not used.
LifecycleState
public Instance withLifecycleState(LifecycleState lifecycleState)
The Quarantined
lifecycle state is currently not used.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Pending, Pending:Wait, Pending:Proceed, Quarantined, InService, Terminating, Terminating:Wait, Terminating:Proceed, Terminated, Detaching, Detached, EnteringStandby, Standby
lifecycleState
- Contains a description of the current lifecycle state. The Quarantined
lifecycle state is currently not used.
LifecycleState
public String getHealthStatus()
Constraints:
Length: 1 - 32
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setHealthStatus(String healthStatus)
Constraints:
Length: 1 - 32
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
healthStatus
- The instance's health status.public Instance withHealthStatus(String healthStatus)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 32
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
healthStatus
- The instance's health status.public String getLaunchConfigurationName()
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setLaunchConfigurationName(String launchConfigurationName)
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
launchConfigurationName
- The launch configuration associated with this instance.public Instance withLaunchConfigurationName(String launchConfigurationName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
launchConfigurationName
- The launch configuration associated with this instance.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.