@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SingleInstanceHealth extends Object implements Serializable, Cloneable
Detailed health information about an Amazon EC2 instance in your Elastic Beanstalk environment.
Constructor and Description |
---|
SingleInstanceHealth() |
Modifier and Type | Method and Description |
---|---|
SingleInstanceHealth |
clone() |
boolean |
equals(Object obj) |
ApplicationMetrics |
getApplicationMetrics()
Request metrics from your application.
|
String |
getAvailabilityZone()
The availability zone in which the instance runs.
|
List<String> |
getCauses()
Represents the causes, which provide more information about the current health status.
|
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.
|
String |
getHealthStatus()
Returns the health status of the specified instance.
|
String |
getInstanceId()
The ID of the Amazon EC2 instance.
|
String |
getInstanceType()
The instance's type.
|
Date |
getLaunchedAt()
The time at which the EC2 instance was launched.
|
SystemStatus |
getSystem()
Operating system metrics from the instance.
|
int |
hashCode() |
void |
setApplicationMetrics(ApplicationMetrics applicationMetrics)
Request metrics from your application.
|
void |
setAvailabilityZone(String availabilityZone)
The availability zone in which the instance runs.
|
void |
setCauses(Collection<String> causes)
Represents the causes, which provide more information about the current health status.
|
void |
setColor(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(String healthStatus)
Returns the health status of the specified instance.
|
void |
setInstanceId(String instanceId)
The ID of the Amazon EC2 instance.
|
void |
setInstanceType(String instanceType)
The instance's type.
|
void |
setLaunchedAt(Date launchedAt)
The time at which the EC2 instance was launched.
|
void |
setSystem(SystemStatus system)
Operating system metrics from the instance.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
SingleInstanceHealth |
withApplicationMetrics(ApplicationMetrics applicationMetrics)
Request metrics from your application.
|
SingleInstanceHealth |
withAvailabilityZone(String availabilityZone)
The availability zone in which the instance runs.
|
SingleInstanceHealth |
withCauses(Collection<String> causes)
Represents the causes, which provide more information about the current health status.
|
SingleInstanceHealth |
withCauses(String... causes)
Represents the causes, which provide more information about the current health status.
|
SingleInstanceHealth |
withColor(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(String healthStatus)
Returns the health status of the specified instance.
|
SingleInstanceHealth |
withInstanceId(String instanceId)
The ID of the Amazon EC2 instance.
|
SingleInstanceHealth |
withInstanceType(String instanceType)
The instance's type.
|
SingleInstanceHealth |
withLaunchedAt(Date launchedAt)
The time at which the EC2 instance was launched.
|
SingleInstanceHealth |
withSystem(SystemStatus system)
Operating system metrics from the instance.
|
public void setInstanceId(String instanceId)
The ID of the Amazon EC2 instance.
instanceId
- The ID of the Amazon EC2 instance.public String getInstanceId()
The ID of the Amazon EC2 instance.
public SingleInstanceHealth withInstanceId(String instanceId)
The ID of the Amazon EC2 instance.
instanceId
- The ID of the Amazon EC2 instance.public void setHealthStatus(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 String getHealthStatus()
Returns the health status of the specified instance. For more information, see Health Colors and Statuses.
public SingleInstanceHealth withHealthStatus(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(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 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(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 List<String> getCauses()
Represents the causes, which provide more information about the current health status.
public void setCauses(Collection<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(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(Collection<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(Date launchedAt)
The time at which the EC2 instance was launched.
launchedAt
- The time at which the EC2 instance was launched.public Date getLaunchedAt()
The time at which the EC2 instance was launched.
public SingleInstanceHealth withLaunchedAt(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)
Request metrics from your application.
applicationMetrics
- Request metrics from your application.public ApplicationMetrics getApplicationMetrics()
Request metrics from your application.
public SingleInstanceHealth withApplicationMetrics(ApplicationMetrics applicationMetrics)
Request metrics from your application.
applicationMetrics
- Request metrics from your application.public void setSystem(SystemStatus system)
Operating system metrics from the instance.
system
- Operating system metrics from the instance.public SystemStatus getSystem()
Operating system metrics from the instance.
public SingleInstanceHealth withSystem(SystemStatus system)
Operating system metrics from the instance.
system
- Operating system metrics from the instance.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(String availabilityZone)
The availability zone in which the instance runs.
availabilityZone
- The availability zone in which the instance runs.public String getAvailabilityZone()
The availability zone in which the instance runs.
public SingleInstanceHealth withAvailabilityZone(String availabilityZone)
The availability zone in which the instance runs.
availabilityZone
- The availability zone in which the instance runs.public void setInstanceType(String instanceType)
The instance's type.
instanceType
- The instance's type.public String getInstanceType()
The instance's type.
public SingleInstanceHealth withInstanceType(String instanceType)
The instance's type.
instanceType
- The instance's type.public String toString()
toString
in class Object
Object.toString()
public SingleInstanceHealth clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.