AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ChannelNamespace.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/appsync/model/AuthMode.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace AppSync
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_APPSYNC_API ChannelNamespace();
41 AWS_APPSYNC_API ChannelNamespace(Aws::Utils::Json::JsonView jsonValue);
43 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetApiId() const{ return m_apiId; }
51 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
52 inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; }
53 inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); }
54 inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); }
55 inline ChannelNamespace& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
56 inline ChannelNamespace& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
57 inline ChannelNamespace& WithApiId(const char* value) { SetApiId(value); return *this;}
59
61
65 inline const Aws::String& GetName() const{ return m_name; }
66 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
67 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
68 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
69 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
70 inline ChannelNamespace& WithName(const Aws::String& value) { SetName(value); return *this;}
71 inline ChannelNamespace& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
72 inline ChannelNamespace& WithName(const char* value) { SetName(value); return *this;}
74
76
81 inline const Aws::Vector<AuthMode>& GetSubscribeAuthModes() const{ return m_subscribeAuthModes; }
82 inline bool SubscribeAuthModesHasBeenSet() const { return m_subscribeAuthModesHasBeenSet; }
83 inline void SetSubscribeAuthModes(const Aws::Vector<AuthMode>& value) { m_subscribeAuthModesHasBeenSet = true; m_subscribeAuthModes = value; }
84 inline void SetSubscribeAuthModes(Aws::Vector<AuthMode>&& value) { m_subscribeAuthModesHasBeenSet = true; m_subscribeAuthModes = std::move(value); }
86 inline ChannelNamespace& WithSubscribeAuthModes(Aws::Vector<AuthMode>&& value) { SetSubscribeAuthModes(std::move(value)); return *this;}
87 inline ChannelNamespace& AddSubscribeAuthModes(const AuthMode& value) { m_subscribeAuthModesHasBeenSet = true; m_subscribeAuthModes.push_back(value); return *this; }
88 inline ChannelNamespace& AddSubscribeAuthModes(AuthMode&& value) { m_subscribeAuthModesHasBeenSet = true; m_subscribeAuthModes.push_back(std::move(value)); return *this; }
90
92
97 inline const Aws::Vector<AuthMode>& GetPublishAuthModes() const{ return m_publishAuthModes; }
98 inline bool PublishAuthModesHasBeenSet() const { return m_publishAuthModesHasBeenSet; }
99 inline void SetPublishAuthModes(const Aws::Vector<AuthMode>& value) { m_publishAuthModesHasBeenSet = true; m_publishAuthModes = value; }
100 inline void SetPublishAuthModes(Aws::Vector<AuthMode>&& value) { m_publishAuthModesHasBeenSet = true; m_publishAuthModes = std::move(value); }
102 inline ChannelNamespace& WithPublishAuthModes(Aws::Vector<AuthMode>&& value) { SetPublishAuthModes(std::move(value)); return *this;}
103 inline ChannelNamespace& AddPublishAuthModes(const AuthMode& value) { m_publishAuthModesHasBeenSet = true; m_publishAuthModes.push_back(value); return *this; }
104 inline ChannelNamespace& AddPublishAuthModes(AuthMode&& value) { m_publishAuthModesHasBeenSet = true; m_publishAuthModes.push_back(std::move(value)); return *this; }
106
108
112 inline const Aws::String& GetCodeHandlers() const{ return m_codeHandlers; }
113 inline bool CodeHandlersHasBeenSet() const { return m_codeHandlersHasBeenSet; }
114 inline void SetCodeHandlers(const Aws::String& value) { m_codeHandlersHasBeenSet = true; m_codeHandlers = value; }
115 inline void SetCodeHandlers(Aws::String&& value) { m_codeHandlersHasBeenSet = true; m_codeHandlers = std::move(value); }
116 inline void SetCodeHandlers(const char* value) { m_codeHandlersHasBeenSet = true; m_codeHandlers.assign(value); }
117 inline ChannelNamespace& WithCodeHandlers(const Aws::String& value) { SetCodeHandlers(value); return *this;}
118 inline ChannelNamespace& WithCodeHandlers(Aws::String&& value) { SetCodeHandlers(std::move(value)); return *this;}
119 inline ChannelNamespace& WithCodeHandlers(const char* value) { SetCodeHandlers(value); return *this;}
121
123
124 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
125 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
126 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
127 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
128 inline ChannelNamespace& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
129 inline ChannelNamespace& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
130 inline ChannelNamespace& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
131 inline ChannelNamespace& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
132 inline ChannelNamespace& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
133 inline ChannelNamespace& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
134 inline ChannelNamespace& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
135 inline ChannelNamespace& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
136 inline ChannelNamespace& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
138
140
143 inline const Aws::String& GetChannelNamespaceArn() const{ return m_channelNamespaceArn; }
144 inline bool ChannelNamespaceArnHasBeenSet() const { return m_channelNamespaceArnHasBeenSet; }
145 inline void SetChannelNamespaceArn(const Aws::String& value) { m_channelNamespaceArnHasBeenSet = true; m_channelNamespaceArn = value; }
146 inline void SetChannelNamespaceArn(Aws::String&& value) { m_channelNamespaceArnHasBeenSet = true; m_channelNamespaceArn = std::move(value); }
147 inline void SetChannelNamespaceArn(const char* value) { m_channelNamespaceArnHasBeenSet = true; m_channelNamespaceArn.assign(value); }
148 inline ChannelNamespace& WithChannelNamespaceArn(const Aws::String& value) { SetChannelNamespaceArn(value); return *this;}
149 inline ChannelNamespace& WithChannelNamespaceArn(Aws::String&& value) { SetChannelNamespaceArn(std::move(value)); return *this;}
150 inline ChannelNamespace& WithChannelNamespaceArn(const char* value) { SetChannelNamespaceArn(value); return *this;}
152
154
157 inline const Aws::Utils::DateTime& GetCreated() const{ return m_created; }
158 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
159 inline void SetCreated(const Aws::Utils::DateTime& value) { m_createdHasBeenSet = true; m_created = value; }
160 inline void SetCreated(Aws::Utils::DateTime&& value) { m_createdHasBeenSet = true; m_created = std::move(value); }
161 inline ChannelNamespace& WithCreated(const Aws::Utils::DateTime& value) { SetCreated(value); return *this;}
162 inline ChannelNamespace& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(std::move(value)); return *this;}
164
166
170 inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; }
171 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
172 inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModifiedHasBeenSet = true; m_lastModified = value; }
173 inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::move(value); }
174 inline ChannelNamespace& WithLastModified(const Aws::Utils::DateTime& value) { SetLastModified(value); return *this;}
175 inline ChannelNamespace& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(std::move(value)); return *this;}
177 private:
178
179 Aws::String m_apiId;
180 bool m_apiIdHasBeenSet = false;
181
182 Aws::String m_name;
183 bool m_nameHasBeenSet = false;
184
185 Aws::Vector<AuthMode> m_subscribeAuthModes;
186 bool m_subscribeAuthModesHasBeenSet = false;
187
188 Aws::Vector<AuthMode> m_publishAuthModes;
189 bool m_publishAuthModesHasBeenSet = false;
190
191 Aws::String m_codeHandlers;
192 bool m_codeHandlersHasBeenSet = false;
193
195 bool m_tagsHasBeenSet = false;
196
197 Aws::String m_channelNamespaceArn;
198 bool m_channelNamespaceArnHasBeenSet = false;
199
200 Aws::Utils::DateTime m_created;
201 bool m_createdHasBeenSet = false;
202
203 Aws::Utils::DateTime m_lastModified;
204 bool m_lastModifiedHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace AppSync
209} // namespace Aws
ChannelNamespace & AddTags(Aws::String &&key, Aws::String &&value)
const Aws::String & GetChannelNamespaceArn() const
ChannelNamespace & AddTags(const Aws::String &key, const Aws::String &value)
AWS_APPSYNC_API ChannelNamespace(Aws::Utils::Json::JsonView jsonValue)
void SetSubscribeAuthModes(const Aws::Vector< AuthMode > &value)
ChannelNamespace & WithChannelNamespaceArn(Aws::String &&value)
void SetPublishAuthModes(Aws::Vector< AuthMode > &&value)
ChannelNamespace & AddTags(const Aws::String &key, Aws::String &&value)
void SetLastModified(Aws::Utils::DateTime &&value)
ChannelNamespace & WithName(const char *value)
ChannelNamespace & AddPublishAuthModes(AuthMode &&value)
const Aws::Vector< AuthMode > & GetPublishAuthModes() const
AWS_APPSYNC_API ChannelNamespace & operator=(Aws::Utils::Json::JsonView jsonValue)
ChannelNamespace & WithSubscribeAuthModes(const Aws::Vector< AuthMode > &value)
ChannelNamespace & AddSubscribeAuthModes(AuthMode &&value)
ChannelNamespace & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Utils::DateTime & GetLastModified() const
ChannelNamespace & AddPublishAuthModes(const AuthMode &value)
ChannelNamespace & WithPublishAuthModes(Aws::Vector< AuthMode > &&value)
void SetLastModified(const Aws::Utils::DateTime &value)
const Aws::String & GetApiId() const
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
ChannelNamespace & WithApiId(Aws::String &&value)
ChannelNamespace & AddTags(const char *key, Aws::String &&value)
void SetName(const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
ChannelNamespace & WithApiId(const Aws::String &value)
void SetChannelNamespaceArn(Aws::String &&value)
ChannelNamespace & WithCodeHandlers(const Aws::String &value)
ChannelNamespace & AddTags(const char *key, const char *value)
ChannelNamespace & WithSubscribeAuthModes(Aws::Vector< AuthMode > &&value)
const Aws::Utils::DateTime & GetCreated() const
ChannelNamespace & WithCreated(const Aws::Utils::DateTime &value)
void SetSubscribeAuthModes(Aws::Vector< AuthMode > &&value)
ChannelNamespace & WithCodeHandlers(Aws::String &&value)
ChannelNamespace & AddSubscribeAuthModes(const AuthMode &value)
void SetCodeHandlers(const Aws::String &value)
ChannelNamespace & WithLastModified(Aws::Utils::DateTime &&value)
ChannelNamespace & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetApiId(const Aws::String &value)
ChannelNamespace & AddTags(Aws::String &&key, const char *value)
const Aws::String & GetCodeHandlers() const
ChannelNamespace & WithApiId(const char *value)
void SetCreated(const Aws::Utils::DateTime &value)
const Aws::String & GetName() const
ChannelNamespace & AddTags(Aws::String &&key, const Aws::String &value)
void SetPublishAuthModes(const Aws::Vector< AuthMode > &value)
ChannelNamespace & WithChannelNamespaceArn(const char *value)
ChannelNamespace & WithLastModified(const Aws::Utils::DateTime &value)
ChannelNamespace & WithCreated(Aws::Utils::DateTime &&value)
void SetCodeHandlers(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetChannelNamespaceArn(const Aws::String &value)
ChannelNamespace & WithName(Aws::String &&value)
ChannelNamespace & WithCodeHandlers(const char *value)
ChannelNamespace & WithPublishAuthModes(const Aws::Vector< AuthMode > &value)
ChannelNamespace & WithName(const Aws::String &value)
ChannelNamespace & WithChannelNamespaceArn(const Aws::String &value)
void SetChannelNamespaceArn(const char *value)
const Aws::Vector< AuthMode > & GetSubscribeAuthModes() const
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetCreated(Aws::Utils::DateTime &&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
Aws::Utils::Json::JsonValue JsonValue