AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
WAFEntityMigrationException.h
1
6#pragma once
7#include <aws/waf/WAF_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/waf/model/MigrationErrorType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WAF
23{
24namespace Model
25{
26
46 {
47 public:
48 AWS_WAF_API WAFEntityMigrationException() = default;
52
53
55
56 inline const Aws::String& GetMessage() const { return m_message; }
57 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
58 template<typename MessageT = Aws::String>
59 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
60 template<typename MessageT = Aws::String>
61 WAFEntityMigrationException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
63
65
66 inline MigrationErrorType GetMigrationErrorType() const { return m_migrationErrorType; }
67 inline bool MigrationErrorTypeHasBeenSet() const { return m_migrationErrorTypeHasBeenSet; }
68 inline void SetMigrationErrorType(MigrationErrorType value) { m_migrationErrorTypeHasBeenSet = true; m_migrationErrorType = value; }
71
73
74 inline const Aws::String& GetMigrationErrorReason() const { return m_migrationErrorReason; }
75 inline bool MigrationErrorReasonHasBeenSet() const { return m_migrationErrorReasonHasBeenSet; }
76 template<typename MigrationErrorReasonT = Aws::String>
77 void SetMigrationErrorReason(MigrationErrorReasonT&& value) { m_migrationErrorReasonHasBeenSet = true; m_migrationErrorReason = std::forward<MigrationErrorReasonT>(value); }
78 template<typename MigrationErrorReasonT = Aws::String>
79 WAFEntityMigrationException& WithMigrationErrorReason(MigrationErrorReasonT&& value) { SetMigrationErrorReason(std::forward<MigrationErrorReasonT>(value)); return *this;}
81 private:
82
83 Aws::String m_message;
84 bool m_messageHasBeenSet = false;
85
87 bool m_migrationErrorTypeHasBeenSet = false;
88
89 Aws::String m_migrationErrorReason;
90 bool m_migrationErrorReasonHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace WAF
95} // namespace Aws
AWS_WAF_API WAFEntityMigrationException(Aws::Utils::Json::JsonView jsonValue)
void SetMigrationErrorReason(MigrationErrorReasonT &&value)
WAFEntityMigrationException & WithMessage(MessageT &&value)
WAFEntityMigrationException & WithMigrationErrorReason(MigrationErrorReasonT &&value)
AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const
WAFEntityMigrationException & WithMigrationErrorType(MigrationErrorType value)
AWS_WAF_API WAFEntityMigrationException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WAF_API WAFEntityMigrationException()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue