Class SingleInstanceHealth
- java.lang.Object
-
- com.amazonaws.services.elasticbeanstalk.model.SingleInstanceHealth
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class SingleInstanceHealth extends Object implements Serializable, 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.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SingleInstanceHealth()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SingleInstanceHealth
clone()
boolean
equals(Object obj)
ApplicationMetrics
getApplicationMetrics()
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()
int
hashCode()
void
setApplicationMetrics(ApplicationMetrics applicationMetrics)
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)
String
toString()
Returns a string representation of this object; useful for testing and debugging.SingleInstanceHealth
withApplicationMetrics(ApplicationMetrics applicationMetrics)
SingleInstanceHealth
withAvailabilityZone(String availabilityZone)
The availability zone in which the instance runs.SingleInstanceHealth
withCauses(String... causes)
Represents the causes, which provide more information about the current health status.SingleInstanceHealth
withCauses(Collection<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)
-
-
-
Method Detail
-
setInstanceId
public void setInstanceId(String instanceId)
The ID of the Amazon EC2 instance.
- Parameters:
instanceId
- The ID of the Amazon EC2 instance.
-
getInstanceId
public String getInstanceId()
The ID of the Amazon EC2 instance.
- Returns:
- The ID of the Amazon EC2 instance.
-
withInstanceId
public SingleInstanceHealth withInstanceId(String instanceId)
The ID of the Amazon EC2 instance.
- Parameters:
instanceId
- The ID of the Amazon EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHealthStatus
public void setHealthStatus(String healthStatus)
Returns the health status of the specified instance. For more information, see Health Colors and Statuses.
- Parameters:
healthStatus
- Returns the health status of the specified instance. For more information, see Health Colors and Statuses.
-
getHealthStatus
public String getHealthStatus()
Returns the health status of the specified instance. For more information, see Health Colors and Statuses.
- Returns:
- Returns the health status of the specified instance. For more information, see Health Colors and Statuses.
-
withHealthStatus
public SingleInstanceHealth withHealthStatus(String healthStatus)
Returns the health status of the specified instance. For more information, see Health Colors and Statuses.
- Parameters:
healthStatus
- Returns the health status of the specified instance. For more information, see Health Colors and Statuses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setColor
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.
- Parameters:
color
- Represents the color indicator that gives you information about the health of the EC2 instance. For more information, see Health Colors and Statuses.
-
getColor
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.
- Returns:
- Represents the color indicator that gives you information about the health of the EC2 instance. For more information, see Health Colors and Statuses.
-
withColor
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.
- Parameters:
color
- Represents the color indicator that gives you information about the health of the EC2 instance. For more information, see Health Colors and Statuses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getCauses
public List<String> getCauses()
Represents the causes, which provide more information about the current health status.
- Returns:
- Represents the causes, which provide more information about the current health status.
-
setCauses
public void setCauses(Collection<String> causes)
Represents the causes, which provide more information about the current health status.
- Parameters:
causes
- Represents the causes, which provide more information about the current health status.
-
withCauses
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)
orwithCauses(java.util.Collection)
if you want to override the existing values.- Parameters:
causes
- Represents the causes, which provide more information about the current health status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withCauses
public SingleInstanceHealth withCauses(Collection<String> causes)
Represents the causes, which provide more information about the current health status.
- Parameters:
causes
- Represents the causes, which provide more information about the current health status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLaunchedAt
public void setLaunchedAt(Date launchedAt)
The time at which the EC2 instance was launched.
- Parameters:
launchedAt
- The time at which the EC2 instance was launched.
-
getLaunchedAt
public Date getLaunchedAt()
The time at which the EC2 instance was launched.
- Returns:
- The time at which the EC2 instance was launched.
-
withLaunchedAt
public SingleInstanceHealth withLaunchedAt(Date launchedAt)
The time at which the EC2 instance was launched.
- Parameters:
launchedAt
- The time at which the EC2 instance was launched.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setApplicationMetrics
public void setApplicationMetrics(ApplicationMetrics applicationMetrics)
- Parameters:
applicationMetrics
-
-
getApplicationMetrics
public ApplicationMetrics getApplicationMetrics()
- Returns:
-
withApplicationMetrics
public SingleInstanceHealth withApplicationMetrics(ApplicationMetrics applicationMetrics)
- Parameters:
applicationMetrics
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSystem
public void setSystem(SystemStatus system)
- Parameters:
system
-
-
getSystem
public SystemStatus getSystem()
- Returns:
-
withSystem
public SingleInstanceHealth withSystem(SystemStatus system)
- Parameters:
system
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDeployment
public void setDeployment(Deployment deployment)
Information about the most recent deployment to an instance.
- Parameters:
deployment
- Information about the most recent deployment to an instance.
-
getDeployment
public Deployment getDeployment()
Information about the most recent deployment to an instance.
- Returns:
- Information about the most recent deployment to an instance.
-
withDeployment
public SingleInstanceHealth withDeployment(Deployment deployment)
Information about the most recent deployment to an instance.
- Parameters:
deployment
- Information about the most recent deployment to an instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAvailabilityZone
public void setAvailabilityZone(String availabilityZone)
The availability zone in which the instance runs.
- Parameters:
availabilityZone
- The availability zone in which the instance runs.
-
getAvailabilityZone
public String getAvailabilityZone()
The availability zone in which the instance runs.
- Returns:
- The availability zone in which the instance runs.
-
withAvailabilityZone
public SingleInstanceHealth withAvailabilityZone(String availabilityZone)
The availability zone in which the instance runs.
- Parameters:
availabilityZone
- The availability zone in which the instance runs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceType
public void setInstanceType(String instanceType)
The instance's type.
- Parameters:
instanceType
- The instance's type.
-
getInstanceType
public String getInstanceType()
The instance's type.
- Returns:
- The instance's type.
-
withInstanceType
public SingleInstanceHealth withInstanceType(String instanceType)
The instance's type.
- Parameters:
instanceType
- The instance's type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SingleInstanceHealth clone()
-
-