@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ConflictException extends AmazonECSException
The RunTask
request could not be processed due to conflicts. The provided clientToken
is
already in use with a different RunTask
request. The resourceIds
are the existing task ARNs
which are already associated with the clientToken
.
To fix this issue:
Run RunTask
with a unique clientToken
.
Run RunTask
with the clientToken
and the original set of parameters
AmazonServiceException.ErrorType
Constructor and Description |
---|
ConflictException(String message)
Constructs a new ConflictException with the specified error message.
|
Modifier and Type | Method and Description |
---|---|
List<String> |
getResourceIds()
The existing task ARNs which are already associated with the
clientToken . |
void |
setResourceIds(Collection<String> resourceIds)
The existing task ARNs which are already associated with the
clientToken . |
ConflictException |
withResourceIds(Collection<String> resourceIds)
The existing task ARNs which are already associated with the
clientToken . |
ConflictException |
withResourceIds(String... resourceIds)
The existing task ARNs which are already associated with the
clientToken . |
getErrorCode, getErrorMessage, getErrorType, getHttpHeaders, getMessage, getProxyHost, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setHttpHeaders, setProxyHost, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCode
isRetryable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ConflictException(String message)
message
- Describes the error encountered.public List<String> getResourceIds()
The existing task ARNs which are already associated with the clientToken
.
clientToken
.public void setResourceIds(Collection<String> resourceIds)
The existing task ARNs which are already associated with the clientToken
.
resourceIds
- The existing task ARNs which are already associated with the clientToken
.public ConflictException withResourceIds(String... resourceIds)
The existing task ARNs which are already associated with the clientToken
.
NOTE: This method appends the values to the existing list (if any). Use
setResourceIds(java.util.Collection)
or withResourceIds(java.util.Collection)
if you want to
override the existing values.
resourceIds
- The existing task ARNs which are already associated with the clientToken
.public ConflictException withResourceIds(Collection<String> resourceIds)
The existing task ARNs which are already associated with the clientToken
.
resourceIds
- The existing task ARNs which are already associated with the clientToken
.