AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateChannelNamespaceRequest.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/appsync/AppSyncRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/appsync/model/HandlerConfigs.h>
13#include <aws/appsync/model/AuthMode.h>
14#include <utility>
15
16namespace Aws
17{
18namespace AppSync
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_APPSYNC_API CreateChannelNamespaceRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateChannelNamespace"; }
35
36 AWS_APPSYNC_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetApiId() const { return m_apiId; }
44 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
45 template<typename ApiIdT = Aws::String>
46 void SetApiId(ApiIdT&& value) { m_apiIdHasBeenSet = true; m_apiId = std::forward<ApiIdT>(value); }
47 template<typename ApiIdT = Aws::String>
48 CreateChannelNamespaceRequest& WithApiId(ApiIdT&& value) { SetApiId(std::forward<ApiIdT>(value)); return *this;}
50
52
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
60 template<typename NameT = Aws::String>
61 CreateChannelNamespaceRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
63
65
70 inline const Aws::Vector<AuthMode>& GetSubscribeAuthModes() const { return m_subscribeAuthModes; }
71 inline bool SubscribeAuthModesHasBeenSet() const { return m_subscribeAuthModesHasBeenSet; }
72 template<typename SubscribeAuthModesT = Aws::Vector<AuthMode>>
73 void SetSubscribeAuthModes(SubscribeAuthModesT&& value) { m_subscribeAuthModesHasBeenSet = true; m_subscribeAuthModes = std::forward<SubscribeAuthModesT>(value); }
74 template<typename SubscribeAuthModesT = Aws::Vector<AuthMode>>
75 CreateChannelNamespaceRequest& WithSubscribeAuthModes(SubscribeAuthModesT&& value) { SetSubscribeAuthModes(std::forward<SubscribeAuthModesT>(value)); return *this;}
76 template<typename SubscribeAuthModesT = AuthMode>
77 CreateChannelNamespaceRequest& AddSubscribeAuthModes(SubscribeAuthModesT&& value) { m_subscribeAuthModesHasBeenSet = true; m_subscribeAuthModes.emplace_back(std::forward<SubscribeAuthModesT>(value)); return *this; }
79
81
86 inline const Aws::Vector<AuthMode>& GetPublishAuthModes() const { return m_publishAuthModes; }
87 inline bool PublishAuthModesHasBeenSet() const { return m_publishAuthModesHasBeenSet; }
88 template<typename PublishAuthModesT = Aws::Vector<AuthMode>>
89 void SetPublishAuthModes(PublishAuthModesT&& value) { m_publishAuthModesHasBeenSet = true; m_publishAuthModes = std::forward<PublishAuthModesT>(value); }
90 template<typename PublishAuthModesT = Aws::Vector<AuthMode>>
91 CreateChannelNamespaceRequest& WithPublishAuthModes(PublishAuthModesT&& value) { SetPublishAuthModes(std::forward<PublishAuthModesT>(value)); return *this;}
92 template<typename PublishAuthModesT = AuthMode>
93 CreateChannelNamespaceRequest& AddPublishAuthModes(PublishAuthModesT&& value) { m_publishAuthModesHasBeenSet = true; m_publishAuthModes.emplace_back(std::forward<PublishAuthModesT>(value)); return *this; }
95
97
101 inline const Aws::String& GetCodeHandlers() const { return m_codeHandlers; }
102 inline bool CodeHandlersHasBeenSet() const { return m_codeHandlersHasBeenSet; }
103 template<typename CodeHandlersT = Aws::String>
104 void SetCodeHandlers(CodeHandlersT&& value) { m_codeHandlersHasBeenSet = true; m_codeHandlers = std::forward<CodeHandlersT>(value); }
105 template<typename CodeHandlersT = Aws::String>
106 CreateChannelNamespaceRequest& WithCodeHandlers(CodeHandlersT&& value) { SetCodeHandlers(std::forward<CodeHandlersT>(value)); return *this;}
108
110
111 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
112 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
113 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
114 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
115 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
116 CreateChannelNamespaceRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
117 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
118 CreateChannelNamespaceRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
119 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
120 }
122
124
128 inline const HandlerConfigs& GetHandlerConfigs() const { return m_handlerConfigs; }
129 inline bool HandlerConfigsHasBeenSet() const { return m_handlerConfigsHasBeenSet; }
130 template<typename HandlerConfigsT = HandlerConfigs>
131 void SetHandlerConfigs(HandlerConfigsT&& value) { m_handlerConfigsHasBeenSet = true; m_handlerConfigs = std::forward<HandlerConfigsT>(value); }
132 template<typename HandlerConfigsT = HandlerConfigs>
133 CreateChannelNamespaceRequest& WithHandlerConfigs(HandlerConfigsT&& value) { SetHandlerConfigs(std::forward<HandlerConfigsT>(value)); return *this;}
135 private:
136
137 Aws::String m_apiId;
138 bool m_apiIdHasBeenSet = false;
139
140 Aws::String m_name;
141 bool m_nameHasBeenSet = false;
142
143 Aws::Vector<AuthMode> m_subscribeAuthModes;
144 bool m_subscribeAuthModesHasBeenSet = false;
145
146 Aws::Vector<AuthMode> m_publishAuthModes;
147 bool m_publishAuthModesHasBeenSet = false;
148
149 Aws::String m_codeHandlers;
150 bool m_codeHandlersHasBeenSet = false;
151
153 bool m_tagsHasBeenSet = false;
154
155 HandlerConfigs m_handlerConfigs;
156 bool m_handlerConfigsHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace AppSync
161} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::Vector< AuthMode > & GetSubscribeAuthModes() const
const Aws::Vector< AuthMode > & GetPublishAuthModes() 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