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 SpotInstanceStateFaultclone()booleanequals(Object obj)StringgetCode()The reason code for the Spot instance state change.StringgetMessage()The message for the Spot instance state change.inthashCode()voidsetCode(String code)The reason code for the Spot instance state change.voidsetMessage(String message)The message for the Spot instance state change.StringtoString()Returns a string representation of this object; useful for testing and debugging.SpotInstanceStateFaultwithCode(String code)The reason code for the Spot instance state change.SpotInstanceStateFaultwithMessage(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SpotInstanceStateFault clone()
-
-