AWS SDK for C++

AWS SDK for C++ Version 1.11.829

Loading...
Searching...
No Matches
GetWhatsAppFlowResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/socialmessaging/SocialMessaging_EXPORTS.h>
11#include <aws/socialmessaging/model/MetaFlowApplicationInfo.h>
12#include <aws/socialmessaging/model/MetaFlowCategory.h>
13#include <aws/socialmessaging/model/MetaFlowHealthStatus.h>
14#include <aws/socialmessaging/model/MetaFlowPreviewInfo.h>
15#include <aws/socialmessaging/model/MetaFlowWhatsAppBusinessAccountInfo.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace SocialMessaging {
29namespace Model {
31 public:
32 AWS_SOCIALMESSAGING_API GetWhatsAppFlowResult() = default;
35
37
40 inline const Aws::String& GetFlowId() const { return m_flowId; }
41 template <typename FlowIdT = Aws::String>
42 void SetFlowId(FlowIdT&& value) {
43 m_flowIdHasBeenSet = true;
44 m_flowId = std::forward<FlowIdT>(value);
45 }
46 template <typename FlowIdT = Aws::String>
48 SetFlowId(std::forward<FlowIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetFlowName() const { return m_flowName; }
58 template <typename FlowNameT = Aws::String>
59 void SetFlowName(FlowNameT&& value) {
60 m_flowNameHasBeenSet = true;
61 m_flowName = std::forward<FlowNameT>(value);
62 }
63 template <typename FlowNameT = Aws::String>
64 GetWhatsAppFlowResult& WithFlowName(FlowNameT&& value) {
65 SetFlowName(std::forward<FlowNameT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::String& GetFlowStatus() const { return m_flowStatus; }
76 template <typename FlowStatusT = Aws::String>
77 void SetFlowStatus(FlowStatusT&& value) {
78 m_flowStatusHasBeenSet = true;
79 m_flowStatus = std::forward<FlowStatusT>(value);
80 }
81 template <typename FlowStatusT = Aws::String>
82 GetWhatsAppFlowResult& WithFlowStatus(FlowStatusT&& value) {
83 SetFlowStatus(std::forward<FlowStatusT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::Vector<MetaFlowCategory>& GetCategories() const { return m_categories; }
93 template <typename CategoriesT = Aws::Vector<MetaFlowCategory>>
94 void SetCategories(CategoriesT&& value) {
95 m_categoriesHasBeenSet = true;
96 m_categories = std::forward<CategoriesT>(value);
97 }
98 template <typename CategoriesT = Aws::Vector<MetaFlowCategory>>
99 GetWhatsAppFlowResult& WithCategories(CategoriesT&& value) {
100 SetCategories(std::forward<CategoriesT>(value));
101 return *this;
102 }
104 m_categoriesHasBeenSet = true;
105 m_categories.push_back(value);
106 return *this;
107 }
109
111
114 inline const Aws::Vector<Aws::String>& GetValidationErrors() const { return m_validationErrors; }
115 template <typename ValidationErrorsT = Aws::Vector<Aws::String>>
116 void SetValidationErrors(ValidationErrorsT&& value) {
117 m_validationErrorsHasBeenSet = true;
118 m_validationErrors = std::forward<ValidationErrorsT>(value);
119 }
120 template <typename ValidationErrorsT = Aws::Vector<Aws::String>>
121 GetWhatsAppFlowResult& WithValidationErrors(ValidationErrorsT&& value) {
122 SetValidationErrors(std::forward<ValidationErrorsT>(value));
123 return *this;
124 }
125 template <typename ValidationErrorsT = Aws::String>
126 GetWhatsAppFlowResult& AddValidationErrors(ValidationErrorsT&& value) {
127 m_validationErrorsHasBeenSet = true;
128 m_validationErrors.emplace_back(std::forward<ValidationErrorsT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::String& GetJsonVersion() const { return m_jsonVersion; }
138 template <typename JsonVersionT = Aws::String>
139 void SetJsonVersion(JsonVersionT&& value) {
140 m_jsonVersionHasBeenSet = true;
141 m_jsonVersion = std::forward<JsonVersionT>(value);
142 }
143 template <typename JsonVersionT = Aws::String>
144 GetWhatsAppFlowResult& WithJsonVersion(JsonVersionT&& value) {
145 SetJsonVersion(std::forward<JsonVersionT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::String& GetDataApiVersion() const { return m_dataApiVersion; }
155 template <typename DataApiVersionT = Aws::String>
156 void SetDataApiVersion(DataApiVersionT&& value) {
157 m_dataApiVersionHasBeenSet = true;
158 m_dataApiVersion = std::forward<DataApiVersionT>(value);
159 }
160 template <typename DataApiVersionT = Aws::String>
161 GetWhatsAppFlowResult& WithDataApiVersion(DataApiVersionT&& value) {
162 SetDataApiVersion(std::forward<DataApiVersionT>(value));
163 return *this;
164 }
166
168
171 inline const Aws::String& GetEndpointUri() const { return m_endpointUri; }
172 template <typename EndpointUriT = Aws::String>
173 void SetEndpointUri(EndpointUriT&& value) {
174 m_endpointUriHasBeenSet = true;
175 m_endpointUri = std::forward<EndpointUriT>(value);
176 }
177 template <typename EndpointUriT = Aws::String>
178 GetWhatsAppFlowResult& WithEndpointUri(EndpointUriT&& value) {
179 SetEndpointUri(std::forward<EndpointUriT>(value));
180 return *this;
181 }
183
185
188 inline const MetaFlowPreviewInfo& GetPreview() const { return m_preview; }
189 template <typename PreviewT = MetaFlowPreviewInfo>
190 void SetPreview(PreviewT&& value) {
191 m_previewHasBeenSet = true;
192 m_preview = std::forward<PreviewT>(value);
193 }
194 template <typename PreviewT = MetaFlowPreviewInfo>
196 SetPreview(std::forward<PreviewT>(value));
197 return *this;
198 }
200
202
206 inline const MetaFlowWhatsAppBusinessAccountInfo& GetWhatsAppBusinessAccount() const { return m_whatsAppBusinessAccount; }
207 template <typename WhatsAppBusinessAccountT = MetaFlowWhatsAppBusinessAccountInfo>
208 void SetWhatsAppBusinessAccount(WhatsAppBusinessAccountT&& value) {
209 m_whatsAppBusinessAccountHasBeenSet = true;
210 m_whatsAppBusinessAccount = std::forward<WhatsAppBusinessAccountT>(value);
211 }
212 template <typename WhatsAppBusinessAccountT = MetaFlowWhatsAppBusinessAccountInfo>
213 GetWhatsAppFlowResult& WithWhatsAppBusinessAccount(WhatsAppBusinessAccountT&& value) {
214 SetWhatsAppBusinessAccount(std::forward<WhatsAppBusinessAccountT>(value));
215 return *this;
216 }
218
220
223 inline const MetaFlowApplicationInfo& GetApplication() const { return m_application; }
224 template <typename ApplicationT = MetaFlowApplicationInfo>
225 void SetApplication(ApplicationT&& value) {
226 m_applicationHasBeenSet = true;
227 m_application = std::forward<ApplicationT>(value);
228 }
229 template <typename ApplicationT = MetaFlowApplicationInfo>
230 GetWhatsAppFlowResult& WithApplication(ApplicationT&& value) {
231 SetApplication(std::forward<ApplicationT>(value));
232 return *this;
233 }
235
237
240 inline const MetaFlowHealthStatus& GetHealthStatus() const { return m_healthStatus; }
241 template <typename HealthStatusT = MetaFlowHealthStatus>
242 void SetHealthStatus(HealthStatusT&& value) {
243 m_healthStatusHasBeenSet = true;
244 m_healthStatus = std::forward<HealthStatusT>(value);
245 }
246 template <typename HealthStatusT = MetaFlowHealthStatus>
247 GetWhatsAppFlowResult& WithHealthStatus(HealthStatusT&& value) {
248 SetHealthStatus(std::forward<HealthStatusT>(value));
249 return *this;
250 }
252
254
255 inline const Aws::String& GetRequestId() const { return m_requestId; }
256 template <typename RequestIdT = Aws::String>
257 void SetRequestId(RequestIdT&& value) {
258 m_requestIdHasBeenSet = true;
259 m_requestId = std::forward<RequestIdT>(value);
260 }
261 template <typename RequestIdT = Aws::String>
263 SetRequestId(std::forward<RequestIdT>(value));
264 return *this;
265 }
267 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
268
269 private:
270 Aws::String m_flowId;
271
272 Aws::String m_flowName;
273
274 Aws::String m_flowStatus;
275
277
278 Aws::Vector<Aws::String> m_validationErrors;
279
280 Aws::String m_jsonVersion;
281
282 Aws::String m_dataApiVersion;
283
284 Aws::String m_endpointUri;
285
286 MetaFlowPreviewInfo m_preview;
287
288 MetaFlowWhatsAppBusinessAccountInfo m_whatsAppBusinessAccount;
289
290 MetaFlowApplicationInfo m_application;
291
292 MetaFlowHealthStatus m_healthStatus;
293
294 Aws::String m_requestId;
295 Aws::Http::HttpResponseCode m_HttpResponseCode;
296 bool m_flowIdHasBeenSet = false;
297 bool m_flowNameHasBeenSet = false;
298 bool m_flowStatusHasBeenSet = false;
299 bool m_categoriesHasBeenSet = false;
300 bool m_validationErrorsHasBeenSet = false;
301 bool m_jsonVersionHasBeenSet = false;
302 bool m_dataApiVersionHasBeenSet = false;
303 bool m_endpointUriHasBeenSet = false;
304 bool m_previewHasBeenSet = false;
305 bool m_whatsAppBusinessAccountHasBeenSet = false;
306 bool m_applicationHasBeenSet = false;
307 bool m_healthStatusHasBeenSet = false;
308 bool m_requestIdHasBeenSet = false;
309};
310
311} // namespace Model
312} // namespace SocialMessaging
313} // namespace Aws
GetWhatsAppFlowResult & WithWhatsAppBusinessAccount(WhatsAppBusinessAccountT &&value)
GetWhatsAppFlowResult & WithValidationErrors(ValidationErrorsT &&value)
AWS_SOCIALMESSAGING_API GetWhatsAppFlowResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetWhatsAppBusinessAccount(WhatsAppBusinessAccountT &&value)
GetWhatsAppFlowResult & WithFlowId(FlowIdT &&value)
GetWhatsAppFlowResult & WithEndpointUri(EndpointUriT &&value)
AWS_SOCIALMESSAGING_API GetWhatsAppFlowResult()=default
const MetaFlowHealthStatus & GetHealthStatus() const
const Aws::Vector< MetaFlowCategory > & GetCategories() const
const Aws::Vector< Aws::String > & GetValidationErrors() const
GetWhatsAppFlowResult & AddValidationErrors(ValidationErrorsT &&value)
GetWhatsAppFlowResult & WithPreview(PreviewT &&value)
const MetaFlowApplicationInfo & GetApplication() const
GetWhatsAppFlowResult & WithFlowStatus(FlowStatusT &&value)
AWS_SOCIALMESSAGING_API GetWhatsAppFlowResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const MetaFlowWhatsAppBusinessAccountInfo & GetWhatsAppBusinessAccount() const
GetWhatsAppFlowResult & WithRequestId(RequestIdT &&value)
GetWhatsAppFlowResult & WithFlowName(FlowNameT &&value)
GetWhatsAppFlowResult & WithApplication(ApplicationT &&value)
GetWhatsAppFlowResult & WithJsonVersion(JsonVersionT &&value)
GetWhatsAppFlowResult & WithHealthStatus(HealthStatusT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetWhatsAppFlowResult & WithCategories(CategoriesT &&value)
GetWhatsAppFlowResult & WithDataApiVersion(DataApiVersionT &&value)
GetWhatsAppFlowResult & AddCategories(MetaFlowCategory 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