AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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/WorkerType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Glue {
19namespace Model {
20
27 public:
28 AWS_GLUE_API CreateSessionRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateSession"; }
35
36 AWS_GLUE_API Aws::String SerializePayload() const override;
37
39
41
44 inline const Aws::String& GetId() const { return m_id; }
45 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
46 template <typename IdT = Aws::String>
47 void SetId(IdT&& value) {
48 m_idHasBeenSet = true;
49 m_id = std::forward<IdT>(value);
50 }
51 template <typename IdT = Aws::String>
53 SetId(std::forward<IdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetDescription() const { return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 template <typename DescriptionT = Aws::String>
65 void SetDescription(DescriptionT&& value) {
66 m_descriptionHasBeenSet = true;
67 m_description = std::forward<DescriptionT>(value);
68 }
69 template <typename DescriptionT = Aws::String>
70 CreateSessionRequest& WithDescription(DescriptionT&& value) {
71 SetDescription(std::forward<DescriptionT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetRole() const { return m_role; }
81 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
82 template <typename RoleT = Aws::String>
83 void SetRole(RoleT&& value) {
84 m_roleHasBeenSet = true;
85 m_role = std::forward<RoleT>(value);
86 }
87 template <typename RoleT = Aws::String>
89 SetRole(std::forward<RoleT>(value));
90 return *this;
91 }
93
95
98 inline const SessionCommand& GetCommand() const { return m_command; }
99 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
100 template <typename CommandT = SessionCommand>
101 void SetCommand(CommandT&& value) {
102 m_commandHasBeenSet = true;
103 m_command = std::forward<CommandT>(value);
104 }
105 template <typename CommandT = SessionCommand>
107 SetCommand(std::forward<CommandT>(value));
108 return *this;
109 }
111
113
117 inline int GetTimeout() const { return m_timeout; }
118 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
119 inline void SetTimeout(int value) {
120 m_timeoutHasBeenSet = true;
121 m_timeout = value;
122 }
124 SetTimeout(value);
125 return *this;
126 }
128
130
135 inline int GetIdleTimeout() const { return m_idleTimeout; }
136 inline bool IdleTimeoutHasBeenSet() const { return m_idleTimeoutHasBeenSet; }
137 inline void SetIdleTimeout(int value) {
138 m_idleTimeoutHasBeenSet = true;
139 m_idleTimeout = value;
140 }
142 SetIdleTimeout(value);
143 return *this;
144 }
146
148
151 inline const Aws::Map<Aws::String, Aws::String>& GetDefaultArguments() const { return m_defaultArguments; }
152 inline bool DefaultArgumentsHasBeenSet() const { return m_defaultArgumentsHasBeenSet; }
153 template <typename DefaultArgumentsT = Aws::Map<Aws::String, Aws::String>>
154 void SetDefaultArguments(DefaultArgumentsT&& value) {
155 m_defaultArgumentsHasBeenSet = true;
156 m_defaultArguments = std::forward<DefaultArgumentsT>(value);
157 }
158 template <typename DefaultArgumentsT = Aws::Map<Aws::String, Aws::String>>
159 CreateSessionRequest& WithDefaultArguments(DefaultArgumentsT&& value) {
160 SetDefaultArguments(std::forward<DefaultArgumentsT>(value));
161 return *this;
162 }
163 template <typename DefaultArgumentsKeyT = Aws::String, typename DefaultArgumentsValueT = Aws::String>
164 CreateSessionRequest& AddDefaultArguments(DefaultArgumentsKeyT&& key, DefaultArgumentsValueT&& value) {
165 m_defaultArgumentsHasBeenSet = true;
166 m_defaultArguments.emplace(std::forward<DefaultArgumentsKeyT>(key), std::forward<DefaultArgumentsValueT>(value));
167 return *this;
168 }
170
172
175 inline const ConnectionsList& GetConnections() const { return m_connections; }
176 inline bool ConnectionsHasBeenSet() const { return m_connectionsHasBeenSet; }
177 template <typename ConnectionsT = ConnectionsList>
178 void SetConnections(ConnectionsT&& value) {
179 m_connectionsHasBeenSet = true;
180 m_connections = std::forward<ConnectionsT>(value);
181 }
182 template <typename ConnectionsT = ConnectionsList>
183 CreateSessionRequest& WithConnections(ConnectionsT&& value) {
184 SetConnections(std::forward<ConnectionsT>(value));
185 return *this;
186 }
188
190
195 inline double GetMaxCapacity() const { return m_maxCapacity; }
196 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
197 inline void SetMaxCapacity(double value) {
198 m_maxCapacityHasBeenSet = true;
199 m_maxCapacity = value;
200 }
201 inline CreateSessionRequest& WithMaxCapacity(double value) {
202 SetMaxCapacity(value);
203 return *this;
204 }
206
208
212 inline int GetNumberOfWorkers() const { return m_numberOfWorkers; }
213 inline bool NumberOfWorkersHasBeenSet() const { return m_numberOfWorkersHasBeenSet; }
214 inline void SetNumberOfWorkers(int value) {
215 m_numberOfWorkersHasBeenSet = true;
216 m_numberOfWorkers = value;
217 }
219 SetNumberOfWorkers(value);
220 return *this;
221 }
223
225
254 inline WorkerType GetWorkerType() const { return m_workerType; }
255 inline bool WorkerTypeHasBeenSet() const { return m_workerTypeHasBeenSet; }
256 inline void SetWorkerType(WorkerType value) {
257 m_workerTypeHasBeenSet = true;
258 m_workerType = value;
259 }
261 SetWorkerType(value);
262 return *this;
263 }
265
267
271 inline const Aws::String& GetSecurityConfiguration() const { return m_securityConfiguration; }
272 inline bool SecurityConfigurationHasBeenSet() const { return m_securityConfigurationHasBeenSet; }
273 template <typename SecurityConfigurationT = Aws::String>
274 void SetSecurityConfiguration(SecurityConfigurationT&& value) {
275 m_securityConfigurationHasBeenSet = true;
276 m_securityConfiguration = std::forward<SecurityConfigurationT>(value);
277 }
278 template <typename SecurityConfigurationT = Aws::String>
279 CreateSessionRequest& WithSecurityConfiguration(SecurityConfigurationT&& value) {
280 SetSecurityConfiguration(std::forward<SecurityConfigurationT>(value));
281 return *this;
282 }
284
286
290 inline const Aws::String& GetGlueVersion() const { return m_glueVersion; }
291 inline bool GlueVersionHasBeenSet() const { return m_glueVersionHasBeenSet; }
292 template <typename GlueVersionT = Aws::String>
293 void SetGlueVersion(GlueVersionT&& value) {
294 m_glueVersionHasBeenSet = true;
295 m_glueVersion = std::forward<GlueVersionT>(value);
296 }
297 template <typename GlueVersionT = Aws::String>
298 CreateSessionRequest& WithGlueVersion(GlueVersionT&& value) {
299 SetGlueVersion(std::forward<GlueVersionT>(value));
300 return *this;
301 }
303
305
308 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
309 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
310 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
311 void SetTags(TagsT&& value) {
312 m_tagsHasBeenSet = true;
313 m_tags = std::forward<TagsT>(value);
314 }
315 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
317 SetTags(std::forward<TagsT>(value));
318 return *this;
319 }
320 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
321 CreateSessionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
322 m_tagsHasBeenSet = true;
323 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
324 return *this;
325 }
327
329
332 inline const Aws::String& GetRequestOrigin() const { return m_requestOrigin; }
333 inline bool RequestOriginHasBeenSet() const { return m_requestOriginHasBeenSet; }
334 template <typename RequestOriginT = Aws::String>
335 void SetRequestOrigin(RequestOriginT&& value) {
336 m_requestOriginHasBeenSet = true;
337 m_requestOrigin = std::forward<RequestOriginT>(value);
338 }
339 template <typename RequestOriginT = Aws::String>
340 CreateSessionRequest& WithRequestOrigin(RequestOriginT&& value) {
341 SetRequestOrigin(std::forward<RequestOriginT>(value));
342 return *this;
343 }
345 private:
346 Aws::String m_id;
347
348 Aws::String m_description;
349
350 Aws::String m_role;
351
352 SessionCommand m_command;
353
354 int m_timeout{0};
355
356 int m_idleTimeout{0};
357
358 Aws::Map<Aws::String, Aws::String> m_defaultArguments;
359
360 ConnectionsList m_connections;
361
362 double m_maxCapacity{0.0};
363
364 int m_numberOfWorkers{0};
365
366 WorkerType m_workerType{WorkerType::NOT_SET};
367
368 Aws::String m_securityConfiguration;
369
370 Aws::String m_glueVersion;
371
373
374 Aws::String m_requestOrigin;
375 bool m_idHasBeenSet = false;
376 bool m_descriptionHasBeenSet = false;
377 bool m_roleHasBeenSet = false;
378 bool m_commandHasBeenSet = false;
379 bool m_timeoutHasBeenSet = false;
380 bool m_idleTimeoutHasBeenSet = false;
381 bool m_defaultArgumentsHasBeenSet = false;
382 bool m_connectionsHasBeenSet = false;
383 bool m_maxCapacityHasBeenSet = false;
384 bool m_numberOfWorkersHasBeenSet = false;
385 bool m_workerTypeHasBeenSet = false;
386 bool m_securityConfigurationHasBeenSet = false;
387 bool m_glueVersionHasBeenSet = false;
388 bool m_tagsHasBeenSet = false;
389 bool m_requestOriginHasBeenSet = false;
390};
391
392} // namespace Model
393} // namespace Glue
394} // 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 & 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