public class CancelSpotFleetRequestsError
extends java.lang.Object
implements java.io.Serializable
Describes a Spot fleet error.
| Constructor and Description |
|---|
CancelSpotFleetRequestsError() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCode()
The error code.
|
java.lang.String |
getMessage()
The description for the error code.
|
int |
hashCode() |
void |
setCode(CancelBatchErrorCode code)
The error code.
|
void |
setCode(java.lang.String code)
The error code.
|
void |
setMessage(java.lang.String message)
The description for the error code.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CancelSpotFleetRequestsError |
withCode(CancelBatchErrorCode code)
The error code.
|
CancelSpotFleetRequestsError |
withCode(java.lang.String code)
The error code.
|
CancelSpotFleetRequestsError |
withMessage(java.lang.String message)
The description for the error code.
|
public java.lang.String getCode()
Constraints:
Allowed Values: fleetRequestIdDoesNotExist, fleetRequestIdMalformed, fleetRequestNotInCancellableState, unexpectedError
CancelBatchErrorCodepublic void setCode(java.lang.String code)
Constraints:
Allowed Values: fleetRequestIdDoesNotExist, fleetRequestIdMalformed, fleetRequestNotInCancellableState, unexpectedError
code - The error code.CancelBatchErrorCodepublic CancelSpotFleetRequestsError withCode(java.lang.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.CancelBatchErrorCodepublic void setCode(CancelBatchErrorCode code)
Constraints:
Allowed Values: fleetRequestIdDoesNotExist, fleetRequestIdMalformed, fleetRequestNotInCancellableState, unexpectedError
code - The error code.CancelBatchErrorCodepublic 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.CancelBatchErrorCodepublic java.lang.String getMessage()
public void setMessage(java.lang.String message)
message - The description for the error code.public CancelSpotFleetRequestsError withMessage(java.lang.String message)
Returns a reference to this object so that method calls can be chained together.
message - The description for the error code.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.