public class CancelSpotFleetRequestsError extends Object implements Serializable, Cloneable
Describes a Spot fleet error.
Constructor and Description |
---|
CancelSpotFleetRequestsError() |
Modifier and Type | Method and 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.
|
public String getCode()
Constraints:
Allowed Values: fleetRequestIdDoesNotExist, fleetRequestIdMalformed, fleetRequestNotInCancellableState, unexpectedError
CancelBatchErrorCode
public void setCode(String code)
Constraints:
Allowed Values: fleetRequestIdDoesNotExist, fleetRequestIdMalformed, fleetRequestNotInCancellableState, unexpectedError
code
- The error code.CancelBatchErrorCode
public CancelSpotFleetRequestsError withCode(String code)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: fleetRequestIdDoesNotExist, fleetRequestIdMalformed, fleetRequestNotInCancellableState, unexpectedError
code
- The error code.CancelBatchErrorCode
public void setCode(CancelBatchErrorCode code)
Constraints:
Allowed Values: fleetRequestIdDoesNotExist, fleetRequestIdMalformed, fleetRequestNotInCancellableState, unexpectedError
code
- The error code.CancelBatchErrorCode
public CancelSpotFleetRequestsError withCode(CancelBatchErrorCode code)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: fleetRequestIdDoesNotExist, fleetRequestIdMalformed, fleetRequestNotInCancellableState, unexpectedError
code
- The error code.CancelBatchErrorCode
public String getMessage()
public void setMessage(String message)
message
- The description for the error code.public CancelSpotFleetRequestsError withMessage(String message)
Returns a reference to this object so that method calls can be chained together.
message
- The description for the error code.public String toString()
toString
in class Object
Object.toString()
public CancelSpotFleetRequestsError clone()
Copyright © 2015. All rights reserved.