Class 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 Detail

      • SingleInstanceHealth

        public SingleInstanceHealth()
    • 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.
      • 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) or withCauses(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 -
      • 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 -
      • 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 class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object