com.amazonaws.services.ec2.model
Class SpotInstanceStatus

java.lang.Object
  extended by com.amazonaws.services.ec2.model.SpotInstanceStatus
All Implemented Interfaces:
java.io.Serializable

public class SpotInstanceStatus
extends java.lang.Object
implements java.io.Serializable

Describes a Spot Instance request.

See Also:
Serialized Form

Constructor Summary
SpotInstanceStatus()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getCode()
          The status code of the request.
 java.lang.String getMessage()
          The description for the status code for the Spot request.
 java.util.Date getUpdateTime()
          The time of the most recent status update.
 int hashCode()
           
 void setCode(java.lang.String code)
          The status code of the request.
 void setMessage(java.lang.String message)
          The description for the status code for the Spot request.
 void setUpdateTime(java.util.Date updateTime)
          The time of the most recent status update.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 SpotInstanceStatus withCode(java.lang.String code)
          The status code of the request.
 SpotInstanceStatus withMessage(java.lang.String message)
          The description for the status code for the Spot request.
 SpotInstanceStatus withUpdateTime(java.util.Date updateTime)
          The time of the most recent status update.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpotInstanceStatus

public SpotInstanceStatus()
Method Detail

getCode

public java.lang.String getCode()
The status code of the request.

Returns:
The status code of the request.

setCode

public void setCode(java.lang.String code)
The status code of the request.

Parameters:
code - The status code of the request.

withCode

public SpotInstanceStatus withCode(java.lang.String code)
The status code of the request.

Returns a reference to this object so that method calls can be chained together.

Parameters:
code - The status code of the request.
Returns:
A reference to this updated object so that method calls can be chained together.

getUpdateTime

public java.util.Date getUpdateTime()
The time of the most recent status update.

Returns:
The time of the most recent status update.

setUpdateTime

public void setUpdateTime(java.util.Date updateTime)
The time of the most recent status update.

Parameters:
updateTime - The time of the most recent status update.

withUpdateTime

public SpotInstanceStatus withUpdateTime(java.util.Date updateTime)
The time of the most recent status update.

Returns a reference to this object so that method calls can be chained together.

Parameters:
updateTime - The time of the most recent status update.
Returns:
A reference to this updated object so that method calls can be chained together.

getMessage

public java.lang.String getMessage()
The description for the status code for the Spot request.

Returns:
The description for the status code for the Spot request.

setMessage

public void setMessage(java.lang.String message)
The description for the status code for the Spot request.

Parameters:
message - The description for the status code for the Spot request.

withMessage

public SpotInstanceStatus withMessage(java.lang.String message)
The description for the status code for the Spot request.

Returns a reference to this object so that method calls can be chained together.

Parameters:
message - The description for the status code for the Spot request.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.