AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
UpdateChannelNamespaceRequest.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/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace AppSync {
18namespace Model {
19
23 public:
24 AWS_APPSYNC_API UpdateChannelNamespaceRequest() = 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 "UpdateChannelNamespace"; }
31
32 AWS_APPSYNC_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetApiId() const { return m_apiId; }
39 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
40 template <typename ApiIdT = Aws::String>
41 void SetApiId(ApiIdT&& value) {
42 m_apiIdHasBeenSet = true;
43 m_apiId = std::forward<ApiIdT>(value);
44 }
45 template <typename ApiIdT = Aws::String>
47 SetApiId(std::forward<ApiIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template <typename NameT = Aws::String>
59 void SetName(NameT&& value) {
60 m_nameHasBeenSet = true;
61 m_name = std::forward<NameT>(value);
62 }
63 template <typename NameT = Aws::String>
65 SetName(std::forward<NameT>(value));
66 return *this;
67 }
69
71
76 inline const Aws::Vector<AuthMode>& GetSubscribeAuthModes() const { return m_subscribeAuthModes; }
77 inline bool SubscribeAuthModesHasBeenSet() const { return m_subscribeAuthModesHasBeenSet; }
78 template <typename SubscribeAuthModesT = Aws::Vector<AuthMode>>
79 void SetSubscribeAuthModes(SubscribeAuthModesT&& value) {
80 m_subscribeAuthModesHasBeenSet = true;
81 m_subscribeAuthModes = std::forward<SubscribeAuthModesT>(value);
82 }
83 template <typename SubscribeAuthModesT = Aws::Vector<AuthMode>>
85 SetSubscribeAuthModes(std::forward<SubscribeAuthModesT>(value));
86 return *this;
87 }
88 template <typename SubscribeAuthModesT = AuthMode>
90 m_subscribeAuthModesHasBeenSet = true;
91 m_subscribeAuthModes.emplace_back(std::forward<SubscribeAuthModesT>(value));
92 return *this;
93 }
95
97
102 inline const Aws::Vector<AuthMode>& GetPublishAuthModes() const { return m_publishAuthModes; }
103 inline bool PublishAuthModesHasBeenSet() const { return m_publishAuthModesHasBeenSet; }
104 template <typename PublishAuthModesT = Aws::Vector<AuthMode>>
105 void SetPublishAuthModes(PublishAuthModesT&& value) {
106 m_publishAuthModesHasBeenSet = true;
107 m_publishAuthModes = std::forward<PublishAuthModesT>(value);
108 }
109 template <typename PublishAuthModesT = Aws::Vector<AuthMode>>
111 SetPublishAuthModes(std::forward<PublishAuthModesT>(value));
112 return *this;
113 }
114 template <typename PublishAuthModesT = AuthMode>
116 m_publishAuthModesHasBeenSet = true;
117 m_publishAuthModes.emplace_back(std::forward<PublishAuthModesT>(value));
118 return *this;
119 }
121
123
127 inline const Aws::String& GetCodeHandlers() const { return m_codeHandlers; }
128 inline bool CodeHandlersHasBeenSet() const { return m_codeHandlersHasBeenSet; }
129 template <typename CodeHandlersT = Aws::String>
130 void SetCodeHandlers(CodeHandlersT&& value) {
131 m_codeHandlersHasBeenSet = true;
132 m_codeHandlers = std::forward<CodeHandlersT>(value);
133 }
134 template <typename CodeHandlersT = Aws::String>
136 SetCodeHandlers(std::forward<CodeHandlersT>(value));
137 return *this;
138 }
140
142
146 inline const HandlerConfigs& GetHandlerConfigs() const { return m_handlerConfigs; }
147 inline bool HandlerConfigsHasBeenSet() const { return m_handlerConfigsHasBeenSet; }
148 template <typename HandlerConfigsT = HandlerConfigs>
149 void SetHandlerConfigs(HandlerConfigsT&& value) {
150 m_handlerConfigsHasBeenSet = true;
151 m_handlerConfigs = std::forward<HandlerConfigsT>(value);
152 }
153 template <typename HandlerConfigsT = HandlerConfigs>
155 SetHandlerConfigs(std::forward<HandlerConfigsT>(value));
156 return *this;
157 }
159 private:
160 Aws::String m_apiId;
161
162 Aws::String m_name;
163
164 Aws::Vector<AuthMode> m_subscribeAuthModes;
165
166 Aws::Vector<AuthMode> m_publishAuthModes;
167
168 Aws::String m_codeHandlers;
169
170 HandlerConfigs m_handlerConfigs;
171 bool m_apiIdHasBeenSet = false;
172 bool m_nameHasBeenSet = false;
173 bool m_subscribeAuthModesHasBeenSet = false;
174 bool m_publishAuthModesHasBeenSet = false;
175 bool m_codeHandlersHasBeenSet = false;
176 bool m_handlerConfigsHasBeenSet = false;
177};
178
179} // namespace Model
180} // namespace AppSync
181} // namespace Aws
UpdateChannelNamespaceRequest & WithApiId(ApiIdT &&value)
AWS_APPSYNC_API UpdateChannelNamespaceRequest()=default
UpdateChannelNamespaceRequest & WithPublishAuthModes(PublishAuthModesT &&value)
UpdateChannelNamespaceRequest & AddSubscribeAuthModes(SubscribeAuthModesT &&value)
const Aws::Vector< AuthMode > & GetSubscribeAuthModes() const
UpdateChannelNamespaceRequest & WithHandlerConfigs(HandlerConfigsT &&value)
UpdateChannelNamespaceRequest & WithSubscribeAuthModes(SubscribeAuthModesT &&value)
AWS_APPSYNC_API Aws::String SerializePayload() const override
UpdateChannelNamespaceRequest & WithName(NameT &&value)
UpdateChannelNamespaceRequest & WithCodeHandlers(CodeHandlersT &&value)
UpdateChannelNamespaceRequest & AddPublishAuthModes(PublishAuthModesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector