@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InvalidRequestException extends AmazonDLMException
Bad request. The request is missing required parameters or has invalid parameters.
AmazonServiceException.ErrorType
Constructor and Description |
---|
InvalidRequestException(String message)
Constructs a new InvalidRequestException with the specified error message.
|
Modifier and Type | Method and Description |
---|---|
String |
getCode() |
List<String> |
getMutuallyExclusiveParameters()
The request included parameters that cannot be provided together.
|
List<String> |
getRequiredParameters()
The request omitted one or more required parameters.
|
void |
setCode(String code) |
void |
setMutuallyExclusiveParameters(Collection<String> mutuallyExclusiveParameters)
The request included parameters that cannot be provided together.
|
void |
setRequiredParameters(Collection<String> requiredParameters)
The request omitted one or more required parameters.
|
InvalidRequestException |
withCode(String code) |
InvalidRequestException |
withMutuallyExclusiveParameters(Collection<String> mutuallyExclusiveParameters)
The request included parameters that cannot be provided together.
|
InvalidRequestException |
withMutuallyExclusiveParameters(String... mutuallyExclusiveParameters)
The request included parameters that cannot be provided together.
|
InvalidRequestException |
withRequiredParameters(Collection<String> requiredParameters)
The request omitted one or more required parameters.
|
InvalidRequestException |
withRequiredParameters(String... requiredParameters)
The request omitted one or more required parameters.
|
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 InvalidRequestException(String message)
message
- Describes the error encountered.public void setCode(String code)
code
- public String getCode()
public InvalidRequestException withCode(String code)
code
- public List<String> getRequiredParameters()
The request omitted one or more required parameters.
public void setRequiredParameters(Collection<String> requiredParameters)
The request omitted one or more required parameters.
requiredParameters
- The request omitted one or more required parameters.public InvalidRequestException withRequiredParameters(String... requiredParameters)
The request omitted one or more required parameters.
NOTE: This method appends the values to the existing list (if any). Use
setRequiredParameters(java.util.Collection)
or withRequiredParameters(java.util.Collection)
if
you want to override the existing values.
requiredParameters
- The request omitted one or more required parameters.public InvalidRequestException withRequiredParameters(Collection<String> requiredParameters)
The request omitted one or more required parameters.
requiredParameters
- The request omitted one or more required parameters.public List<String> getMutuallyExclusiveParameters()
The request included parameters that cannot be provided together.
public void setMutuallyExclusiveParameters(Collection<String> mutuallyExclusiveParameters)
The request included parameters that cannot be provided together.
mutuallyExclusiveParameters
- The request included parameters that cannot be provided together.public InvalidRequestException withMutuallyExclusiveParameters(String... mutuallyExclusiveParameters)
The request included parameters that cannot be provided together.
NOTE: This method appends the values to the existing list (if any). Use
setMutuallyExclusiveParameters(java.util.Collection)
or
withMutuallyExclusiveParameters(java.util.Collection)
if you want to override the existing values.
mutuallyExclusiveParameters
- The request included parameters that cannot be provided together.public InvalidRequestException withMutuallyExclusiveParameters(Collection<String> mutuallyExclusiveParameters)
The request included parameters that cannot be provided together.
mutuallyExclusiveParameters
- The request included parameters that cannot be provided together.