AWS SDK for C++

AWS SDK for C++ Version 1.11.829

Loading...
Searching...
No Matches
CreateWhatsAppFlowResult.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
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace SocialMessaging {
24namespace Model {
26 public:
27 AWS_SOCIALMESSAGING_API CreateWhatsAppFlowResult() = default;
30
32
35 inline const Aws::String& GetFlowId() const { return m_flowId; }
36 template <typename FlowIdT = Aws::String>
37 void SetFlowId(FlowIdT&& value) {
38 m_flowIdHasBeenSet = true;
39 m_flowId = std::forward<FlowIdT>(value);
40 }
41 template <typename FlowIdT = Aws::String>
43 SetFlowId(std::forward<FlowIdT>(value));
44 return *this;
45 }
47
49
53 inline const Aws::Vector<Aws::String>& GetValidationErrors() const { return m_validationErrors; }
54 template <typename ValidationErrorsT = Aws::Vector<Aws::String>>
55 void SetValidationErrors(ValidationErrorsT&& value) {
56 m_validationErrorsHasBeenSet = true;
57 m_validationErrors = std::forward<ValidationErrorsT>(value);
58 }
59 template <typename ValidationErrorsT = Aws::Vector<Aws::String>>
60 CreateWhatsAppFlowResult& WithValidationErrors(ValidationErrorsT&& value) {
61 SetValidationErrors(std::forward<ValidationErrorsT>(value));
62 return *this;
63 }
64 template <typename ValidationErrorsT = Aws::String>
65 CreateWhatsAppFlowResult& AddValidationErrors(ValidationErrorsT&& value) {
66 m_validationErrorsHasBeenSet = true;
67 m_validationErrors.emplace_back(std::forward<ValidationErrorsT>(value));
68 return *this;
69 }
71
73
74 inline const Aws::String& GetRequestId() const { return m_requestId; }
75 template <typename RequestIdT = Aws::String>
76 void SetRequestId(RequestIdT&& value) {
77 m_requestIdHasBeenSet = true;
78 m_requestId = std::forward<RequestIdT>(value);
79 }
80 template <typename RequestIdT = Aws::String>
82 SetRequestId(std::forward<RequestIdT>(value));
83 return *this;
84 }
86 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
87
88 private:
89 Aws::String m_flowId;
90
91 Aws::Vector<Aws::String> m_validationErrors;
92
93 Aws::String m_requestId;
94 Aws::Http::HttpResponseCode m_HttpResponseCode;
95 bool m_flowIdHasBeenSet = false;
96 bool m_validationErrorsHasBeenSet = false;
97 bool m_requestIdHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace SocialMessaging
102} // namespace Aws
const Aws::Vector< Aws::String > & GetValidationErrors() const
AWS_SOCIALMESSAGING_API CreateWhatsAppFlowResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateWhatsAppFlowResult & WithRequestId(RequestIdT &&value)
AWS_SOCIALMESSAGING_API CreateWhatsAppFlowResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateWhatsAppFlowResult & WithValidationErrors(ValidationErrorsT &&value)
CreateWhatsAppFlowResult & AddValidationErrors(ValidationErrorsT &&value)
AWS_SOCIALMESSAGING_API CreateWhatsAppFlowResult()=default
CreateWhatsAppFlowResult & WithFlowId(FlowIdT &&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