AWS SDK for C++

AWS SDK for C++ Version 1.11.926

Loading...
Searching...
No Matches
MigrationSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lex-models/LexModelBuildingService_EXPORTS.h>
10#include <aws/lex-models/model/Locale.h>
11#include <aws/lex-models/model/MigrationStatus.h>
12#include <aws/lex-models/model/MigrationStrategy.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace LexModelBuildingService {
24namespace Model {
25
33 public:
34 AWS_LEXMODELBUILDINGSERVICE_API MigrationSummary() = default;
35 AWS_LEXMODELBUILDINGSERVICE_API MigrationSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_LEXMODELBUILDINGSERVICE_API MigrationSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetMigrationId() const { return m_migrationId; }
44 inline bool MigrationIdHasBeenSet() const { return m_migrationIdHasBeenSet; }
45 template <typename MigrationIdT = Aws::String>
46 void SetMigrationId(MigrationIdT&& value) {
47 m_migrationIdHasBeenSet = true;
48 m_migrationId = std::forward<MigrationIdT>(value);
49 }
50 template <typename MigrationIdT = Aws::String>
51 MigrationSummary& WithMigrationId(MigrationIdT&& value) {
52 SetMigrationId(std::forward<MigrationIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetV1BotName() const { return m_v1BotName; }
62 inline bool V1BotNameHasBeenSet() const { return m_v1BotNameHasBeenSet; }
63 template <typename V1BotNameT = Aws::String>
64 void SetV1BotName(V1BotNameT&& value) {
65 m_v1BotNameHasBeenSet = true;
66 m_v1BotName = std::forward<V1BotNameT>(value);
67 }
68 template <typename V1BotNameT = Aws::String>
69 MigrationSummary& WithV1BotName(V1BotNameT&& value) {
70 SetV1BotName(std::forward<V1BotNameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetV1BotVersion() const { return m_v1BotVersion; }
80 inline bool V1BotVersionHasBeenSet() const { return m_v1BotVersionHasBeenSet; }
81 template <typename V1BotVersionT = Aws::String>
82 void SetV1BotVersion(V1BotVersionT&& value) {
83 m_v1BotVersionHasBeenSet = true;
84 m_v1BotVersion = std::forward<V1BotVersionT>(value);
85 }
86 template <typename V1BotVersionT = Aws::String>
87 MigrationSummary& WithV1BotVersion(V1BotVersionT&& value) {
88 SetV1BotVersion(std::forward<V1BotVersionT>(value));
89 return *this;
90 }
92
94
97 inline Locale GetV1BotLocale() const { return m_v1BotLocale; }
98 inline bool V1BotLocaleHasBeenSet() const { return m_v1BotLocaleHasBeenSet; }
99 inline void SetV1BotLocale(Locale value) {
100 m_v1BotLocaleHasBeenSet = true;
101 m_v1BotLocale = value;
102 }
104 SetV1BotLocale(value);
105 return *this;
106 }
108
110
114 inline const Aws::String& GetV2BotId() const { return m_v2BotId; }
115 inline bool V2BotIdHasBeenSet() const { return m_v2BotIdHasBeenSet; }
116 template <typename V2BotIdT = Aws::String>
117 void SetV2BotId(V2BotIdT&& value) {
118 m_v2BotIdHasBeenSet = true;
119 m_v2BotId = std::forward<V2BotIdT>(value);
120 }
121 template <typename V2BotIdT = Aws::String>
122 MigrationSummary& WithV2BotId(V2BotIdT&& value) {
123 SetV2BotId(std::forward<V2BotIdT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetV2BotRole() const { return m_v2BotRole; }
133 inline bool V2BotRoleHasBeenSet() const { return m_v2BotRoleHasBeenSet; }
134 template <typename V2BotRoleT = Aws::String>
135 void SetV2BotRole(V2BotRoleT&& value) {
136 m_v2BotRoleHasBeenSet = true;
137 m_v2BotRole = std::forward<V2BotRoleT>(value);
138 }
139 template <typename V2BotRoleT = Aws::String>
140 MigrationSummary& WithV2BotRole(V2BotRoleT&& value) {
141 SetV2BotRole(std::forward<V2BotRoleT>(value));
142 return *this;
143 }
145
147
152 inline MigrationStatus GetMigrationStatus() const { return m_migrationStatus; }
153 inline bool MigrationStatusHasBeenSet() const { return m_migrationStatusHasBeenSet; }
155 m_migrationStatusHasBeenSet = true;
156 m_migrationStatus = value;
157 }
159 SetMigrationStatus(value);
160 return *this;
161 }
163
165
168 inline MigrationStrategy GetMigrationStrategy() const { return m_migrationStrategy; }
169 inline bool MigrationStrategyHasBeenSet() const { return m_migrationStrategyHasBeenSet; }
171 m_migrationStrategyHasBeenSet = true;
172 m_migrationStrategy = value;
173 }
176 return *this;
177 }
179
181
184 inline const Aws::Utils::DateTime& GetMigrationTimestamp() const { return m_migrationTimestamp; }
185 inline bool MigrationTimestampHasBeenSet() const { return m_migrationTimestampHasBeenSet; }
186 template <typename MigrationTimestampT = Aws::Utils::DateTime>
187 void SetMigrationTimestamp(MigrationTimestampT&& value) {
188 m_migrationTimestampHasBeenSet = true;
189 m_migrationTimestamp = std::forward<MigrationTimestampT>(value);
190 }
191 template <typename MigrationTimestampT = Aws::Utils::DateTime>
192 MigrationSummary& WithMigrationTimestamp(MigrationTimestampT&& value) {
193 SetMigrationTimestamp(std::forward<MigrationTimestampT>(value));
194 return *this;
195 }
197 private:
198 Aws::String m_migrationId;
199
200 Aws::String m_v1BotName;
201
202 Aws::String m_v1BotVersion;
203
204 Locale m_v1BotLocale{Locale::NOT_SET};
205
206 Aws::String m_v2BotId;
207
208 Aws::String m_v2BotRole;
209
210 MigrationStatus m_migrationStatus{MigrationStatus::NOT_SET};
211
213
214 Aws::Utils::DateTime m_migrationTimestamp{};
215 bool m_migrationIdHasBeenSet = false;
216 bool m_v1BotNameHasBeenSet = false;
217 bool m_v1BotVersionHasBeenSet = false;
218 bool m_v1BotLocaleHasBeenSet = false;
219 bool m_v2BotIdHasBeenSet = false;
220 bool m_v2BotRoleHasBeenSet = false;
221 bool m_migrationStatusHasBeenSet = false;
222 bool m_migrationStrategyHasBeenSet = false;
223 bool m_migrationTimestampHasBeenSet = false;
224};
225
226} // namespace Model
227} // namespace LexModelBuildingService
228} // namespace Aws
AWS_LEXMODELBUILDINGSERVICE_API MigrationSummary(Aws::Utils::Json::JsonView jsonValue)
MigrationSummary & WithV1BotVersion(V1BotVersionT &&value)
MigrationSummary & WithMigrationId(MigrationIdT &&value)
AWS_LEXMODELBUILDINGSERVICE_API MigrationSummary()=default
const Aws::Utils::DateTime & GetMigrationTimestamp() const
MigrationSummary & WithMigrationStrategy(MigrationStrategy value)
MigrationSummary & WithMigrationTimestamp(MigrationTimestampT &&value)
AWS_LEXMODELBUILDINGSERVICE_API MigrationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
MigrationSummary & WithV1BotName(V1BotNameT &&value)
MigrationSummary & WithV2BotId(V2BotIdT &&value)
void SetMigrationTimestamp(MigrationTimestampT &&value)
MigrationSummary & WithV2BotRole(V2BotRoleT &&value)
MigrationSummary & WithMigrationStatus(MigrationStatus value)
AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue