AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
CreateSessionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/GlueRequest.h>
10#include <aws/glue/Glue_EXPORTS.h>
11#include <aws/glue/model/ConnectionsList.h>
12#include <aws/glue/model/SessionCommand.h>
13#include <aws/glue/model/SessionType.h>
14#include <aws/glue/model/WorkerType.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Glue {
20namespace Model {
21
28 public:
29 AWS_GLUE_API CreateSessionRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateSession"; }
36
37 AWS_GLUE_API Aws::String SerializePayload() const override;
38
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>
54 SetId(std::forward<IdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetDescription() const { return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 template <typename DescriptionT = Aws::String>
66 void SetDescription(DescriptionT&& value) {
67 m_descriptionHasBeenSet = true;
68 m_description = std::forward<DescriptionT>(value);
69 }
70 template <typename DescriptionT = Aws::String>
71 CreateSessionRequest& WithDescription(DescriptionT&& value) {
72 SetDescription(std::forward<DescriptionT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetRole() const { return m_role; }
82 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
83 template <typename RoleT = Aws::String>
84 void SetRole(RoleT&& value) {
85 m_roleHasBeenSet = true;
86 m_role = std::forward<RoleT>(value);
87 }
88 template <typename RoleT = Aws::String>
90 SetRole(std::forward<RoleT>(value));
91 return *this;
92 }
94
96
99 inline const SessionCommand& GetCommand() const { return m_command; }
100 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
101 template <typename CommandT = SessionCommand>
102 void SetCommand(CommandT&& value) {
103 m_commandHasBeenSet = true;
104 m_command = std::forward<CommandT>(value);
105 }
106 template <typename CommandT = SessionCommand>
108 SetCommand(std::forward<CommandT>(value));
109 return *this;
110 }
112
114
118 inline int GetTimeout() const { return m_timeout; }
119 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
120 inline void SetTimeout(int value) {
121 m_timeoutHasBeenSet = true;
122 m_timeout = value;
123 }
125 SetTimeout(value);
126 return *this;
127 }
129
131
136 inline int GetIdleTimeout() const { return m_idleTimeout; }
137 inline bool IdleTimeoutHasBeenSet() const { return m_idleTimeoutHasBeenSet; }
138 inline void SetIdleTimeout(int value) {
139 m_idleTimeoutHasBeenSet = true;
140 m_idleTimeout = value;
141 }
143 SetIdleTimeout(value);
144 return *this;
145 }
147
149
152 inline const Aws::Map<Aws::String, Aws::String>& GetDefaultArguments() const { return m_defaultArguments; }
153 inline bool DefaultArgumentsHasBeenSet() const { return m_defaultArgumentsHasBeenSet; }
154 template <typename DefaultArgumentsT = Aws::Map<Aws::String, Aws::String>>
155 void SetDefaultArguments(DefaultArgumentsT&& value) {
156 m_defaultArgumentsHasBeenSet = true;
157 m_defaultArguments = std::forward<DefaultArgumentsT>(value);
158 }
159 template <typename DefaultArgumentsT = Aws::Map<Aws::String, Aws::String>>
160 CreateSessionRequest& WithDefaultArguments(DefaultArgumentsT&& value) {
161 SetDefaultArguments(std::forward<DefaultArgumentsT>(value));
162 return *this;
163 }
164 template <typename DefaultArgumentsKeyT = Aws::String, typename DefaultArgumentsValueT = Aws::String>
165 CreateSessionRequest& AddDefaultArguments(DefaultArgumentsKeyT&& key, DefaultArgumentsValueT&& value) {
166 m_defaultArgumentsHasBeenSet = true;
167 m_defaultArguments.emplace(std::forward<DefaultArgumentsKeyT>(key), std::forward<DefaultArgumentsValueT>(value));
168 return *this;
169 }
171
173
176 inline const ConnectionsList& GetConnections() const { return m_connections; }
177 inline bool ConnectionsHasBeenSet() const { return m_connectionsHasBeenSet; }
178 template <typename ConnectionsT = ConnectionsList>
179 void SetConnections(ConnectionsT&& value) {
180 m_connectionsHasBeenSet = true;
181 m_connections = std::forward<ConnectionsT>(value);
182 }
183 template <typename ConnectionsT = ConnectionsList>
184 CreateSessionRequest& WithConnections(ConnectionsT&& value) {
185 SetConnections(std::forward<ConnectionsT>(value));
186 return *this;
187 }
189
191
196 inline double GetMaxCapacity() const { return m_maxCapacity; }
197 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
198 inline void SetMaxCapacity(double value) {
199 m_maxCapacityHasBeenSet = true;
200 m_maxCapacity = value;
201 }
202 inline CreateSessionRequest& WithMaxCapacity(double value) {
203 SetMaxCapacity(value);
204 return *this;
205 }
207
209
213 inline int GetNumberOfWorkers() const { return m_numberOfWorkers; }
214 inline bool NumberOfWorkersHasBeenSet() const { return m_numberOfWorkersHasBeenSet; }
215 inline void SetNumberOfWorkers(int value) {
216 m_numberOfWorkersHasBeenSet = true;
217 m_numberOfWorkers = value;
218 }
220 SetNumberOfWorkers(value);
221 return *this;
222 }
224
226
300 inline WorkerType GetWorkerType() const { return m_workerType; }
301 inline bool WorkerTypeHasBeenSet() const { return m_workerTypeHasBeenSet; }
302 inline void SetWorkerType(WorkerType value) {
303 m_workerTypeHasBeenSet = true;
304 m_workerType = value;
305 }
307 SetWorkerType(value);
308 return *this;
309 }
311
313
317 inline const Aws::String& GetSecurityConfiguration() const { return m_securityConfiguration; }
318 inline bool SecurityConfigurationHasBeenSet() const { return m_securityConfigurationHasBeenSet; }
319 template <typename SecurityConfigurationT = Aws::String>
320 void SetSecurityConfiguration(SecurityConfigurationT&& value) {
321 m_securityConfigurationHasBeenSet = true;
322 m_securityConfiguration = std::forward<SecurityConfigurationT>(value);
323 }
324 template <typename SecurityConfigurationT = Aws::String>
325 CreateSessionRequest& WithSecurityConfiguration(SecurityConfigurationT&& value) {
326 SetSecurityConfiguration(std::forward<SecurityConfigurationT>(value));
327 return *this;
328 }
330
332
336 inline const Aws::String& GetGlueVersion() const { return m_glueVersion; }
337 inline bool GlueVersionHasBeenSet() const { return m_glueVersionHasBeenSet; }
338 template <typename GlueVersionT = Aws::String>
339 void SetGlueVersion(GlueVersionT&& value) {
340 m_glueVersionHasBeenSet = true;
341 m_glueVersion = std::forward<GlueVersionT>(value);
342 }
343 template <typename GlueVersionT = Aws::String>
344 CreateSessionRequest& WithGlueVersion(GlueVersionT&& value) {
345 SetGlueVersion(std::forward<GlueVersionT>(value));
346 return *this;
347 }
349
351
354 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
355 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
356 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
357 void SetTags(TagsT&& value) {
358 m_tagsHasBeenSet = true;
359 m_tags = std::forward<TagsT>(value);
360 }
361 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
363 SetTags(std::forward<TagsT>(value));
364 return *this;
365 }
366 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
367 CreateSessionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
368 m_tagsHasBeenSet = true;
369 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
370 return *this;
371 }
373
375
378 inline const Aws::String& GetRequestOrigin() const { return m_requestOrigin; }
379 inline bool RequestOriginHasBeenSet() const { return m_requestOriginHasBeenSet; }
380 template <typename RequestOriginT = Aws::String>
381 void SetRequestOrigin(RequestOriginT&& value) {
382 m_requestOriginHasBeenSet = true;
383 m_requestOrigin = std::forward<RequestOriginT>(value);
384 }
385 template <typename RequestOriginT = Aws::String>
386 CreateSessionRequest& WithRequestOrigin(RequestOriginT&& value) {
387 SetRequestOrigin(std::forward<RequestOriginT>(value));
388 return *this;
389 }
391
393
396 inline SessionType GetSessionType() const { return m_sessionType; }
397 inline bool SessionTypeHasBeenSet() const { return m_sessionTypeHasBeenSet; }
398 inline void SetSessionType(SessionType value) {
399 m_sessionTypeHasBeenSet = true;
400 m_sessionType = value;
401 }
403 SetSessionType(value);
404 return *this;
405 }
407 private:
408 Aws::String m_id;
409
410 Aws::String m_description;
411
412 Aws::String m_role;
413
414 SessionCommand m_command;
415
416 int m_timeout{0};
417
418 int m_idleTimeout{0};
419
420 Aws::Map<Aws::String, Aws::String> m_defaultArguments;
421
422 ConnectionsList m_connections;
423
424 double m_maxCapacity{0.0};
425
426 int m_numberOfWorkers{0};
427
428 WorkerType m_workerType{WorkerType::NOT_SET};
429
430 Aws::String m_securityConfiguration;
431
432 Aws::String m_glueVersion;
433
435
436 Aws::String m_requestOrigin;
437
438 SessionType m_sessionType{SessionType::NOT_SET};
439 bool m_idHasBeenSet = false;
440 bool m_descriptionHasBeenSet = false;
441 bool m_roleHasBeenSet = false;
442 bool m_commandHasBeenSet = false;
443 bool m_timeoutHasBeenSet = false;
444 bool m_idleTimeoutHasBeenSet = false;
445 bool m_defaultArgumentsHasBeenSet = false;
446 bool m_connectionsHasBeenSet = false;
447 bool m_maxCapacityHasBeenSet = false;
448 bool m_numberOfWorkersHasBeenSet = false;
449 bool m_workerTypeHasBeenSet = false;
450 bool m_securityConfigurationHasBeenSet = false;
451 bool m_glueVersionHasBeenSet = false;
452 bool m_tagsHasBeenSet = false;
453 bool m_requestOriginHasBeenSet = false;
454 bool m_sessionTypeHasBeenSet = false;
455};
456
457} // namespace Model
458} // namespace Glue
459} // namespace Aws
const ConnectionsList & GetConnections() const
CreateSessionRequest & WithTimeout(int value)
AWS_GLUE_API Aws::String SerializePayload() const override
CreateSessionRequest & WithDefaultArguments(DefaultArgumentsT &&value)
CreateSessionRequest & WithCommand(CommandT &&value)
CreateSessionRequest & WithMaxCapacity(double value)
CreateSessionRequest & WithDescription(DescriptionT &&value)
CreateSessionRequest & WithWorkerType(WorkerType value)
CreateSessionRequest & WithIdleTimeout(int value)
CreateSessionRequest & WithSessionType(SessionType value)
CreateSessionRequest & WithId(IdT &&value)
CreateSessionRequest & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetDefaultArguments() const
CreateSessionRequest & WithConnections(ConnectionsT &&value)
CreateSessionRequest & AddDefaultArguments(DefaultArgumentsKeyT &&key, DefaultArgumentsValueT &&value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateSessionRequest & WithRole(RoleT &&value)
const Aws::String & GetRequestOrigin() const
const SessionCommand & GetCommand() const
CreateSessionRequest & WithSecurityConfiguration(SecurityConfigurationT &&value)
void SetSecurityConfiguration(SecurityConfigurationT &&value)
void SetRequestOrigin(RequestOriginT &&value)
virtual const char * GetServiceRequestName() const override
AWS_GLUE_API CreateSessionRequest()=default
CreateSessionRequest & WithRequestOrigin(RequestOriginT &&value)
void SetDefaultArguments(DefaultArgumentsT &&value)
const Aws::String & GetSecurityConfiguration() const
CreateSessionRequest & WithGlueVersion(GlueVersionT &&value)
const Aws::String & GetDescription() const
CreateSessionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateSessionRequest & WithNumberOfWorkers(int value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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