Class DescribeEnvironmentHealthResult
- java.lang.Object
-
- com.amazonaws.services.elasticbeanstalk.model.DescribeEnvironmentHealthResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class DescribeEnvironmentHealthResult extends Object implements Serializable, Cloneable
See the example below for a sample response.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DescribeEnvironmentHealthResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeEnvironmentHealthResult
clone()
boolean
equals(Object obj)
ApplicationMetrics
getApplicationMetrics()
List<String>
getCauses()
Returns potential causes for the reported status.String
getColor()
Returns the color indicator that tells you information about the health of the environment.String
getEnvironmentName()
The AWS Elastic Beanstalk environment name.String
getHealthStatus()
Contains the response body with information about the health of the environment.InstanceHealthSummary
getInstancesHealth()
Date
getRefreshedAt()
The date and time the information was last refreshed.String
getStatus()
Returns the health status value of the environment.int
hashCode()
void
setApplicationMetrics(ApplicationMetrics applicationMetrics)
void
setCauses(Collection<String> causes)
Returns potential causes for the reported status.void
setColor(String color)
Returns the color indicator that tells you information about the health of the environment.void
setEnvironmentName(String environmentName)
The AWS Elastic Beanstalk environment name.void
setHealthStatus(String healthStatus)
Contains the response body with information about the health of the environment.void
setInstancesHealth(InstanceHealthSummary instancesHealth)
void
setRefreshedAt(Date refreshedAt)
The date and time the information was last refreshed.void
setStatus(EnvironmentHealth status)
Returns the health status value of the environment.void
setStatus(String status)
Returns the health status value of the environment.String
toString()
Returns a string representation of this object; useful for testing and debugging.DescribeEnvironmentHealthResult
withApplicationMetrics(ApplicationMetrics applicationMetrics)
DescribeEnvironmentHealthResult
withCauses(String... causes)
Returns potential causes for the reported status.DescribeEnvironmentHealthResult
withCauses(Collection<String> causes)
Returns potential causes for the reported status.DescribeEnvironmentHealthResult
withColor(String color)
Returns the color indicator that tells you information about the health of the environment.DescribeEnvironmentHealthResult
withEnvironmentName(String environmentName)
The AWS Elastic Beanstalk environment name.DescribeEnvironmentHealthResult
withHealthStatus(String healthStatus)
Contains the response body with information about the health of the environment.DescribeEnvironmentHealthResult
withInstancesHealth(InstanceHealthSummary instancesHealth)
DescribeEnvironmentHealthResult
withRefreshedAt(Date refreshedAt)
The date and time the information was last refreshed.DescribeEnvironmentHealthResult
withStatus(EnvironmentHealth status)
Returns the health status value of the environment.DescribeEnvironmentHealthResult
withStatus(String status)
Returns the health status value of the environment.
-
-
-
Method Detail
-
setEnvironmentName
public void setEnvironmentName(String environmentName)
The AWS Elastic Beanstalk environment name.
- Parameters:
environmentName
- The AWS Elastic Beanstalk environment name.
-
getEnvironmentName
public String getEnvironmentName()
The AWS Elastic Beanstalk environment name.
- Returns:
- The AWS Elastic Beanstalk environment name.
-
withEnvironmentName
public DescribeEnvironmentHealthResult withEnvironmentName(String environmentName)
The AWS Elastic Beanstalk environment name.
- Parameters:
environmentName
- The AWS Elastic Beanstalk environment name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHealthStatus
public void setHealthStatus(String healthStatus)
Contains the response body with information about the health of the environment.
- Parameters:
healthStatus
- Contains the response body with information about the health of the environment.
-
getHealthStatus
public String getHealthStatus()
Contains the response body with information about the health of the environment.
- Returns:
- Contains the response body with information about the health of the environment.
-
withHealthStatus
public DescribeEnvironmentHealthResult withHealthStatus(String healthStatus)
Contains the response body with information about the health of the environment.
- Parameters:
healthStatus
- Contains the response body with information about the health of the environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus
public void setStatus(String status)
Returns the health status value of the environment. For more information, see Health Colors and Statuses.
- Parameters:
status
- Returns the health status value of the environment. For more information, see Health Colors and Statuses.- See Also:
EnvironmentHealth
-
getStatus
public String getStatus()
Returns the health status value of the environment. For more information, see Health Colors and Statuses.
- Returns:
- Returns the health status value of the environment. For more information, see Health Colors and Statuses.
- See Also:
EnvironmentHealth
-
withStatus
public DescribeEnvironmentHealthResult withStatus(String status)
Returns the health status value of the environment. For more information, see Health Colors and Statuses.
- Parameters:
status
- Returns the health status value of the environment. For more information, see Health Colors and Statuses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EnvironmentHealth
-
setStatus
public void setStatus(EnvironmentHealth status)
Returns the health status value of the environment. For more information, see Health Colors and Statuses.
- Parameters:
status
- Returns the health status value of the environment. For more information, see Health Colors and Statuses.- See Also:
EnvironmentHealth
-
withStatus
public DescribeEnvironmentHealthResult withStatus(EnvironmentHealth status)
Returns the health status value of the environment. For more information, see Health Colors and Statuses.
- Parameters:
status
- Returns the health status value of the environment. For more information, see Health Colors and Statuses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EnvironmentHealth
-
setColor
public void setColor(String color)
Returns the color indicator that tells you information about the health of the environment. For more information, see Health Colors and Statuses.
- Parameters:
color
- Returns the color indicator that tells you information about the health of the environment. For more information, see Health Colors and Statuses.
-
getColor
public String getColor()
Returns the color indicator that tells you information about the health of the environment. For more information, see Health Colors and Statuses.
- Returns:
- Returns the color indicator that tells you information about the health of the environment. For more information, see Health Colors and Statuses.
-
withColor
public DescribeEnvironmentHealthResult withColor(String color)
Returns the color indicator that tells you information about the health of the environment. For more information, see Health Colors and Statuses.
- Parameters:
color
- Returns the color indicator that tells you information about the health of the environment. 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()
Returns potential causes for the reported status.
- Returns:
- Returns potential causes for the reported status.
-
setCauses
public void setCauses(Collection<String> causes)
Returns potential causes for the reported status.
- Parameters:
causes
- Returns potential causes for the reported status.
-
withCauses
public DescribeEnvironmentHealthResult withCauses(String... causes)
Returns potential causes for the reported 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
- Returns potential causes for the reported status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withCauses
public DescribeEnvironmentHealthResult withCauses(Collection<String> causes)
Returns potential causes for the reported status.
- Parameters:
causes
- Returns potential causes for the reported status.- 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 DescribeEnvironmentHealthResult withApplicationMetrics(ApplicationMetrics applicationMetrics)
- Parameters:
applicationMetrics
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstancesHealth
public void setInstancesHealth(InstanceHealthSummary instancesHealth)
- Parameters:
instancesHealth
-
-
getInstancesHealth
public InstanceHealthSummary getInstancesHealth()
- Returns:
-
withInstancesHealth
public DescribeEnvironmentHealthResult withInstancesHealth(InstanceHealthSummary instancesHealth)
- Parameters:
instancesHealth
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRefreshedAt
public void setRefreshedAt(Date refreshedAt)
The date and time the information was last refreshed.
- Parameters:
refreshedAt
- The date and time the information was last refreshed.
-
getRefreshedAt
public Date getRefreshedAt()
The date and time the information was last refreshed.
- Returns:
- The date and time the information was last refreshed.
-
withRefreshedAt
public DescribeEnvironmentHealthResult withRefreshedAt(Date refreshedAt)
The date and time the information was last refreshed.
- Parameters:
refreshedAt
- The date and time the information was last refreshed.- 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 DescribeEnvironmentHealthResult clone()
-
-