Class SingleInstanceHealth
- All Implemented Interfaces:
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The availability zone in which the instance runs.Represents the causes, which provide more information about the current health status.getColor()
Represents the color indicator that gives you information about the health of the EC2 instance.Information about the most recent deployment to an instance.Returns the health status of the specified instance.The ID of the Amazon EC2 instance.The instance's type.The time at which the EC2 instance was launched.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
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) toString()
Returns a string representation of this object; useful for testing and debugging.withApplicationMetrics
(ApplicationMetrics applicationMetrics) withAvailabilityZone
(String availabilityZone) The availability zone in which the instance runs.withCauses
(String... causes) Represents the causes, which provide more information about the current health status.withCauses
(Collection<String> causes) Represents the causes, which provide more information about the current health status.Represents the color indicator that gives you information about the health of the EC2 instance.withDeployment
(Deployment deployment) Information about the most recent deployment to an instance.withHealthStatus
(String healthStatus) Returns the health status of the specified instance.withInstanceId
(String instanceId) The ID of the Amazon EC2 instance.withInstanceType
(String instanceType) The instance's type.withLaunchedAt
(Date launchedAt) The time at which the EC2 instance was launched.withSystem
(SystemStatus system)
-
Constructor Details
-
SingleInstanceHealth
public SingleInstanceHealth()
-
-
Method Details
-
setInstanceId
The ID of the Amazon EC2 instance.
- Parameters:
instanceId
- The ID of the Amazon EC2 instance.
-
getInstanceId
The ID of the Amazon EC2 instance.
- Returns:
- The ID of the Amazon EC2 instance.
-
withInstanceId
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
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
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
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
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
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
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
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
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
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
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
The time at which the EC2 instance was launched.
- Parameters:
launchedAt
- The time at which the EC2 instance was launched.
-
getLaunchedAt
The time at which the EC2 instance was launched.
- Returns:
- The time at which the EC2 instance was launched.
-
withLaunchedAt
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
- Parameters:
applicationMetrics
-
-
getApplicationMetrics
- Returns:
-
withApplicationMetrics
- Parameters:
applicationMetrics
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSystem
- Parameters:
system
-
-
getSystem
- Returns:
-
withSystem
- Parameters:
system
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDeployment
Information about the most recent deployment to an instance.
- Parameters:
deployment
- Information about the most recent deployment to an instance.
-
getDeployment
Information about the most recent deployment to an instance.
- Returns:
- Information about the most recent deployment to an instance.
-
withDeployment
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
The availability zone in which the instance runs.
- Parameters:
availabilityZone
- The availability zone in which the instance runs.
-
getAvailabilityZone
The availability zone in which the instance runs.
- Returns:
- The availability zone in which the instance runs.
-
withAvailabilityZone
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
The instance's type.
- Parameters:
instanceType
- The instance's type.
-
getInstanceType
The instance's type.
- Returns:
- The instance's type.
-
withInstanceType
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-