137 lines
5.0 KiB
C
137 lines
5.0 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/waf/WAF_EXPORTS.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <aws/waf/model/MigrationErrorType.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace Utils
|
|||
|
|
{
|
|||
|
|
namespace Json
|
|||
|
|
{
|
|||
|
|
class JsonValue;
|
|||
|
|
class JsonView;
|
|||
|
|
} // namespace Json
|
|||
|
|
} // namespace Utils
|
|||
|
|
namespace WAF
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The operation failed due to a problem with the migration. The failure cause
|
|||
|
|
* is provided in the exception, in the <code>MigrationErrorType</code>: </p> <ul>
|
|||
|
|
* <li> <p> <code>ENTITY_NOT_SUPPORTED</code> - The web ACL has an unsupported
|
|||
|
|
* entity but the <code>IgnoreUnsupportedType</code> is not set to true.</p> </li>
|
|||
|
|
* <li> <p> <code>ENTITY_NOT_FOUND</code> - The web ACL doesn't exist. </p> </li>
|
|||
|
|
* <li> <p> <code>S3_BUCKET_NO_PERMISSION</code> - You don't have permission to
|
|||
|
|
* perform the <code>PutObject</code> action to the specified Amazon S3 bucket.</p>
|
|||
|
|
* </li> <li> <p> <code>S3_BUCKET_NOT_ACCESSIBLE</code> - The bucket policy doesn't
|
|||
|
|
* allow AWS WAF to perform the <code>PutObject</code> action in the bucket.</p>
|
|||
|
|
* </li> <li> <p> <code>S3_BUCKET_NOT_FOUND</code> - The S3 bucket doesn't exist.
|
|||
|
|
* </p> </li> <li> <p> <code>S3_BUCKET_INVALID_REGION</code> - The S3 bucket is not
|
|||
|
|
* in the same Region as the web ACL.</p> </li> <li> <p>
|
|||
|
|
* <code>S3_INTERNAL_ERROR</code> - AWS WAF failed to create the template in the S3
|
|||
|
|
* bucket for another reason.</p> </li> </ul><p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/WAFEntityMigrationException">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_WAF_API WAFEntityMigrationException
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
WAFEntityMigrationException();
|
|||
|
|
WAFEntityMigrationException(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
WAFEntityMigrationException& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
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;
|
|||
|
|
|
|||
|
|
MigrationErrorType m_migrationErrorType;
|
|||
|
|
bool m_migrationErrorTypeHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_migrationErrorReason;
|
|||
|
|
bool m_migrationErrorReasonHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace WAF
|
|||
|
|
} // namespace Aws
|