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