AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateChannelNamespaceRequest.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/appsync/model/AuthMode.h>
12#include <utility>
13
14namespace Aws
15{
16namespace AppSync
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateChannelNamespace"; }
33
34 AWS_APPSYNC_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetApiId() const{ return m_apiId; }
42 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
43 inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; }
44 inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); }
45 inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); }
46 inline UpdateChannelNamespaceRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
47 inline UpdateChannelNamespaceRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
48 inline UpdateChannelNamespaceRequest& WithApiId(const char* value) { SetApiId(value); return *this;}
50
52
55 inline const Aws::String& GetName() const{ return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
58 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
59 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
60 inline UpdateChannelNamespaceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
61 inline UpdateChannelNamespaceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
62 inline UpdateChannelNamespaceRequest& WithName(const char* value) { SetName(value); return *this;}
64
66
71 inline const Aws::Vector<AuthMode>& GetSubscribeAuthModes() const{ return m_subscribeAuthModes; }
72 inline bool SubscribeAuthModesHasBeenSet() const { return m_subscribeAuthModesHasBeenSet; }
73 inline void SetSubscribeAuthModes(const Aws::Vector<AuthMode>& value) { m_subscribeAuthModesHasBeenSet = true; m_subscribeAuthModes = value; }
74 inline void SetSubscribeAuthModes(Aws::Vector<AuthMode>&& value) { m_subscribeAuthModesHasBeenSet = true; m_subscribeAuthModes = std::move(value); }
77 inline UpdateChannelNamespaceRequest& AddSubscribeAuthModes(const AuthMode& value) { m_subscribeAuthModesHasBeenSet = true; m_subscribeAuthModes.push_back(value); return *this; }
78 inline UpdateChannelNamespaceRequest& AddSubscribeAuthModes(AuthMode&& value) { m_subscribeAuthModesHasBeenSet = true; m_subscribeAuthModes.push_back(std::move(value)); return *this; }
80
82
87 inline const Aws::Vector<AuthMode>& GetPublishAuthModes() const{ return m_publishAuthModes; }
88 inline bool PublishAuthModesHasBeenSet() const { return m_publishAuthModesHasBeenSet; }
89 inline void SetPublishAuthModes(const Aws::Vector<AuthMode>& value) { m_publishAuthModesHasBeenSet = true; m_publishAuthModes = value; }
90 inline void SetPublishAuthModes(Aws::Vector<AuthMode>&& value) { m_publishAuthModesHasBeenSet = true; m_publishAuthModes = std::move(value); }
93 inline UpdateChannelNamespaceRequest& AddPublishAuthModes(const AuthMode& value) { m_publishAuthModesHasBeenSet = true; m_publishAuthModes.push_back(value); return *this; }
94 inline UpdateChannelNamespaceRequest& AddPublishAuthModes(AuthMode&& value) { m_publishAuthModesHasBeenSet = true; m_publishAuthModes.push_back(std::move(value)); return *this; }
96
98
102 inline const Aws::String& GetCodeHandlers() const{ return m_codeHandlers; }
103 inline bool CodeHandlersHasBeenSet() const { return m_codeHandlersHasBeenSet; }
104 inline void SetCodeHandlers(const Aws::String& value) { m_codeHandlersHasBeenSet = true; m_codeHandlers = value; }
105 inline void SetCodeHandlers(Aws::String&& value) { m_codeHandlersHasBeenSet = true; m_codeHandlers = std::move(value); }
106 inline void SetCodeHandlers(const char* value) { m_codeHandlersHasBeenSet = true; m_codeHandlers.assign(value); }
107 inline UpdateChannelNamespaceRequest& WithCodeHandlers(const Aws::String& value) { SetCodeHandlers(value); return *this;}
108 inline UpdateChannelNamespaceRequest& WithCodeHandlers(Aws::String&& value) { SetCodeHandlers(std::move(value)); return *this;}
109 inline UpdateChannelNamespaceRequest& WithCodeHandlers(const char* value) { SetCodeHandlers(value); return *this;}
111 private:
112
113 Aws::String m_apiId;
114 bool m_apiIdHasBeenSet = false;
115
116 Aws::String m_name;
117 bool m_nameHasBeenSet = false;
118
119 Aws::Vector<AuthMode> m_subscribeAuthModes;
120 bool m_subscribeAuthModesHasBeenSet = false;
121
122 Aws::Vector<AuthMode> m_publishAuthModes;
123 bool m_publishAuthModesHasBeenSet = false;
124
125 Aws::String m_codeHandlers;
126 bool m_codeHandlersHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace AppSync
131} // namespace Aws
UpdateChannelNamespaceRequest & WithName(const Aws::String &value)
const Aws::Vector< AuthMode > & GetPublishAuthModes() const
UpdateChannelNamespaceRequest & WithApiId(const Aws::String &value)
UpdateChannelNamespaceRequest & WithCodeHandlers(const Aws::String &value)
UpdateChannelNamespaceRequest & AddPublishAuthModes(AuthMode &&value)
void SetSubscribeAuthModes(const Aws::Vector< AuthMode > &value)
void SetPublishAuthModes(const Aws::Vector< AuthMode > &value)
UpdateChannelNamespaceRequest & WithApiId(const char *value)
UpdateChannelNamespaceRequest & WithCodeHandlers(const char *value)
UpdateChannelNamespaceRequest & WithName(Aws::String &&value)
const Aws::Vector< AuthMode > & GetSubscribeAuthModes() const
UpdateChannelNamespaceRequest & WithApiId(Aws::String &&value)
UpdateChannelNamespaceRequest & WithSubscribeAuthModes(const Aws::Vector< AuthMode > &value)
UpdateChannelNamespaceRequest & AddSubscribeAuthModes(const AuthMode &value)
UpdateChannelNamespaceRequest & AddSubscribeAuthModes(AuthMode &&value)
UpdateChannelNamespaceRequest & WithSubscribeAuthModes(Aws::Vector< AuthMode > &&value)
UpdateChannelNamespaceRequest & WithPublishAuthModes(Aws::Vector< AuthMode > &&value)
AWS_APPSYNC_API Aws::String SerializePayload() const override
UpdateChannelNamespaceRequest & AddPublishAuthModes(const AuthMode &value)
UpdateChannelNamespaceRequest & WithCodeHandlers(Aws::String &&value)
UpdateChannelNamespaceRequest & WithName(const char *value)
UpdateChannelNamespaceRequest & WithPublishAuthModes(const Aws::Vector< AuthMode > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector