public class SingleInstanceHealth
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents health information from the specified instance that belongs to the
AWS Elastic Beanstalk environment. Use the InstanceId
property
to specify the application instance for which you'd like to return data.
Modifier and Type | Field and Description |
---|---|
private ApplicationMetrics |
applicationMetrics |
private java.lang.String |
availabilityZone
The availability zone in which the instance runs.
|
private SdkInternalList<java.lang.String> |
causes
Represents the causes, which provide more information about the current
health status.
|
private java.lang.String |
color
Represents the color indicator that gives you information about the
health of the EC2 instance.
|
private Deployment |
deployment
Information about the most recent deployment to an instance.
|
private java.lang.String |
healthStatus
Returns the health status of the specified instance.
|
private java.lang.String |
instanceId
The ID of the Amazon EC2 instance.
|
private java.lang.String |
instanceType
The instance's type.
|
private java.util.Date |
launchedAt
The time at which the EC2 instance was launched.
|
private SystemStatus |
system |
Constructor and Description |
---|
SingleInstanceHealth() |
Modifier and Type | Method and Description |
---|---|
SingleInstanceHealth |
clone() |
boolean |
equals(java.lang.Object obj) |
ApplicationMetrics |
getApplicationMetrics() |
java.lang.String |
getAvailabilityZone()
The availability zone in which the instance runs.
|
java.util.List<java.lang.String> |
getCauses()
Represents the causes, which provide more information about the current
health status.
|
java.lang.String |
getColor()
Represents the color indicator that gives you information about the
health of the EC2 instance.
|
Deployment |
getDeployment()
Information about the most recent deployment to an instance.
|
java.lang.String |
getHealthStatus()
Returns the health status of the specified instance.
|
java.lang.String |
getInstanceId()
The ID of the Amazon EC2 instance.
|
java.lang.String |
getInstanceType()
The instance's type.
|
java.util.Date |
getLaunchedAt()
The time at which the EC2 instance was launched.
|
SystemStatus |
getSystem() |
int |
hashCode() |
void |
setApplicationMetrics(ApplicationMetrics applicationMetrics) |
void |
setAvailabilityZone(java.lang.String availabilityZone)
The availability zone in which the instance runs.
|
void |
setCauses(java.util.Collection<java.lang.String> causes)
Represents the causes, which provide more information about the current
health status.
|
void |
setColor(java.lang.String color)
Represents the color indicator that gives you information about the
health of the EC2 instance.
|
void |
setDeployment(Deployment deployment)
Information about the most recent deployment to an instance.
|
void |
setHealthStatus(java.lang.String healthStatus)
Returns the health status of the specified instance.
|
void |
setInstanceId(java.lang.String instanceId)
The ID of the Amazon EC2 instance.
|
void |
setInstanceType(java.lang.String instanceType)
The instance's type.
|
void |
setLaunchedAt(java.util.Date launchedAt)
The time at which the EC2 instance was launched.
|
void |
setSystem(SystemStatus system) |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SingleInstanceHealth |
withApplicationMetrics(ApplicationMetrics applicationMetrics) |
SingleInstanceHealth |
withAvailabilityZone(java.lang.String availabilityZone)
The availability zone in which the instance runs.
|
SingleInstanceHealth |
withCauses(java.util.Collection<java.lang.String> causes)
Represents the causes, which provide more information about the current
health status.
|
SingleInstanceHealth |
withCauses(java.lang.String... causes)
Represents the causes, which provide more information about the current
health status.
|
SingleInstanceHealth |
withColor(java.lang.String color)
Represents the color indicator that gives you information about the
health of the EC2 instance.
|
SingleInstanceHealth |
withDeployment(Deployment deployment)
Information about the most recent deployment to an instance.
|
SingleInstanceHealth |
withHealthStatus(java.lang.String healthStatus)
Returns the health status of the specified instance.
|
SingleInstanceHealth |
withInstanceId(java.lang.String instanceId)
The ID of the Amazon EC2 instance.
|
SingleInstanceHealth |
withInstanceType(java.lang.String instanceType)
The instance's type.
|
SingleInstanceHealth |
withLaunchedAt(java.util.Date launchedAt)
The time at which the EC2 instance was launched.
|
SingleInstanceHealth |
withSystem(SystemStatus system) |
private java.lang.String instanceId
The ID of the Amazon EC2 instance.
private java.lang.String healthStatus
Returns the health status of the specified instance. For more information, see Health Colors and Statuses.
private java.lang.String color
Represents the color indicator that gives you information about the health of the EC2 instance. For more information, see Health Colors and Statuses.
private SdkInternalList<java.lang.String> causes
Represents the causes, which provide more information about the current health status.
private java.util.Date launchedAt
The time at which the EC2 instance was launched.
private ApplicationMetrics applicationMetrics
private SystemStatus system
private Deployment deployment
Information about the most recent deployment to an instance.
private java.lang.String availabilityZone
The availability zone in which the instance runs.
private java.lang.String instanceType
The instance's type.
public void setInstanceId(java.lang.String instanceId)
The ID of the Amazon EC2 instance.
instanceId
- The ID of the Amazon EC2 instance.public java.lang.String getInstanceId()
The ID of the Amazon EC2 instance.
public SingleInstanceHealth withInstanceId(java.lang.String instanceId)
The ID of the Amazon EC2 instance.
instanceId
- The ID of the Amazon EC2 instance.public void setHealthStatus(java.lang.String healthStatus)
Returns the health status of the specified instance. For more information, see Health Colors and Statuses.
healthStatus
- Returns the health status of the specified instance. For more
information, see Health Colors and Statuses.public java.lang.String getHealthStatus()
Returns the health status of the specified instance. For more information, see Health Colors and Statuses.
public SingleInstanceHealth withHealthStatus(java.lang.String healthStatus)
Returns the health status of the specified instance. For more information, see Health Colors and Statuses.
healthStatus
- Returns the health status of the specified instance. For more
information, see Health Colors and Statuses.public void setColor(java.lang.String color)
Represents the color indicator that gives you information about the health of the EC2 instance. For more information, see Health Colors and Statuses.
color
- Represents the color indicator that gives you information about
the health of the EC2 instance. For more information, see Health Colors and Statuses.public java.lang.String getColor()
Represents the color indicator that gives you information about the health of the EC2 instance. For more information, see Health Colors and Statuses.
public SingleInstanceHealth withColor(java.lang.String color)
Represents the color indicator that gives you information about the health of the EC2 instance. For more information, see Health Colors and Statuses.
color
- Represents the color indicator that gives you information about
the health of the EC2 instance. For more information, see Health Colors and Statuses.public java.util.List<java.lang.String> getCauses()
Represents the causes, which provide more information about the current health status.
public void setCauses(java.util.Collection<java.lang.String> causes)
Represents the causes, which provide more information about the current health status.
causes
- Represents the causes, which provide more information about the
current health status.public SingleInstanceHealth withCauses(java.lang.String... causes)
Represents the causes, which provide more information about the current health status.
NOTE: This method appends the values to the existing list (if
any). Use setCauses(java.util.Collection)
or
withCauses(java.util.Collection)
if you want to override the
existing values.
causes
- Represents the causes, which provide more information about the
current health status.public SingleInstanceHealth withCauses(java.util.Collection<java.lang.String> causes)
Represents the causes, which provide more information about the current health status.
causes
- Represents the causes, which provide more information about the
current health status.public void setLaunchedAt(java.util.Date launchedAt)
The time at which the EC2 instance was launched.
launchedAt
- The time at which the EC2 instance was launched.public java.util.Date getLaunchedAt()
The time at which the EC2 instance was launched.
public SingleInstanceHealth withLaunchedAt(java.util.Date launchedAt)
The time at which the EC2 instance was launched.
launchedAt
- The time at which the EC2 instance was launched.public void setApplicationMetrics(ApplicationMetrics applicationMetrics)
applicationMetrics
- public ApplicationMetrics getApplicationMetrics()
public SingleInstanceHealth withApplicationMetrics(ApplicationMetrics applicationMetrics)
applicationMetrics
- public void setSystem(SystemStatus system)
system
- public SystemStatus getSystem()
public SingleInstanceHealth withSystem(SystemStatus system)
system
- public void setDeployment(Deployment deployment)
Information about the most recent deployment to an instance.
deployment
- Information about the most recent deployment to an instance.public Deployment getDeployment()
Information about the most recent deployment to an instance.
public SingleInstanceHealth withDeployment(Deployment deployment)
Information about the most recent deployment to an instance.
deployment
- Information about the most recent deployment to an instance.public void setAvailabilityZone(java.lang.String availabilityZone)
The availability zone in which the instance runs.
availabilityZone
- The availability zone in which the instance runs.public java.lang.String getAvailabilityZone()
The availability zone in which the instance runs.
public SingleInstanceHealth withAvailabilityZone(java.lang.String availabilityZone)
The availability zone in which the instance runs.
availabilityZone
- The availability zone in which the instance runs.public void setInstanceType(java.lang.String instanceType)
The instance's type.
instanceType
- The instance's type.public java.lang.String getInstanceType()
The instance's type.
public SingleInstanceHealth withInstanceType(java.lang.String instanceType)
The instance's type.
instanceType
- The instance's type.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public SingleInstanceHealth clone()
clone
in class java.lang.Object