Class SpotInstanceStatus

    • Constructor Detail

      • SpotInstanceStatus

        public SpotInstanceStatus()
    • Method Detail

      • setCode

        public void setCode​(String code)

        The status code. For a list of status codes, see Spot Bid Status Codes in the Amazon Elastic Compute Cloud User Guide.

        Parameters:
        code - The status code. For a list of status codes, see Spot Bid Status Codes in the Amazon Elastic Compute Cloud User Guide.
      • getCode

        public String getCode()

        The status code. For a list of status codes, see Spot Bid Status Codes in the Amazon Elastic Compute Cloud User Guide.

        Returns:
        The status code. For a list of status codes, see Spot Bid Status Codes in the Amazon Elastic Compute Cloud User Guide.
      • withCode

        public SpotInstanceStatus withCode​(String code)

        The status code. For a list of status codes, see Spot Bid Status Codes in the Amazon Elastic Compute Cloud User Guide.

        Parameters:
        code - The status code. For a list of status codes, see Spot Bid Status Codes in the Amazon Elastic Compute Cloud User Guide.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setUpdateTime

        public void setUpdateTime​(Date updateTime)

        The date and time of the most recent status update, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

        Parameters:
        updateTime - The date and time of the most recent status update, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
      • getUpdateTime

        public Date getUpdateTime()

        The date and time of the most recent status update, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

        Returns:
        The date and time of the most recent status update, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
      • withUpdateTime

        public SpotInstanceStatus withUpdateTime​(Date updateTime)

        The date and time of the most recent status update, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

        Parameters:
        updateTime - The date and time of the most recent status update, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setMessage

        public void setMessage​(String message)

        The description for the status code.

        Parameters:
        message - The description for the status code.
      • getMessage

        public String getMessage()

        The description for the status code.

        Returns:
        The description for the status code.
      • withMessage

        public SpotInstanceStatus withMessage​(String message)

        The description for the status code.

        Parameters:
        message - The description for the status code.
        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