AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
AgenticConnector.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/crt/cbor/Cbor.h>
11#include <aws/workspaces/WorkSpaces_EXPORTS.h>
12#include <aws/workspaces/model/AgenticConnectorActivationStatus.h>
13#include <aws/workspaces/model/AgenticConnectorAuthType.h>
14#include <aws/workspaces/model/AgenticConnectorOAuthConfig.h>
15#include <aws/workspaces/model/AgenticConnectorServerType.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Cbor {
22class CborValue;
23} // namespace Cbor
24} // namespace Utils
25namespace WorkSpaces {
26namespace Model {
27
35 public:
36 AWS_WORKSPACES_API AgenticConnector() = default;
37 AWS_WORKSPACES_API AgenticConnector(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_WORKSPACES_API AgenticConnector& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
40
42
45 inline const Aws::String& GetId() const { return m_id; }
46 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
47 template <typename IdT = Aws::String>
48 void SetId(IdT&& value) {
49 m_idHasBeenSet = true;
50 m_id = std::forward<IdT>(value);
51 }
52 template <typename IdT = Aws::String>
53 AgenticConnector& WithId(IdT&& value) {
54 SetId(std::forward<IdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetName() const { return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 template <typename NameT = Aws::String>
66 void SetName(NameT&& value) {
67 m_nameHasBeenSet = true;
68 m_name = std::forward<NameT>(value);
69 }
70 template <typename NameT = Aws::String>
71 AgenticConnector& WithName(NameT&& value) {
72 SetName(std::forward<NameT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetDescription() const { return m_description; }
82 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
83 template <typename DescriptionT = Aws::String>
84 void SetDescription(DescriptionT&& value) {
85 m_descriptionHasBeenSet = true;
86 m_description = std::forward<DescriptionT>(value);
87 }
88 template <typename DescriptionT = Aws::String>
89 AgenticConnector& WithDescription(DescriptionT&& value) {
90 SetDescription(std::forward<DescriptionT>(value));
91 return *this;
92 }
94
96
101 inline AgenticConnectorServerType GetServerType() const { return m_serverType; }
102 inline bool ServerTypeHasBeenSet() const { return m_serverTypeHasBeenSet; }
104 m_serverTypeHasBeenSet = true;
105 m_serverType = value;
106 }
108 SetServerType(value);
109 return *this;
110 }
112
114
117 inline const Aws::String& GetUrl() const { return m_url; }
118 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
119 template <typename UrlT = Aws::String>
120 void SetUrl(UrlT&& value) {
121 m_urlHasBeenSet = true;
122 m_url = std::forward<UrlT>(value);
123 }
124 template <typename UrlT = Aws::String>
125 AgenticConnector& WithUrl(UrlT&& value) {
126 SetUrl(std::forward<UrlT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::String& GetCommand() const { return m_command; }
136 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
137 template <typename CommandT = Aws::String>
138 void SetCommand(CommandT&& value) {
139 m_commandHasBeenSet = true;
140 m_command = std::forward<CommandT>(value);
141 }
142 template <typename CommandT = Aws::String>
143 AgenticConnector& WithCommand(CommandT&& value) {
144 SetCommand(std::forward<CommandT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::Vector<Aws::String>& GetArgs() const { return m_args; }
154 inline bool ArgsHasBeenSet() const { return m_argsHasBeenSet; }
155 template <typename ArgsT = Aws::Vector<Aws::String>>
156 void SetArgs(ArgsT&& value) {
157 m_argsHasBeenSet = true;
158 m_args = std::forward<ArgsT>(value);
159 }
160 template <typename ArgsT = Aws::Vector<Aws::String>>
161 AgenticConnector& WithArgs(ArgsT&& value) {
162 SetArgs(std::forward<ArgsT>(value));
163 return *this;
164 }
165 template <typename ArgsT = Aws::String>
166 AgenticConnector& AddArgs(ArgsT&& value) {
167 m_argsHasBeenSet = true;
168 m_args.emplace_back(std::forward<ArgsT>(value));
169 return *this;
170 }
172
174
180 inline AgenticConnectorAuthType GetAuthType() const { return m_authType; }
181 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
183 m_authTypeHasBeenSet = true;
184 m_authType = value;
185 }
187 SetAuthType(value);
188 return *this;
189 }
191
193
196 inline const AgenticConnectorOAuthConfig& GetOAuthConfig() const { return m_oAuthConfig; }
197 inline bool OAuthConfigHasBeenSet() const { return m_oAuthConfigHasBeenSet; }
198 template <typename OAuthConfigT = AgenticConnectorOAuthConfig>
199 void SetOAuthConfig(OAuthConfigT&& value) {
200 m_oAuthConfigHasBeenSet = true;
201 m_oAuthConfig = std::forward<OAuthConfigT>(value);
202 }
203 template <typename OAuthConfigT = AgenticConnectorOAuthConfig>
204 AgenticConnector& WithOAuthConfig(OAuthConfigT&& value) {
205 SetOAuthConfig(std::forward<OAuthConfigT>(value));
206 return *this;
207 }
209
211
217 inline const Aws::String& GetApiKeySecretArn() const { return m_apiKeySecretArn; }
218 inline bool ApiKeySecretArnHasBeenSet() const { return m_apiKeySecretArnHasBeenSet; }
219 template <typename ApiKeySecretArnT = Aws::String>
220 void SetApiKeySecretArn(ApiKeySecretArnT&& value) {
221 m_apiKeySecretArnHasBeenSet = true;
222 m_apiKeySecretArn = std::forward<ApiKeySecretArnT>(value);
223 }
224 template <typename ApiKeySecretArnT = Aws::String>
225 AgenticConnector& WithApiKeySecretArn(ApiKeySecretArnT&& value) {
226 SetApiKeySecretArn(std::forward<ApiKeySecretArnT>(value));
227 return *this;
228 }
230
232
236 inline const Aws::Vector<Aws::String>& GetAllowedTools() const { return m_allowedTools; }
237 inline bool AllowedToolsHasBeenSet() const { return m_allowedToolsHasBeenSet; }
238 template <typename AllowedToolsT = Aws::Vector<Aws::String>>
239 void SetAllowedTools(AllowedToolsT&& value) {
240 m_allowedToolsHasBeenSet = true;
241 m_allowedTools = std::forward<AllowedToolsT>(value);
242 }
243 template <typename AllowedToolsT = Aws::Vector<Aws::String>>
244 AgenticConnector& WithAllowedTools(AllowedToolsT&& value) {
245 SetAllowedTools(std::forward<AllowedToolsT>(value));
246 return *this;
247 }
248 template <typename AllowedToolsT = Aws::String>
249 AgenticConnector& AddAllowedTools(AllowedToolsT&& value) {
250 m_allowedToolsHasBeenSet = true;
251 m_allowedTools.emplace_back(std::forward<AllowedToolsT>(value));
252 return *this;
253 }
255
257
260 inline const Aws::Vector<Aws::String>& GetBlockedTools() const { return m_blockedTools; }
261 inline bool BlockedToolsHasBeenSet() const { return m_blockedToolsHasBeenSet; }
262 template <typename BlockedToolsT = Aws::Vector<Aws::String>>
263 void SetBlockedTools(BlockedToolsT&& value) {
264 m_blockedToolsHasBeenSet = true;
265 m_blockedTools = std::forward<BlockedToolsT>(value);
266 }
267 template <typename BlockedToolsT = Aws::Vector<Aws::String>>
268 AgenticConnector& WithBlockedTools(BlockedToolsT&& value) {
269 SetBlockedTools(std::forward<BlockedToolsT>(value));
270 return *this;
271 }
272 template <typename BlockedToolsT = Aws::String>
273 AgenticConnector& AddBlockedTools(BlockedToolsT&& value) {
274 m_blockedToolsHasBeenSet = true;
275 m_blockedTools.emplace_back(std::forward<BlockedToolsT>(value));
276 return *this;
277 }
279
281
285 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
286 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
287 template <typename CreatedAtT = Aws::Utils::DateTime>
288 void SetCreatedAt(CreatedAtT&& value) {
289 m_createdAtHasBeenSet = true;
290 m_createdAt = std::forward<CreatedAtT>(value);
291 }
292 template <typename CreatedAtT = Aws::Utils::DateTime>
293 AgenticConnector& WithCreatedAt(CreatedAtT&& value) {
294 SetCreatedAt(std::forward<CreatedAtT>(value));
295 return *this;
296 }
298
300
305 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
306 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
307 template <typename UpdatedAtT = Aws::Utils::DateTime>
308 void SetUpdatedAt(UpdatedAtT&& value) {
309 m_updatedAtHasBeenSet = true;
310 m_updatedAt = std::forward<UpdatedAtT>(value);
311 }
312 template <typename UpdatedAtT = Aws::Utils::DateTime>
313 AgenticConnector& WithUpdatedAt(UpdatedAtT&& value) {
314 SetUpdatedAt(std::forward<UpdatedAtT>(value));
315 return *this;
316 }
318
320
330 inline AgenticConnectorActivationStatus GetActivationStatus() const { return m_activationStatus; }
331 inline bool ActivationStatusHasBeenSet() const { return m_activationStatusHasBeenSet; }
333 m_activationStatusHasBeenSet = true;
334 m_activationStatus = value;
335 }
341 private:
342 Aws::String m_id;
343
344 Aws::String m_name;
345
346 Aws::String m_description;
347
349
350 Aws::String m_url;
351
352 Aws::String m_command;
353
355
357
358 AgenticConnectorOAuthConfig m_oAuthConfig;
359
360 Aws::String m_apiKeySecretArn;
361
362 Aws::Vector<Aws::String> m_allowedTools;
363
364 Aws::Vector<Aws::String> m_blockedTools;
365
366 Aws::Utils::DateTime m_createdAt{};
367
368 Aws::Utils::DateTime m_updatedAt{};
369
371 bool m_idHasBeenSet = false;
372 bool m_nameHasBeenSet = false;
373 bool m_descriptionHasBeenSet = false;
374 bool m_serverTypeHasBeenSet = false;
375 bool m_urlHasBeenSet = false;
376 bool m_commandHasBeenSet = false;
377 bool m_argsHasBeenSet = false;
378 bool m_authTypeHasBeenSet = false;
379 bool m_oAuthConfigHasBeenSet = false;
380 bool m_apiKeySecretArnHasBeenSet = false;
381 bool m_allowedToolsHasBeenSet = false;
382 bool m_blockedToolsHasBeenSet = false;
383 bool m_createdAtHasBeenSet = false;
384 bool m_updatedAtHasBeenSet = false;
385 bool m_activationStatusHasBeenSet = false;
386};
387
388} // namespace Model
389} // namespace WorkSpaces
390} // namespace Aws
AgenticConnector & WithUpdatedAt(UpdatedAtT &&value)
AgenticConnector & WithArgs(ArgsT &&value)
AgenticConnector & WithBlockedTools(BlockedToolsT &&value)
const AgenticConnectorOAuthConfig & GetOAuthConfig() const
AgenticConnector & WithId(IdT &&value)
void SetActivationStatus(AgenticConnectorActivationStatus value)
AgenticConnector & AddArgs(ArgsT &&value)
void SetServerType(AgenticConnectorServerType value)
AWS_WORKSPACES_API AgenticConnector & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AgenticConnector & WithUrl(UrlT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::Vector< Aws::String > & GetArgs() const
const Aws::Vector< Aws::String > & GetBlockedTools() const
AgenticConnector & WithOAuthConfig(OAuthConfigT &&value)
void SetApiKeySecretArn(ApiKeySecretArnT &&value)
const Aws::Vector< Aws::String > & GetAllowedTools() const
AgenticConnectorServerType GetServerType() const
void SetOAuthConfig(OAuthConfigT &&value)
AgenticConnectorActivationStatus GetActivationStatus() const
const Aws::String & GetApiKeySecretArn() const
const Aws::String & GetDescription() const
AgenticConnector & WithApiKeySecretArn(ApiKeySecretArnT &&value)
AgenticConnector & WithCommand(CommandT &&value)
AWS_WORKSPACES_API AgenticConnector(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AgenticConnector & AddAllowedTools(AllowedToolsT &&value)
AgenticConnector & WithAuthType(AgenticConnectorAuthType value)
void SetDescription(DescriptionT &&value)
AgenticConnector & AddBlockedTools(BlockedToolsT &&value)
void SetAuthType(AgenticConnectorAuthType value)
AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetBlockedTools(BlockedToolsT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
AgenticConnector & WithAllowedTools(AllowedToolsT &&value)
AgenticConnectorAuthType GetAuthType() const
AgenticConnector & WithActivationStatus(AgenticConnectorActivationStatus value)
AgenticConnector & WithName(NameT &&value)
AgenticConnector & WithCreatedAt(CreatedAtT &&value)
void SetAllowedTools(AllowedToolsT &&value)
AWS_WORKSPACES_API AgenticConnector()=default
AgenticConnector & WithDescription(DescriptionT &&value)
AgenticConnector & WithServerType(AgenticConnectorServerType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector