AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
CreatePluginRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/qbusiness/QBusinessRequest.h>
11#include <aws/qbusiness/QBusiness_EXPORTS.h>
12#include <aws/qbusiness/model/CustomPluginConfiguration.h>
13#include <aws/qbusiness/model/PluginAuthConfiguration.h>
14#include <aws/qbusiness/model/PluginType.h>
15#include <aws/qbusiness/model/Tag.h>
16
17#include <utility>
18
19namespace Aws {
20namespace QBusiness {
21namespace Model {
22
26 public:
27 AWS_QBUSINESS_API CreatePluginRequest() = default;
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 "CreatePlugin"; }
34
35 AWS_QBUSINESS_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
42 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
43 template <typename ApplicationIdT = Aws::String>
45 m_applicationIdHasBeenSet = true;
46 m_applicationId = std::forward<ApplicationIdT>(value);
47 }
48 template <typename ApplicationIdT = Aws::String>
50 SetApplicationId(std::forward<ApplicationIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDisplayName() const { return m_displayName; }
60 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
61 template <typename DisplayNameT = Aws::String>
63 m_displayNameHasBeenSet = true;
64 m_displayName = std::forward<DisplayNameT>(value);
65 }
66 template <typename DisplayNameT = Aws::String>
68 SetDisplayName(std::forward<DisplayNameT>(value));
69 return *this;
70 }
72
74
77 inline PluginType GetType() const { return m_type; }
78 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
79 inline void SetType(PluginType value) {
80 m_typeHasBeenSet = true;
81 m_type = value;
82 }
84 SetType(value);
85 return *this;
86 }
88
90
91 inline const PluginAuthConfiguration& GetAuthConfiguration() const { return m_authConfiguration; }
92 inline bool AuthConfigurationHasBeenSet() const { return m_authConfigurationHasBeenSet; }
93 template <typename AuthConfigurationT = PluginAuthConfiguration>
95 m_authConfigurationHasBeenSet = true;
96 m_authConfiguration = std::forward<AuthConfigurationT>(value);
97 }
98 template <typename AuthConfigurationT = PluginAuthConfiguration>
100 SetAuthConfiguration(std::forward<AuthConfigurationT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetServerUrl() const { return m_serverUrl; }
110 inline bool ServerUrlHasBeenSet() const { return m_serverUrlHasBeenSet; }
111 template <typename ServerUrlT = Aws::String>
112 void SetServerUrl(ServerUrlT&& value) {
113 m_serverUrlHasBeenSet = true;
114 m_serverUrl = std::forward<ServerUrlT>(value);
115 }
116 template <typename ServerUrlT = Aws::String>
118 SetServerUrl(std::forward<ServerUrlT>(value));
119 return *this;
120 }
122
124
127 inline const CustomPluginConfiguration& GetCustomPluginConfiguration() const { return m_customPluginConfiguration; }
128 inline bool CustomPluginConfigurationHasBeenSet() const { return m_customPluginConfigurationHasBeenSet; }
129 template <typename CustomPluginConfigurationT = CustomPluginConfiguration>
131 m_customPluginConfigurationHasBeenSet = true;
132 m_customPluginConfiguration = std::forward<CustomPluginConfigurationT>(value);
133 }
134 template <typename CustomPluginConfigurationT = CustomPluginConfiguration>
136 SetCustomPluginConfiguration(std::forward<CustomPluginConfigurationT>(value));
137 return *this;
138 }
140
142
148 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
149 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
150 template <typename TagsT = Aws::Vector<Tag>>
151 void SetTags(TagsT&& value) {
152 m_tagsHasBeenSet = true;
153 m_tags = std::forward<TagsT>(value);
154 }
155 template <typename TagsT = Aws::Vector<Tag>>
157 SetTags(std::forward<TagsT>(value));
158 return *this;
159 }
160 template <typename TagsT = Tag>
162 m_tagsHasBeenSet = true;
163 m_tags.emplace_back(std::forward<TagsT>(value));
164 return *this;
165 }
167
169
173 inline const Aws::String& GetClientToken() const { return m_clientToken; }
174 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
175 template <typename ClientTokenT = Aws::String>
177 m_clientTokenHasBeenSet = true;
178 m_clientToken = std::forward<ClientTokenT>(value);
179 }
180 template <typename ClientTokenT = Aws::String>
182 SetClientToken(std::forward<ClientTokenT>(value));
183 return *this;
184 }
186 private:
187 Aws::String m_applicationId;
188
189 Aws::String m_displayName;
190
192
193 PluginAuthConfiguration m_authConfiguration;
194
195 Aws::String m_serverUrl;
196
197 CustomPluginConfiguration m_customPluginConfiguration;
198
199 Aws::Vector<Tag> m_tags;
200
202 bool m_applicationIdHasBeenSet = false;
203 bool m_displayNameHasBeenSet = false;
204 bool m_typeHasBeenSet = false;
205 bool m_authConfigurationHasBeenSet = false;
206 bool m_serverUrlHasBeenSet = false;
207 bool m_customPluginConfigurationHasBeenSet = false;
208 bool m_tagsHasBeenSet = false;
209 bool m_clientTokenHasBeenSet = true;
210};
211
212} // namespace Model
213} // namespace QBusiness
214} // namespace Aws
CreatePluginRequest & WithTags(TagsT &&value)
void SetAuthConfiguration(AuthConfigurationT &&value)
CreatePluginRequest & WithCustomPluginConfiguration(CustomPluginConfigurationT &&value)
CreatePluginRequest & WithApplicationId(ApplicationIdT &&value)
CreatePluginRequest & WithType(PluginType value)
CreatePluginRequest & WithAuthConfiguration(AuthConfigurationT &&value)
AWS_QBUSINESS_API CreatePluginRequest()=default
CreatePluginRequest & WithDisplayName(DisplayNameT &&value)
void SetCustomPluginConfiguration(CustomPluginConfigurationT &&value)
void SetApplicationId(ApplicationIdT &&value)
const PluginAuthConfiguration & GetAuthConfiguration() const
const Aws::Vector< Tag > & GetTags() const
const CustomPluginConfiguration & GetCustomPluginConfiguration() const
AWS_QBUSINESS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreatePluginRequest & WithServerUrl(ServerUrlT &&value)
CreatePluginRequest & WithClientToken(ClientTokenT &&value)
CreatePluginRequest & AddTags(TagsT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector