AWS SDK for C++

AWS SDK for C++ Version 1.11.827

Loading...
Searching...
No Matches
CreateWhatsAppFlowRequest.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/socialmessaging/SocialMessagingRequest.h>
11#include <aws/socialmessaging/SocialMessaging_EXPORTS.h>
12#include <aws/socialmessaging/model/MetaFlowCategory.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SocialMessaging {
18namespace Model {
19
23 public:
24 AWS_SOCIALMESSAGING_API CreateWhatsAppFlowRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateWhatsAppFlow"; }
31
32 AWS_SOCIALMESSAGING_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetId() const { return m_id; }
39 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
40 template <typename IdT = Aws::String>
41 void SetId(IdT&& value) {
42 m_idHasBeenSet = true;
43 m_id = std::forward<IdT>(value);
44 }
45 template <typename IdT = Aws::String>
47 SetId(std::forward<IdT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetFlowName() const { return m_flowName; }
58 inline bool FlowNameHasBeenSet() const { return m_flowNameHasBeenSet; }
59 template <typename FlowNameT = Aws::String>
60 void SetFlowName(FlowNameT&& value) {
61 m_flowNameHasBeenSet = true;
62 m_flowName = std::forward<FlowNameT>(value);
63 }
64 template <typename FlowNameT = Aws::String>
66 SetFlowName(std::forward<FlowNameT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::Vector<MetaFlowCategory>& GetCategories() const { return m_categories; }
77 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
78 template <typename CategoriesT = Aws::Vector<MetaFlowCategory>>
79 void SetCategories(CategoriesT&& value) {
80 m_categoriesHasBeenSet = true;
81 m_categories = std::forward<CategoriesT>(value);
82 }
83 template <typename CategoriesT = Aws::Vector<MetaFlowCategory>>
85 SetCategories(std::forward<CategoriesT>(value));
86 return *this;
87 }
89 m_categoriesHasBeenSet = true;
90 m_categories.push_back(value);
91 return *this;
92 }
94
96
100 inline const Aws::Utils::ByteBuffer& GetFlowJson() const { return m_flowJson; }
101 inline bool FlowJsonHasBeenSet() const { return m_flowJsonHasBeenSet; }
102 template <typename FlowJsonT = Aws::Utils::ByteBuffer>
103 void SetFlowJson(FlowJsonT&& value) {
104 m_flowJsonHasBeenSet = true;
105 m_flowJson = std::forward<FlowJsonT>(value);
106 }
107 template <typename FlowJsonT = Aws::Utils::ByteBuffer>
109 SetFlowJson(std::forward<FlowJsonT>(value));
110 return *this;
111 }
113
115
119 inline bool GetPublish() const { return m_publish; }
120 inline bool PublishHasBeenSet() const { return m_publishHasBeenSet; }
121 inline void SetPublish(bool value) {
122 m_publishHasBeenSet = true;
123 m_publish = value;
124 }
126 SetPublish(value);
127 return *this;
128 }
130
132
136 inline const Aws::String& GetCloneFlowId() const { return m_cloneFlowId; }
137 inline bool CloneFlowIdHasBeenSet() const { return m_cloneFlowIdHasBeenSet; }
138 template <typename CloneFlowIdT = Aws::String>
139 void SetCloneFlowId(CloneFlowIdT&& value) {
140 m_cloneFlowIdHasBeenSet = true;
141 m_cloneFlowId = std::forward<CloneFlowIdT>(value);
142 }
143 template <typename CloneFlowIdT = Aws::String>
145 SetCloneFlowId(std::forward<CloneFlowIdT>(value));
146 return *this;
147 }
149 private:
150 Aws::String m_id;
151
152 Aws::String m_flowName;
153
155
156 Aws::Utils::ByteBuffer m_flowJson{};
157
158 bool m_publish{false};
159
160 Aws::String m_cloneFlowId;
161 bool m_idHasBeenSet = false;
162 bool m_flowNameHasBeenSet = false;
163 bool m_categoriesHasBeenSet = false;
164 bool m_flowJsonHasBeenSet = false;
165 bool m_publishHasBeenSet = false;
166 bool m_cloneFlowIdHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace SocialMessaging
171} // namespace Aws
CreateWhatsAppFlowRequest & WithCategories(CategoriesT &&value)
AWS_SOCIALMESSAGING_API Aws::String SerializePayload() const override
AWS_SOCIALMESSAGING_API CreateWhatsAppFlowRequest()=default
const Aws::Vector< MetaFlowCategory > & GetCategories() const
CreateWhatsAppFlowRequest & WithFlowJson(FlowJsonT &&value)
CreateWhatsAppFlowRequest & WithFlowName(FlowNameT &&value)
CreateWhatsAppFlowRequest & WithCloneFlowId(CloneFlowIdT &&value)
CreateWhatsAppFlowRequest & AddCategories(MetaFlowCategory value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector