Class ValidationException

All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<ValidationException.Builder,ValidationException>

@Generated("software.amazon.awssdk:codegen") public final class ValidationException extends IdentitystoreException implements ToCopyableBuilder<ValidationException.Builder,ValidationException>

The request failed because it contains a syntax error.

See Also:
  • Method Details

    • toBuilder

      public ValidationException.Builder toBuilder()
      Description copied from class: AwsServiceException
      Create a AwsServiceException.Builder initialized with the properties of this AwsServiceException.
      Specified by:
      toBuilder in interface ToCopyableBuilder<ValidationException.Builder,ValidationException>
      Overrides:
      toBuilder in class IdentitystoreException
      Returns:
      A new builder initialized with this config's properties.
    • builder

      public static ValidationException.Builder builder()
    • serializableBuilderClass

      public static Class<? extends ValidationException.Builder> serializableBuilderClass()
    • requestIdValue

      public String requestIdValue()

      The identifier for each request. This value is a globally unique ID that is generated by the identity store service for each sent request, and is then returned inside the exception if the request fails.

      Returns:
      The identifier for each request. This value is a globally unique ID that is generated by the identity store service for each sent request, and is then returned inside the exception if the request fails.
    • reason

      public ValidationExceptionReason reason()

      Indicates the reason for the validation error when the service is unable to access a Customer Managed KMS key. For non-KMS permission errors, this field is not included.

      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().

      Returns:
      Indicates the reason for the validation error when the service is unable to access a Customer Managed KMS key. For non-KMS permission errors, this field is not included.
      See Also:
    • reasonAsString

      public String reasonAsString()

      Indicates the reason for the validation error when the service is unable to access a Customer Managed KMS key. For non-KMS permission errors, this field is not included.

      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().

      Returns:
      Indicates the reason for the validation error when the service is unable to access a Customer Managed KMS key. For non-KMS permission errors, this field is not included.
      See Also:
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Overrides:
      sdkFields in class SdkServiceException
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.