AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/AuthMode.h>
13#include <utility>
14
15namespace Aws
16{
17namespace AppSync
18{
19namespace Model
20{
21
25 {
26 public:
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateChannelNamespace"; }
34
35 AWS_APPSYNC_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetApiId() const{ return m_apiId; }
43 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
44 inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; }
45 inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); }
46 inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); }
47 inline CreateChannelNamespaceRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
48 inline CreateChannelNamespaceRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
49 inline CreateChannelNamespaceRequest& WithApiId(const char* value) { SetApiId(value); return *this;}
51
53
57 inline const Aws::String& GetName() const{ return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
60 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
61 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
62 inline CreateChannelNamespaceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
63 inline CreateChannelNamespaceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
64 inline CreateChannelNamespaceRequest& WithName(const char* value) { SetName(value); return *this;}
66
68
73 inline const Aws::Vector<AuthMode>& GetSubscribeAuthModes() const{ return m_subscribeAuthModes; }
74 inline bool SubscribeAuthModesHasBeenSet() const { return m_subscribeAuthModesHasBeenSet; }
75 inline void SetSubscribeAuthModes(const Aws::Vector<AuthMode>& value) { m_subscribeAuthModesHasBeenSet = true; m_subscribeAuthModes = value; }
76 inline void SetSubscribeAuthModes(Aws::Vector<AuthMode>&& value) { m_subscribeAuthModesHasBeenSet = true; m_subscribeAuthModes = std::move(value); }
79 inline CreateChannelNamespaceRequest& AddSubscribeAuthModes(const AuthMode& value) { m_subscribeAuthModesHasBeenSet = true; m_subscribeAuthModes.push_back(value); return *this; }
80 inline CreateChannelNamespaceRequest& AddSubscribeAuthModes(AuthMode&& value) { m_subscribeAuthModesHasBeenSet = true; m_subscribeAuthModes.push_back(std::move(value)); return *this; }
82
84
89 inline const Aws::Vector<AuthMode>& GetPublishAuthModes() const{ return m_publishAuthModes; }
90 inline bool PublishAuthModesHasBeenSet() const { return m_publishAuthModesHasBeenSet; }
91 inline void SetPublishAuthModes(const Aws::Vector<AuthMode>& value) { m_publishAuthModesHasBeenSet = true; m_publishAuthModes = value; }
92 inline void SetPublishAuthModes(Aws::Vector<AuthMode>&& value) { m_publishAuthModesHasBeenSet = true; m_publishAuthModes = std::move(value); }
95 inline CreateChannelNamespaceRequest& AddPublishAuthModes(const AuthMode& value) { m_publishAuthModesHasBeenSet = true; m_publishAuthModes.push_back(value); return *this; }
96 inline CreateChannelNamespaceRequest& AddPublishAuthModes(AuthMode&& value) { m_publishAuthModesHasBeenSet = true; m_publishAuthModes.push_back(std::move(value)); return *this; }
98
100
104 inline const Aws::String& GetCodeHandlers() const{ return m_codeHandlers; }
105 inline bool CodeHandlersHasBeenSet() const { return m_codeHandlersHasBeenSet; }
106 inline void SetCodeHandlers(const Aws::String& value) { m_codeHandlersHasBeenSet = true; m_codeHandlers = value; }
107 inline void SetCodeHandlers(Aws::String&& value) { m_codeHandlersHasBeenSet = true; m_codeHandlers = std::move(value); }
108 inline void SetCodeHandlers(const char* value) { m_codeHandlersHasBeenSet = true; m_codeHandlers.assign(value); }
109 inline CreateChannelNamespaceRequest& WithCodeHandlers(const Aws::String& value) { SetCodeHandlers(value); return *this;}
110 inline CreateChannelNamespaceRequest& WithCodeHandlers(Aws::String&& value) { SetCodeHandlers(std::move(value)); return *this;}
111 inline CreateChannelNamespaceRequest& WithCodeHandlers(const char* value) { SetCodeHandlers(value); return *this;}
113
115
116 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
117 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
118 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
119 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
121 inline CreateChannelNamespaceRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
122 inline CreateChannelNamespaceRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
123 inline CreateChannelNamespaceRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
124 inline CreateChannelNamespaceRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
125 inline CreateChannelNamespaceRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
126 inline CreateChannelNamespaceRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
127 inline CreateChannelNamespaceRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
128 inline CreateChannelNamespaceRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
130 private:
131
132 Aws::String m_apiId;
133 bool m_apiIdHasBeenSet = false;
134
135 Aws::String m_name;
136 bool m_nameHasBeenSet = false;
137
138 Aws::Vector<AuthMode> m_subscribeAuthModes;
139 bool m_subscribeAuthModesHasBeenSet = false;
140
141 Aws::Vector<AuthMode> m_publishAuthModes;
142 bool m_publishAuthModesHasBeenSet = false;
143
144 Aws::String m_codeHandlers;
145 bool m_codeHandlersHasBeenSet = false;
146
148 bool m_tagsHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace AppSync
153} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateChannelNamespaceRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Vector< AuthMode > & GetSubscribeAuthModes() const
CreateChannelNamespaceRequest & WithApiId(const char *value)
const Aws::Vector< AuthMode > & GetPublishAuthModes() const
CreateChannelNamespaceRequest & AddTags(const char *key, const char *value)
void SetPublishAuthModes(const Aws::Vector< AuthMode > &value)
CreateChannelNamespaceRequest & WithSubscribeAuthModes(const Aws::Vector< AuthMode > &value)
CreateChannelNamespaceRequest & WithCodeHandlers(const char *value)
CreateChannelNamespaceRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_APPSYNC_API Aws::String SerializePayload() const override
CreateChannelNamespaceRequest & WithSubscribeAuthModes(Aws::Vector< AuthMode > &&value)
CreateChannelNamespaceRequest & WithName(const char *value)
CreateChannelNamespaceRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateChannelNamespaceRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateChannelNamespaceRequest & AddSubscribeAuthModes(const AuthMode &value)
CreateChannelNamespaceRequest & WithCodeHandlers(const Aws::String &value)
void SetSubscribeAuthModes(const Aws::Vector< AuthMode > &value)
CreateChannelNamespaceRequest & WithName(Aws::String &&value)
CreateChannelNamespaceRequest & WithApiId(Aws::String &&value)
CreateChannelNamespaceRequest & WithPublishAuthModes(Aws::Vector< AuthMode > &&value)
CreateChannelNamespaceRequest & AddPublishAuthModes(const AuthMode &value)
CreateChannelNamespaceRequest & AddTags(Aws::String &&key, const char *value)
CreateChannelNamespaceRequest & WithCodeHandlers(Aws::String &&value)
CreateChannelNamespaceRequest & AddPublishAuthModes(AuthMode &&value)
CreateChannelNamespaceRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateChannelNamespaceRequest & AddTags(const char *key, Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateChannelNamespaceRequest & WithPublishAuthModes(const Aws::Vector< AuthMode > &value)
CreateChannelNamespaceRequest & AddSubscribeAuthModes(AuthMode &&value)
CreateChannelNamespaceRequest & WithApiId(const Aws::String &value)
CreateChannelNamespaceRequest & WithName(const Aws::String &value)
CreateChannelNamespaceRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&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