AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateChannelNamespaceRequest.h
1
6#pragma once
7#include <aws/appsync/AppSyncRequest.h>
8#include <aws/appsync/AppSync_EXPORTS.h>
9#include <aws/appsync/model/AuthMode.h>
10#include <aws/appsync/model/HandlerConfigs.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace AppSync {
19namespace Model {
20
24 public:
25 AWS_APPSYNC_API CreateChannelNamespaceRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateChannelNamespace"; }
32
33 AWS_APPSYNC_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetApiId() const { return m_apiId; }
40 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
41 template <typename ApiIdT = Aws::String>
42 void SetApiId(ApiIdT&& value) {
43 m_apiIdHasBeenSet = true;
44 m_apiId = std::forward<ApiIdT>(value);
45 }
46 template <typename ApiIdT = Aws::String>
48 SetApiId(std::forward<ApiIdT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
78 inline const Aws::Vector<AuthMode>& GetSubscribeAuthModes() const { return m_subscribeAuthModes; }
79 inline bool SubscribeAuthModesHasBeenSet() const { return m_subscribeAuthModesHasBeenSet; }
80 template <typename SubscribeAuthModesT = Aws::Vector<AuthMode>>
81 void SetSubscribeAuthModes(SubscribeAuthModesT&& value) {
82 m_subscribeAuthModesHasBeenSet = true;
83 m_subscribeAuthModes = std::forward<SubscribeAuthModesT>(value);
84 }
85 template <typename SubscribeAuthModesT = Aws::Vector<AuthMode>>
87 SetSubscribeAuthModes(std::forward<SubscribeAuthModesT>(value));
88 return *this;
89 }
90 template <typename SubscribeAuthModesT = AuthMode>
92 m_subscribeAuthModesHasBeenSet = true;
93 m_subscribeAuthModes.emplace_back(std::forward<SubscribeAuthModesT>(value));
94 return *this;
95 }
97
99
104 inline const Aws::Vector<AuthMode>& GetPublishAuthModes() const { return m_publishAuthModes; }
105 inline bool PublishAuthModesHasBeenSet() const { return m_publishAuthModesHasBeenSet; }
106 template <typename PublishAuthModesT = Aws::Vector<AuthMode>>
107 void SetPublishAuthModes(PublishAuthModesT&& value) {
108 m_publishAuthModesHasBeenSet = true;
109 m_publishAuthModes = std::forward<PublishAuthModesT>(value);
110 }
111 template <typename PublishAuthModesT = Aws::Vector<AuthMode>>
113 SetPublishAuthModes(std::forward<PublishAuthModesT>(value));
114 return *this;
115 }
116 template <typename PublishAuthModesT = AuthMode>
118 m_publishAuthModesHasBeenSet = true;
119 m_publishAuthModes.emplace_back(std::forward<PublishAuthModesT>(value));
120 return *this;
121 }
123
125
129 inline const Aws::String& GetCodeHandlers() const { return m_codeHandlers; }
130 inline bool CodeHandlersHasBeenSet() const { return m_codeHandlersHasBeenSet; }
131 template <typename CodeHandlersT = Aws::String>
132 void SetCodeHandlers(CodeHandlersT&& value) {
133 m_codeHandlersHasBeenSet = true;
134 m_codeHandlers = std::forward<CodeHandlersT>(value);
135 }
136 template <typename CodeHandlersT = Aws::String>
138 SetCodeHandlers(std::forward<CodeHandlersT>(value));
139 return *this;
140 }
142
144
145 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
146 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
147 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
148 void SetTags(TagsT&& value) {
149 m_tagsHasBeenSet = true;
150 m_tags = std::forward<TagsT>(value);
151 }
152 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
154 SetTags(std::forward<TagsT>(value));
155 return *this;
156 }
157 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
158 CreateChannelNamespaceRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
159 m_tagsHasBeenSet = true;
160 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
161 return *this;
162 }
164
166
170 inline const HandlerConfigs& GetHandlerConfigs() const { return m_handlerConfigs; }
171 inline bool HandlerConfigsHasBeenSet() const { return m_handlerConfigsHasBeenSet; }
172 template <typename HandlerConfigsT = HandlerConfigs>
173 void SetHandlerConfigs(HandlerConfigsT&& value) {
174 m_handlerConfigsHasBeenSet = true;
175 m_handlerConfigs = std::forward<HandlerConfigsT>(value);
176 }
177 template <typename HandlerConfigsT = HandlerConfigs>
179 SetHandlerConfigs(std::forward<HandlerConfigsT>(value));
180 return *this;
181 }
183 private:
184 Aws::String m_apiId;
185
186 Aws::String m_name;
187
188 Aws::Vector<AuthMode> m_subscribeAuthModes;
189
190 Aws::Vector<AuthMode> m_publishAuthModes;
191
192 Aws::String m_codeHandlers;
193
195
196 HandlerConfigs m_handlerConfigs;
197 bool m_apiIdHasBeenSet = false;
198 bool m_nameHasBeenSet = false;
199 bool m_subscribeAuthModesHasBeenSet = false;
200 bool m_publishAuthModesHasBeenSet = false;
201 bool m_codeHandlersHasBeenSet = false;
202 bool m_tagsHasBeenSet = false;
203 bool m_handlerConfigsHasBeenSet = false;
204};
205
206} // namespace Model
207} // namespace AppSync
208} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::Vector< AuthMode > & GetSubscribeAuthModes() const
CreateChannelNamespaceRequest & WithPublishAuthModes(PublishAuthModesT &&value)
AWS_APPSYNC_API Aws::String SerializePayload() const override
CreateChannelNamespaceRequest & WithSubscribeAuthModes(SubscribeAuthModesT &&value)
CreateChannelNamespaceRequest & WithName(NameT &&value)
CreateChannelNamespaceRequest & AddSubscribeAuthModes(SubscribeAuthModesT &&value)
CreateChannelNamespaceRequest & WithTags(TagsT &&value)
AWS_APPSYNC_API CreateChannelNamespaceRequest()=default
CreateChannelNamespaceRequest & WithApiId(ApiIdT &&value)
CreateChannelNamespaceRequest & WithHandlerConfigs(HandlerConfigsT &&value)
CreateChannelNamespaceRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateChannelNamespaceRequest & WithCodeHandlers(CodeHandlersT &&value)
CreateChannelNamespaceRequest & AddPublishAuthModes(PublishAuthModesT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector