AWS SDK for C++

AWS SDK for C++ Version 1.11.838

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
255 inline WorkerType GetWorkerType() const { return m_workerType; }
256 inline bool WorkerTypeHasBeenSet() const { return m_workerTypeHasBeenSet; }
257 inline void SetWorkerType(WorkerType value) {
258 m_workerTypeHasBeenSet = true;
259 m_workerType = value;
260 }
262 SetWorkerType(value);
263 return *this;
264 }
266
268
272 inline const Aws::String& GetSecurityConfiguration() const { return m_securityConfiguration; }
273 inline bool SecurityConfigurationHasBeenSet() const { return m_securityConfigurationHasBeenSet; }
274 template <typename SecurityConfigurationT = Aws::String>
275 void SetSecurityConfiguration(SecurityConfigurationT&& value) {
276 m_securityConfigurationHasBeenSet = true;
277 m_securityConfiguration = std::forward<SecurityConfigurationT>(value);
278 }
279 template <typename SecurityConfigurationT = Aws::String>
280 CreateSessionRequest& WithSecurityConfiguration(SecurityConfigurationT&& value) {
281 SetSecurityConfiguration(std::forward<SecurityConfigurationT>(value));
282 return *this;
283 }
285
287
291 inline const Aws::String& GetGlueVersion() const { return m_glueVersion; }
292 inline bool GlueVersionHasBeenSet() const { return m_glueVersionHasBeenSet; }
293 template <typename GlueVersionT = Aws::String>
294 void SetGlueVersion(GlueVersionT&& value) {
295 m_glueVersionHasBeenSet = true;
296 m_glueVersion = std::forward<GlueVersionT>(value);
297 }
298 template <typename GlueVersionT = Aws::String>
299 CreateSessionRequest& WithGlueVersion(GlueVersionT&& value) {
300 SetGlueVersion(std::forward<GlueVersionT>(value));
301 return *this;
302 }
304
306
309 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
310 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
311 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
312 void SetTags(TagsT&& value) {
313 m_tagsHasBeenSet = true;
314 m_tags = std::forward<TagsT>(value);
315 }
316 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
318 SetTags(std::forward<TagsT>(value));
319 return *this;
320 }
321 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
322 CreateSessionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
323 m_tagsHasBeenSet = true;
324 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
325 return *this;
326 }
328
330
333 inline const Aws::String& GetRequestOrigin() const { return m_requestOrigin; }
334 inline bool RequestOriginHasBeenSet() const { return m_requestOriginHasBeenSet; }
335 template <typename RequestOriginT = Aws::String>
336 void SetRequestOrigin(RequestOriginT&& value) {
337 m_requestOriginHasBeenSet = true;
338 m_requestOrigin = std::forward<RequestOriginT>(value);
339 }
340 template <typename RequestOriginT = Aws::String>
341 CreateSessionRequest& WithRequestOrigin(RequestOriginT&& value) {
342 SetRequestOrigin(std::forward<RequestOriginT>(value));
343 return *this;
344 }
346
348
351 inline SessionType GetSessionType() const { return m_sessionType; }
352 inline bool SessionTypeHasBeenSet() const { return m_sessionTypeHasBeenSet; }
353 inline void SetSessionType(SessionType value) {
354 m_sessionTypeHasBeenSet = true;
355 m_sessionType = value;
356 }
358 SetSessionType(value);
359 return *this;
360 }
362 private:
363 Aws::String m_id;
364
365 Aws::String m_description;
366
367 Aws::String m_role;
368
369 SessionCommand m_command;
370
371 int m_timeout{0};
372
373 int m_idleTimeout{0};
374
375 Aws::Map<Aws::String, Aws::String> m_defaultArguments;
376
377 ConnectionsList m_connections;
378
379 double m_maxCapacity{0.0};
380
381 int m_numberOfWorkers{0};
382
383 WorkerType m_workerType{WorkerType::NOT_SET};
384
385 Aws::String m_securityConfiguration;
386
387 Aws::String m_glueVersion;
388
390
391 Aws::String m_requestOrigin;
392
393 SessionType m_sessionType{SessionType::NOT_SET};
394 bool m_idHasBeenSet = false;
395 bool m_descriptionHasBeenSet = false;
396 bool m_roleHasBeenSet = false;
397 bool m_commandHasBeenSet = false;
398 bool m_timeoutHasBeenSet = false;
399 bool m_idleTimeoutHasBeenSet = false;
400 bool m_defaultArgumentsHasBeenSet = false;
401 bool m_connectionsHasBeenSet = false;
402 bool m_maxCapacityHasBeenSet = false;
403 bool m_numberOfWorkersHasBeenSet = false;
404 bool m_workerTypeHasBeenSet = false;
405 bool m_securityConfigurationHasBeenSet = false;
406 bool m_glueVersionHasBeenSet = false;
407 bool m_tagsHasBeenSet = false;
408 bool m_requestOriginHasBeenSet = false;
409 bool m_sessionTypeHasBeenSet = false;
410};
411
412} // namespace Model
413} // namespace Glue
414} // 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