public class InstanceState extends Object implements Serializable
The InstanceState data type.
Constructor and Description |
---|
InstanceState()
Default constructor for a new InstanceState object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDescription()
Provides a description of the instance.
|
String |
getInstanceId()
Provides an EC2 instance ID.
|
String |
getReasonCode()
Provides information about the cause of OutOfService instances.
|
String |
getState()
Specifies the current status of the instance.
|
int |
hashCode() |
void |
setDescription(String description)
Provides a description of the instance.
|
void |
setInstanceId(String instanceId)
Provides an EC2 instance ID.
|
void |
setReasonCode(String reasonCode)
Provides information about the cause of OutOfService instances.
|
void |
setState(String state)
Specifies the current status of the instance.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InstanceState |
withDescription(String description)
Provides a description of the instance.
|
InstanceState |
withInstanceId(String instanceId)
Provides an EC2 instance ID.
|
InstanceState |
withReasonCode(String reasonCode)
Provides information about the cause of OutOfService instances.
|
InstanceState |
withState(String state)
Specifies the current status of the instance.
|
public InstanceState()
public String getInstanceId()
public void setInstanceId(String instanceId)
instanceId
- Provides an EC2 instance ID.public InstanceState withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId
- Provides an EC2 instance ID.public String getState()
public void setState(String state)
state
- Specifies the current status of the instance.public InstanceState withState(String state)
Returns a reference to this object so that method calls can be chained together.
state
- Specifies the current status of the instance.public String getReasonCode()
public void setReasonCode(String reasonCode)
reasonCode
- Provides information about the cause of OutOfService instances.
Specifically, it indicates whether the cause is Elastic Load Balancing
or the instance behind the LoadBalancer.public InstanceState withReasonCode(String reasonCode)
Returns a reference to this object so that method calls can be chained together.
reasonCode
- Provides information about the cause of OutOfService instances.
Specifically, it indicates whether the cause is Elastic Load Balancing
or the instance behind the LoadBalancer.public String getDescription()
public void setDescription(String description)
description
- Provides a description of the instance.public InstanceState withDescription(String description)
Returns a reference to this object so that method calls can be chained together.
description
- Provides a description of the instance.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.