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
InstanceIdproperty 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 SingleInstanceHealthclone()booleanequals(Object obj)ApplicationMetricsgetApplicationMetrics()StringgetAvailabilityZone()The availability zone in which the instance runs.List<String>getCauses()Represents the causes, which provide more information about the current health status.StringgetColor()Represents the color indicator that gives you information about the health of the EC2 instance.DeploymentgetDeployment()Information about the most recent deployment to an instance.StringgetHealthStatus()Returns the health status of the specified instance.StringgetInstanceId()The ID of the Amazon EC2 instance.StringgetInstanceType()The instance's type.DategetLaunchedAt()The time at which the EC2 instance was launched.SystemStatusgetSystem()inthashCode()voidsetApplicationMetrics(ApplicationMetrics applicationMetrics)voidsetAvailabilityZone(String availabilityZone)The availability zone in which the instance runs.voidsetCauses(Collection<String> causes)Represents the causes, which provide more information about the current health status.voidsetColor(String color)Represents the color indicator that gives you information about the health of the EC2 instance.voidsetDeployment(Deployment deployment)Information about the most recent deployment to an instance.voidsetHealthStatus(String healthStatus)Returns the health status of the specified instance.voidsetInstanceId(String instanceId)The ID of the Amazon EC2 instance.voidsetInstanceType(String instanceType)The instance's type.voidsetLaunchedAt(Date launchedAt)The time at which the EC2 instance was launched.voidsetSystem(SystemStatus system)StringtoString()Returns a string representation of this object; useful for testing and debugging.SingleInstanceHealthwithApplicationMetrics(ApplicationMetrics applicationMetrics)SingleInstanceHealthwithAvailabilityZone(String availabilityZone)The availability zone in which the instance runs.SingleInstanceHealthwithCauses(String... causes)Represents the causes, which provide more information about the current health status.SingleInstanceHealthwithCauses(Collection<String> causes)Represents the causes, which provide more information about the current health status.SingleInstanceHealthwithColor(String color)Represents the color indicator that gives you information about the health of the EC2 instance.SingleInstanceHealthwithDeployment(Deployment deployment)Information about the most recent deployment to an instance.SingleInstanceHealthwithHealthStatus(String healthStatus)Returns the health status of the specified instance.SingleInstanceHealthwithInstanceId(String instanceId)The ID of the Amazon EC2 instance.SingleInstanceHealthwithInstanceType(String instanceType)The instance's type.SingleInstanceHealthwithLaunchedAt(Date launchedAt)The time at which the EC2 instance was launched.SingleInstanceHealthwithSystem(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SingleInstanceHealth clone()
-
-