Package com.amazonaws.services.ec2.model
Class SpotInstanceStateFault
- java.lang.Object
-
- com.amazonaws.services.ec2.model.SpotInstanceStateFault
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class SpotInstanceStateFault extends Object implements Serializable, Cloneable
Describes a Spot instance state change.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SpotInstanceStateFault()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpotInstanceStateFault
clone()
boolean
equals(Object obj)
String
getCode()
The reason code for the Spot instance state change.String
getMessage()
The message for the Spot instance state change.int
hashCode()
void
setCode(String code)
The reason code for the Spot instance state change.void
setMessage(String message)
The message for the Spot instance state change.String
toString()
Returns a string representation of this object; useful for testing and debugging.SpotInstanceStateFault
withCode(String code)
The reason code for the Spot instance state change.SpotInstanceStateFault
withMessage(String message)
The message for the Spot instance state change.
-
-
-
Method Detail
-
setCode
public void setCode(String code)
The reason code for the Spot instance state change.
- Parameters:
code
- The reason code for the Spot instance state change.
-
getCode
public String getCode()
The reason code for the Spot instance state change.
- Returns:
- The reason code for the Spot instance state change.
-
withCode
public SpotInstanceStateFault withCode(String code)
The reason code for the Spot instance state change.
- Parameters:
code
- The reason code for the Spot instance state change.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMessage
public void setMessage(String message)
The message for the Spot instance state change.
- Parameters:
message
- The message for the Spot instance state change.
-
getMessage
public String getMessage()
The message for the Spot instance state change.
- Returns:
- The message for the Spot instance state change.
-
withMessage
public SpotInstanceStateFault withMessage(String message)
The message for the Spot instance state change.
- Parameters:
message
- The message for the Spot instance state change.- 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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SpotInstanceStateFault clone()
-
-