Class InstanceStatus

    • Constructor Detail

      • InstanceStatus

        public InstanceStatus()
    • Method Detail

      • setState

        public void setState​(String state)

        The current state of the instance.

        Parameters:
        state - The current state of the instance.
        See Also:
        InstanceState
      • getState

        public String getState()

        The current state of the instance.

        Returns:
        The current state of the instance.
        See Also:
        InstanceState
      • withState

        public InstanceStatus withState​(String state)

        The current state of the instance.

        Parameters:
        state - The current state of the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        InstanceState
      • setState

        public void setState​(InstanceState state)

        The current state of the instance.

        Parameters:
        state - The current state of the instance.
        See Also:
        InstanceState
      • withState

        public InstanceStatus withState​(InstanceState state)

        The current state of the instance.

        Parameters:
        state - The current state of the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        InstanceState
      • setStateChangeReason

        public void setStateChangeReason​(InstanceStateChangeReason stateChangeReason)

        The details of the status change reason for the instance.

        Parameters:
        stateChangeReason - The details of the status change reason for the instance.
      • getStateChangeReason

        public InstanceStateChangeReason getStateChangeReason()

        The details of the status change reason for the instance.

        Returns:
        The details of the status change reason for the instance.
      • withStateChangeReason

        public InstanceStatus withStateChangeReason​(InstanceStateChangeReason stateChangeReason)

        The details of the status change reason for the instance.

        Parameters:
        stateChangeReason - The details of the status change reason for the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setTimeline

        public void setTimeline​(InstanceTimeline timeline)

        The timeline of the instance status over time.

        Parameters:
        timeline - The timeline of the instance status over time.
      • getTimeline

        public InstanceTimeline getTimeline()

        The timeline of the instance status over time.

        Returns:
        The timeline of the instance status over time.
      • withTimeline

        public InstanceStatus withTimeline​(InstanceTimeline timeline)

        The timeline of the instance status over time.

        Parameters:
        timeline - The timeline of the instance status over time.
        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