@Generated(value="software.amazon.awssdk:codegen") public final class InvalidParameterException extends ShieldException implements ToCopyableBuilder<InvalidParameterException.Builder,InvalidParameterException>
Exception that indicates that the parameters passed to the API are invalid. If available, this exception includes details in additional properties.
| Modifier and Type | Class and Description |
|---|---|
static interface |
InvalidParameterException.Builder |
| Modifier and Type | Method and Description |
|---|---|
static InvalidParameterException.Builder |
builder() |
List<ValidationExceptionField> |
fields()
Fields that caused the exception.
|
boolean |
hasFields()
Returns true if the Fields property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
ValidationExceptionReason |
reason()
Additional information about the exception.
|
String |
reasonAsString()
Additional information about the exception.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends InvalidParameterException.Builder> |
serializableBuilderClass() |
InvalidParameterException.Builder |
toBuilder() |
awsErrorDetails, getMessage, isClockSkewException, isThrottlingExceptionextendedRequestId, requestId, statusCodecreate, retryableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcopyequalsBySdkFieldspublic InvalidParameterException.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<InvalidParameterException.Builder,InvalidParameterException>toBuilder in class ShieldExceptionpublic static InvalidParameterException.Builder builder()
public static Class<? extends InvalidParameterException.Builder> serializableBuilderClass()
public ValidationExceptionReason reason()
Additional information about the exception.
If the service returns an enum value that is not available in the current SDK version, reason will
return ValidationExceptionReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from reasonAsString().
ValidationExceptionReasonpublic String reasonAsString()
Additional information about the exception.
If the service returns an enum value that is not available in the current SDK version, reason will
return ValidationExceptionReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from reasonAsString().
ValidationExceptionReasonpublic boolean hasFields()
public List<ValidationExceptionField> fields()
Fields that caused the exception.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasFields() to see if a value was sent in this field.
Copyright © 2021. All rights reserved.