/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace WAF { namespace Model { /** *

The operation failed due to a problem with the migration. The failure cause * is provided in the exception, in the MigrationErrorType:

    *
  • ENTITY_NOT_SUPPORTED - The web ACL has an unsupported * entity but the IgnoreUnsupportedType is not set to true.

  • *
  • ENTITY_NOT_FOUND - The web ACL doesn't exist.

  • *
  • S3_BUCKET_NO_PERMISSION - You don't have permission to * perform the PutObject action to the specified Amazon S3 bucket.

    *
  • S3_BUCKET_NOT_ACCESSIBLE - The bucket policy doesn't * allow AWS WAF to perform the PutObject action in the bucket.

    *
  • S3_BUCKET_NOT_FOUND - The S3 bucket doesn't exist. *

  • S3_BUCKET_INVALID_REGION - The S3 bucket is not * in the same Region as the web ACL.

  • * S3_INTERNAL_ERROR - AWS WAF failed to create the template in the S3 * bucket for another reason.

See Also:

AWS * API Reference

*/ class WAFEntityMigrationException { public: AWS_WAF_API WAFEntityMigrationException(); AWS_WAF_API WAFEntityMigrationException(Aws::Utils::Json::JsonView jsonValue); AWS_WAF_API WAFEntityMigrationException& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const; inline const Aws::String& GetMessage() const{ return m_message; } inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } inline WAFEntityMigrationException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} inline WAFEntityMigrationException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} inline WAFEntityMigrationException& WithMessage(const char* value) { SetMessage(value); return *this;} inline const MigrationErrorType& GetMigrationErrorType() const{ return m_migrationErrorType; } inline bool MigrationErrorTypeHasBeenSet() const { return m_migrationErrorTypeHasBeenSet; } inline void SetMigrationErrorType(const MigrationErrorType& value) { m_migrationErrorTypeHasBeenSet = true; m_migrationErrorType = value; } inline void SetMigrationErrorType(MigrationErrorType&& value) { m_migrationErrorTypeHasBeenSet = true; m_migrationErrorType = std::move(value); } inline WAFEntityMigrationException& WithMigrationErrorType(const MigrationErrorType& value) { SetMigrationErrorType(value); return *this;} inline WAFEntityMigrationException& WithMigrationErrorType(MigrationErrorType&& value) { SetMigrationErrorType(std::move(value)); return *this;} inline const Aws::String& GetMigrationErrorReason() const{ return m_migrationErrorReason; } inline bool MigrationErrorReasonHasBeenSet() const { return m_migrationErrorReasonHasBeenSet; } inline void SetMigrationErrorReason(const Aws::String& value) { m_migrationErrorReasonHasBeenSet = true; m_migrationErrorReason = value; } inline void SetMigrationErrorReason(Aws::String&& value) { m_migrationErrorReasonHasBeenSet = true; m_migrationErrorReason = std::move(value); } inline void SetMigrationErrorReason(const char* value) { m_migrationErrorReasonHasBeenSet = true; m_migrationErrorReason.assign(value); } inline WAFEntityMigrationException& WithMigrationErrorReason(const Aws::String& value) { SetMigrationErrorReason(value); return *this;} inline WAFEntityMigrationException& WithMigrationErrorReason(Aws::String&& value) { SetMigrationErrorReason(std::move(value)); return *this;} inline WAFEntityMigrationException& WithMigrationErrorReason(const char* value) { SetMigrationErrorReason(value); return *this;} private: Aws::String m_message; bool m_messageHasBeenSet = false; MigrationErrorType m_migrationErrorType; bool m_migrationErrorTypeHasBeenSet = false; Aws::String m_migrationErrorReason; bool m_migrationErrorReasonHasBeenSet = false; }; } // namespace Model } // namespace WAF } // namespace Aws