AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetMigrationResult.h
1
6#pragma once
7#include <aws/lex-models/LexModelBuildingService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lex-models/model/Locale.h>
10#include <aws/lex-models/model/MigrationStatus.h>
11#include <aws/lex-models/model/MigrationStrategy.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/lex-models/model/MigrationAlert.h>
15#include <utility>
16
17namespace Aws
18{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace LexModelBuildingService
30{
31namespace Model
32{
34 {
35 public:
36 AWS_LEXMODELBUILDINGSERVICE_API GetMigrationResult() = default;
39
40
42
46 inline const Aws::String& GetMigrationId() const { return m_migrationId; }
47 template<typename MigrationIdT = Aws::String>
48 void SetMigrationId(MigrationIdT&& value) { m_migrationIdHasBeenSet = true; m_migrationId = std::forward<MigrationIdT>(value); }
49 template<typename MigrationIdT = Aws::String>
50 GetMigrationResult& WithMigrationId(MigrationIdT&& value) { SetMigrationId(std::forward<MigrationIdT>(value)); return *this;}
52
54
57 inline const Aws::String& GetV1BotName() const { return m_v1BotName; }
58 template<typename V1BotNameT = Aws::String>
59 void SetV1BotName(V1BotNameT&& value) { m_v1BotNameHasBeenSet = true; m_v1BotName = std::forward<V1BotNameT>(value); }
60 template<typename V1BotNameT = Aws::String>
61 GetMigrationResult& WithV1BotName(V1BotNameT&& value) { SetV1BotName(std::forward<V1BotNameT>(value)); return *this;}
63
65
68 inline const Aws::String& GetV1BotVersion() const { return m_v1BotVersion; }
69 template<typename V1BotVersionT = Aws::String>
70 void SetV1BotVersion(V1BotVersionT&& value) { m_v1BotVersionHasBeenSet = true; m_v1BotVersion = std::forward<V1BotVersionT>(value); }
71 template<typename V1BotVersionT = Aws::String>
72 GetMigrationResult& WithV1BotVersion(V1BotVersionT&& value) { SetV1BotVersion(std::forward<V1BotVersionT>(value)); return *this;}
74
76
79 inline Locale GetV1BotLocale() const { return m_v1BotLocale; }
80 inline void SetV1BotLocale(Locale value) { m_v1BotLocaleHasBeenSet = true; m_v1BotLocale = value; }
81 inline GetMigrationResult& WithV1BotLocale(Locale value) { SetV1BotLocale(value); return *this;}
83
85
89 inline const Aws::String& GetV2BotId() const { return m_v2BotId; }
90 template<typename V2BotIdT = Aws::String>
91 void SetV2BotId(V2BotIdT&& value) { m_v2BotIdHasBeenSet = true; m_v2BotId = std::forward<V2BotIdT>(value); }
92 template<typename V2BotIdT = Aws::String>
93 GetMigrationResult& WithV2BotId(V2BotIdT&& value) { SetV2BotId(std::forward<V2BotIdT>(value)); return *this;}
95
97
100 inline const Aws::String& GetV2BotRole() const { return m_v2BotRole; }
101 template<typename V2BotRoleT = Aws::String>
102 void SetV2BotRole(V2BotRoleT&& value) { m_v2BotRoleHasBeenSet = true; m_v2BotRole = std::forward<V2BotRoleT>(value); }
103 template<typename V2BotRoleT = Aws::String>
104 GetMigrationResult& WithV2BotRole(V2BotRoleT&& value) { SetV2BotRole(std::forward<V2BotRoleT>(value)); return *this;}
106
108
114 inline MigrationStatus GetMigrationStatus() const { return m_migrationStatus; }
115 inline void SetMigrationStatus(MigrationStatus value) { m_migrationStatusHasBeenSet = true; m_migrationStatus = value; }
118
120
129 inline MigrationStrategy GetMigrationStrategy() const { return m_migrationStrategy; }
130 inline void SetMigrationStrategy(MigrationStrategy value) { m_migrationStrategyHasBeenSet = true; m_migrationStrategy = value; }
133
135
138 inline const Aws::Utils::DateTime& GetMigrationTimestamp() const { return m_migrationTimestamp; }
139 template<typename MigrationTimestampT = Aws::Utils::DateTime>
140 void SetMigrationTimestamp(MigrationTimestampT&& value) { m_migrationTimestampHasBeenSet = true; m_migrationTimestamp = std::forward<MigrationTimestampT>(value); }
141 template<typename MigrationTimestampT = Aws::Utils::DateTime>
142 GetMigrationResult& WithMigrationTimestamp(MigrationTimestampT&& value) { SetMigrationTimestamp(std::forward<MigrationTimestampT>(value)); return *this;}
144
146
154 inline const Aws::Vector<MigrationAlert>& GetAlerts() const { return m_alerts; }
155 template<typename AlertsT = Aws::Vector<MigrationAlert>>
156 void SetAlerts(AlertsT&& value) { m_alertsHasBeenSet = true; m_alerts = std::forward<AlertsT>(value); }
157 template<typename AlertsT = Aws::Vector<MigrationAlert>>
158 GetMigrationResult& WithAlerts(AlertsT&& value) { SetAlerts(std::forward<AlertsT>(value)); return *this;}
159 template<typename AlertsT = MigrationAlert>
160 GetMigrationResult& AddAlerts(AlertsT&& value) { m_alertsHasBeenSet = true; m_alerts.emplace_back(std::forward<AlertsT>(value)); return *this; }
162
164
165 inline const Aws::String& GetRequestId() const { return m_requestId; }
166 template<typename RequestIdT = Aws::String>
167 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
168 template<typename RequestIdT = Aws::String>
169 GetMigrationResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
171 private:
172
173 Aws::String m_migrationId;
174 bool m_migrationIdHasBeenSet = false;
175
176 Aws::String m_v1BotName;
177 bool m_v1BotNameHasBeenSet = false;
178
179 Aws::String m_v1BotVersion;
180 bool m_v1BotVersionHasBeenSet = false;
181
182 Locale m_v1BotLocale{Locale::NOT_SET};
183 bool m_v1BotLocaleHasBeenSet = false;
184
185 Aws::String m_v2BotId;
186 bool m_v2BotIdHasBeenSet = false;
187
188 Aws::String m_v2BotRole;
189 bool m_v2BotRoleHasBeenSet = false;
190
191 MigrationStatus m_migrationStatus{MigrationStatus::NOT_SET};
192 bool m_migrationStatusHasBeenSet = false;
193
195 bool m_migrationStrategyHasBeenSet = false;
196
197 Aws::Utils::DateTime m_migrationTimestamp{};
198 bool m_migrationTimestampHasBeenSet = false;
199
201 bool m_alertsHasBeenSet = false;
202
203 Aws::String m_requestId;
204 bool m_requestIdHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace LexModelBuildingService
209} // namespace Aws
GetMigrationResult & WithV1BotName(V1BotNameT &&value)
GetMigrationResult & WithMigrationTimestamp(MigrationTimestampT &&value)
GetMigrationResult & WithMigrationId(MigrationIdT &&value)
AWS_LEXMODELBUILDINGSERVICE_API GetMigrationResult()=default
const Aws::Utils::DateTime & GetMigrationTimestamp() const
AWS_LEXMODELBUILDINGSERVICE_API GetMigrationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetMigrationResult & WithMigrationStrategy(MigrationStrategy value)
GetMigrationResult & WithRequestId(RequestIdT &&value)
GetMigrationResult & WithV1BotVersion(V1BotVersionT &&value)
GetMigrationResult & WithV2BotId(V2BotIdT &&value)
AWS_LEXMODELBUILDINGSERVICE_API GetMigrationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetMigrationResult & WithV2BotRole(V2BotRoleT &&value)
const Aws::Vector< MigrationAlert > & GetAlerts() const
GetMigrationResult & WithMigrationStatus(MigrationStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue