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
CancelBatchErrorCode
public void setCode(java.lang.String code)
Constraints:
Allowed Values: fleetRequestIdDoesNotExist, fleetRequestIdMalformed, fleetRequestNotInCancellableState, unexpectedError
code
- The error code.CancelBatchErrorCode
public 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.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 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.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.