Class InstanceStatus

    • Constructor Detail

      • InstanceStatus

        public InstanceStatus()
    • Method Detail

      • setInstanceId

        public void setInstanceId​(String instanceId)

        The ID of the instance.

        Parameters:
        instanceId - The ID of the instance.
      • getInstanceId

        public String getInstanceId()

        The ID of the instance.

        Returns:
        The ID of the instance.
      • withInstanceId

        public InstanceStatus withInstanceId​(String instanceId)

        The ID of the instance.

        Parameters:
        instanceId - The ID of the 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 of the instance.

        Parameters:
        availabilityZone - The Availability Zone of the instance.
      • getAvailabilityZone

        public String getAvailabilityZone()

        The Availability Zone of the instance.

        Returns:
        The Availability Zone of the instance.
      • withAvailabilityZone

        public InstanceStatus withAvailabilityZone​(String availabilityZone)

        The Availability Zone of the instance.

        Parameters:
        availabilityZone - The Availability Zone of the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getEvents

        public List<InstanceStatusEvent> getEvents()

        Any scheduled events associated with the instance.

        Returns:
        Any scheduled events associated with the instance.
      • setEvents

        public void setEvents​(Collection<InstanceStatusEvent> events)

        Any scheduled events associated with the instance.

        Parameters:
        events - Any scheduled events associated with the instance.
      • withEvents

        public InstanceStatus withEvents​(InstanceStatusEvent... events)

        Any scheduled events associated with the instance.

        NOTE: This method appends the values to the existing list (if any). Use setEvents(java.util.Collection) or withEvents(java.util.Collection) if you want to override the existing values.

        Parameters:
        events - Any scheduled events associated with the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withEvents

        public InstanceStatus withEvents​(Collection<InstanceStatusEvent> events)

        Any scheduled events associated with the instance.

        Parameters:
        events - Any scheduled events associated with the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setInstanceState

        public void setInstanceState​(InstanceState instanceState)

        The intended state of the instance. DescribeInstanceStatus requires that an instance be in the running state.

        Parameters:
        instanceState - The intended state of the instance. DescribeInstanceStatus requires that an instance be in the running state.
      • getInstanceState

        public InstanceState getInstanceState()

        The intended state of the instance. DescribeInstanceStatus requires that an instance be in the running state.

        Returns:
        The intended state of the instance. DescribeInstanceStatus requires that an instance be in the running state.
      • withInstanceState

        public InstanceStatus withInstanceState​(InstanceState instanceState)

        The intended state of the instance. DescribeInstanceStatus requires that an instance be in the running state.

        Parameters:
        instanceState - The intended state of the instance. DescribeInstanceStatus requires that an instance be in the running state.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setSystemStatus

        public void setSystemStatus​(InstanceStatusSummary systemStatus)

        Reports impaired functionality that stems from issues related to the systems that support an instance, such as hardware failures and network connectivity problems.

        Parameters:
        systemStatus - Reports impaired functionality that stems from issues related to the systems that support an instance, such as hardware failures and network connectivity problems.
      • getSystemStatus

        public InstanceStatusSummary getSystemStatus()

        Reports impaired functionality that stems from issues related to the systems that support an instance, such as hardware failures and network connectivity problems.

        Returns:
        Reports impaired functionality that stems from issues related to the systems that support an instance, such as hardware failures and network connectivity problems.
      • withSystemStatus

        public InstanceStatus withSystemStatus​(InstanceStatusSummary systemStatus)

        Reports impaired functionality that stems from issues related to the systems that support an instance, such as hardware failures and network connectivity problems.

        Parameters:
        systemStatus - Reports impaired functionality that stems from issues related to the systems that support an instance, such as hardware failures and network connectivity problems.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setInstanceStatus

        public void setInstanceStatus​(InstanceStatusSummary instanceStatus)

        Reports impaired functionality that stems from issues internal to the instance, such as impaired reachability.

        Parameters:
        instanceStatus - Reports impaired functionality that stems from issues internal to the instance, such as impaired reachability.
      • getInstanceStatus

        public InstanceStatusSummary getInstanceStatus()

        Reports impaired functionality that stems from issues internal to the instance, such as impaired reachability.

        Returns:
        Reports impaired functionality that stems from issues internal to the instance, such as impaired reachability.
      • withInstanceStatus

        public InstanceStatus withInstanceStatus​(InstanceStatusSummary instanceStatus)

        Reports impaired functionality that stems from issues internal to the instance, such as impaired reachability.

        Parameters:
        instanceStatus - Reports impaired functionality that stems from issues internal to the instance, such as impaired reachability.
        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