AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateSessionRequest.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/glue/GlueRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/glue/model/SessionCommand.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/glue/model/ConnectionsList.h>
13#include <aws/glue/model/WorkerType.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Glue
19{
20namespace Model
21{
22
29 {
30 public:
31 AWS_GLUE_API CreateSessionRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateSession"; }
38
39 AWS_GLUE_API Aws::String SerializePayload() const override;
40
42
43
45
48 inline const Aws::String& GetId() const{ return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
51 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
52 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
53 inline CreateSessionRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
54 inline CreateSessionRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
55 inline CreateSessionRequest& WithId(const char* value) { SetId(value); return *this;}
57
59
62 inline const Aws::String& GetDescription() const{ return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
65 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
66 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
67 inline CreateSessionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
68 inline CreateSessionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
69 inline CreateSessionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
71
73
76 inline const Aws::String& GetRole() const{ return m_role; }
77 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
78 inline void SetRole(const Aws::String& value) { m_roleHasBeenSet = true; m_role = value; }
79 inline void SetRole(Aws::String&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
80 inline void SetRole(const char* value) { m_roleHasBeenSet = true; m_role.assign(value); }
81 inline CreateSessionRequest& WithRole(const Aws::String& value) { SetRole(value); return *this;}
82 inline CreateSessionRequest& WithRole(Aws::String&& value) { SetRole(std::move(value)); return *this;}
83 inline CreateSessionRequest& WithRole(const char* value) { SetRole(value); return *this;}
85
87
90 inline const SessionCommand& GetCommand() const{ return m_command; }
91 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
92 inline void SetCommand(const SessionCommand& value) { m_commandHasBeenSet = true; m_command = value; }
93 inline void SetCommand(SessionCommand&& value) { m_commandHasBeenSet = true; m_command = std::move(value); }
94 inline CreateSessionRequest& WithCommand(const SessionCommand& value) { SetCommand(value); return *this;}
95 inline CreateSessionRequest& WithCommand(SessionCommand&& value) { SetCommand(std::move(value)); return *this;}
97
99
104 inline int GetTimeout() const{ return m_timeout; }
105 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
106 inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; }
107 inline CreateSessionRequest& WithTimeout(int value) { SetTimeout(value); return *this;}
109
111
116 inline int GetIdleTimeout() const{ return m_idleTimeout; }
117 inline bool IdleTimeoutHasBeenSet() const { return m_idleTimeoutHasBeenSet; }
118 inline void SetIdleTimeout(int value) { m_idleTimeoutHasBeenSet = true; m_idleTimeout = value; }
119 inline CreateSessionRequest& WithIdleTimeout(int value) { SetIdleTimeout(value); return *this;}
121
123
126 inline const Aws::Map<Aws::String, Aws::String>& GetDefaultArguments() const{ return m_defaultArguments; }
127 inline bool DefaultArgumentsHasBeenSet() const { return m_defaultArgumentsHasBeenSet; }
128 inline void SetDefaultArguments(const Aws::Map<Aws::String, Aws::String>& value) { m_defaultArgumentsHasBeenSet = true; m_defaultArguments = value; }
129 inline void SetDefaultArguments(Aws::Map<Aws::String, Aws::String>&& value) { m_defaultArgumentsHasBeenSet = true; m_defaultArguments = std::move(value); }
132 inline CreateSessionRequest& AddDefaultArguments(const Aws::String& key, const Aws::String& value) { m_defaultArgumentsHasBeenSet = true; m_defaultArguments.emplace(key, value); return *this; }
133 inline CreateSessionRequest& AddDefaultArguments(Aws::String&& key, const Aws::String& value) { m_defaultArgumentsHasBeenSet = true; m_defaultArguments.emplace(std::move(key), value); return *this; }
134 inline CreateSessionRequest& AddDefaultArguments(const Aws::String& key, Aws::String&& value) { m_defaultArgumentsHasBeenSet = true; m_defaultArguments.emplace(key, std::move(value)); return *this; }
135 inline CreateSessionRequest& AddDefaultArguments(Aws::String&& key, Aws::String&& value) { m_defaultArgumentsHasBeenSet = true; m_defaultArguments.emplace(std::move(key), std::move(value)); return *this; }
136 inline CreateSessionRequest& AddDefaultArguments(const char* key, Aws::String&& value) { m_defaultArgumentsHasBeenSet = true; m_defaultArguments.emplace(key, std::move(value)); return *this; }
137 inline CreateSessionRequest& AddDefaultArguments(Aws::String&& key, const char* value) { m_defaultArgumentsHasBeenSet = true; m_defaultArguments.emplace(std::move(key), value); return *this; }
138 inline CreateSessionRequest& AddDefaultArguments(const char* key, const char* value) { m_defaultArgumentsHasBeenSet = true; m_defaultArguments.emplace(key, value); return *this; }
140
142
145 inline const ConnectionsList& GetConnections() const{ return m_connections; }
146 inline bool ConnectionsHasBeenSet() const { return m_connectionsHasBeenSet; }
147 inline void SetConnections(const ConnectionsList& value) { m_connectionsHasBeenSet = true; m_connections = value; }
148 inline void SetConnections(ConnectionsList&& value) { m_connectionsHasBeenSet = true; m_connections = std::move(value); }
149 inline CreateSessionRequest& WithConnections(const ConnectionsList& value) { SetConnections(value); return *this;}
150 inline CreateSessionRequest& WithConnections(ConnectionsList&& value) { SetConnections(std::move(value)); return *this;}
152
154
159 inline double GetMaxCapacity() const{ return m_maxCapacity; }
160 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
161 inline void SetMaxCapacity(double value) { m_maxCapacityHasBeenSet = true; m_maxCapacity = value; }
162 inline CreateSessionRequest& WithMaxCapacity(double value) { SetMaxCapacity(value); return *this;}
164
166
170 inline int GetNumberOfWorkers() const{ return m_numberOfWorkers; }
171 inline bool NumberOfWorkersHasBeenSet() const { return m_numberOfWorkersHasBeenSet; }
172 inline void SetNumberOfWorkers(int value) { m_numberOfWorkersHasBeenSet = true; m_numberOfWorkers = value; }
173 inline CreateSessionRequest& WithNumberOfWorkers(int value) { SetNumberOfWorkers(value); return *this;}
175
177
208 inline const WorkerType& GetWorkerType() const{ return m_workerType; }
209 inline bool WorkerTypeHasBeenSet() const { return m_workerTypeHasBeenSet; }
210 inline void SetWorkerType(const WorkerType& value) { m_workerTypeHasBeenSet = true; m_workerType = value; }
211 inline void SetWorkerType(WorkerType&& value) { m_workerTypeHasBeenSet = true; m_workerType = std::move(value); }
212 inline CreateSessionRequest& WithWorkerType(const WorkerType& value) { SetWorkerType(value); return *this;}
213 inline CreateSessionRequest& WithWorkerType(WorkerType&& value) { SetWorkerType(std::move(value)); return *this;}
215
217
221 inline const Aws::String& GetSecurityConfiguration() const{ return m_securityConfiguration; }
222 inline bool SecurityConfigurationHasBeenSet() const { return m_securityConfigurationHasBeenSet; }
223 inline void SetSecurityConfiguration(const Aws::String& value) { m_securityConfigurationHasBeenSet = true; m_securityConfiguration = value; }
224 inline void SetSecurityConfiguration(Aws::String&& value) { m_securityConfigurationHasBeenSet = true; m_securityConfiguration = std::move(value); }
225 inline void SetSecurityConfiguration(const char* value) { m_securityConfigurationHasBeenSet = true; m_securityConfiguration.assign(value); }
227 inline CreateSessionRequest& WithSecurityConfiguration(Aws::String&& value) { SetSecurityConfiguration(std::move(value)); return *this;}
228 inline CreateSessionRequest& WithSecurityConfiguration(const char* value) { SetSecurityConfiguration(value); return *this;}
230
232
236 inline const Aws::String& GetGlueVersion() const{ return m_glueVersion; }
237 inline bool GlueVersionHasBeenSet() const { return m_glueVersionHasBeenSet; }
238 inline void SetGlueVersion(const Aws::String& value) { m_glueVersionHasBeenSet = true; m_glueVersion = value; }
239 inline void SetGlueVersion(Aws::String&& value) { m_glueVersionHasBeenSet = true; m_glueVersion = std::move(value); }
240 inline void SetGlueVersion(const char* value) { m_glueVersionHasBeenSet = true; m_glueVersion.assign(value); }
241 inline CreateSessionRequest& WithGlueVersion(const Aws::String& value) { SetGlueVersion(value); return *this;}
242 inline CreateSessionRequest& WithGlueVersion(Aws::String&& value) { SetGlueVersion(std::move(value)); return *this;}
243 inline CreateSessionRequest& WithGlueVersion(const char* value) { SetGlueVersion(value); return *this;}
245
247
250 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
251 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
252 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
253 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
254 inline CreateSessionRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
255 inline CreateSessionRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
256 inline CreateSessionRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
257 inline CreateSessionRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
258 inline CreateSessionRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
259 inline CreateSessionRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
260 inline CreateSessionRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
261 inline CreateSessionRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
262 inline CreateSessionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
264
266
269 inline const Aws::String& GetRequestOrigin() const{ return m_requestOrigin; }
270 inline bool RequestOriginHasBeenSet() const { return m_requestOriginHasBeenSet; }
271 inline void SetRequestOrigin(const Aws::String& value) { m_requestOriginHasBeenSet = true; m_requestOrigin = value; }
272 inline void SetRequestOrigin(Aws::String&& value) { m_requestOriginHasBeenSet = true; m_requestOrigin = std::move(value); }
273 inline void SetRequestOrigin(const char* value) { m_requestOriginHasBeenSet = true; m_requestOrigin.assign(value); }
274 inline CreateSessionRequest& WithRequestOrigin(const Aws::String& value) { SetRequestOrigin(value); return *this;}
275 inline CreateSessionRequest& WithRequestOrigin(Aws::String&& value) { SetRequestOrigin(std::move(value)); return *this;}
276 inline CreateSessionRequest& WithRequestOrigin(const char* value) { SetRequestOrigin(value); return *this;}
278 private:
279
280 Aws::String m_id;
281 bool m_idHasBeenSet = false;
282
283 Aws::String m_description;
284 bool m_descriptionHasBeenSet = false;
285
286 Aws::String m_role;
287 bool m_roleHasBeenSet = false;
288
289 SessionCommand m_command;
290 bool m_commandHasBeenSet = false;
291
292 int m_timeout;
293 bool m_timeoutHasBeenSet = false;
294
295 int m_idleTimeout;
296 bool m_idleTimeoutHasBeenSet = false;
297
298 Aws::Map<Aws::String, Aws::String> m_defaultArguments;
299 bool m_defaultArgumentsHasBeenSet = false;
300
301 ConnectionsList m_connections;
302 bool m_connectionsHasBeenSet = false;
303
304 double m_maxCapacity;
305 bool m_maxCapacityHasBeenSet = false;
306
307 int m_numberOfWorkers;
308 bool m_numberOfWorkersHasBeenSet = false;
309
310 WorkerType m_workerType;
311 bool m_workerTypeHasBeenSet = false;
312
313 Aws::String m_securityConfiguration;
314 bool m_securityConfigurationHasBeenSet = false;
315
316 Aws::String m_glueVersion;
317 bool m_glueVersionHasBeenSet = false;
318
320 bool m_tagsHasBeenSet = false;
321
322 Aws::String m_requestOrigin;
323 bool m_requestOriginHasBeenSet = false;
324 };
325
326} // namespace Model
327} // namespace Glue
328} // namespace Aws
const ConnectionsList & GetConnections() const
CreateSessionRequest & AddDefaultArguments(Aws::String &&key, Aws::String &&value)
CreateSessionRequest & AddTags(const char *key, Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateSessionRequest & WithTimeout(int value)
CreateSessionRequest & AddTags(const Aws::String &key, Aws::String &&value)
AWS_GLUE_API Aws::String SerializePayload() const override
CreateSessionRequest & WithRole(const char *value)
CreateSessionRequest & WithMaxCapacity(double value)
CreateSessionRequest & WithRequestOrigin(const char *value)
CreateSessionRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateSessionRequest & WithDescription(Aws::String &&value)
void SetGlueVersion(const Aws::String &value)
CreateSessionRequest & WithDescription(const Aws::String &value)
CreateSessionRequest & WithConnections(ConnectionsList &&value)
void SetConnections(const ConnectionsList &value)
void SetDescription(const Aws::String &value)
CreateSessionRequest & WithConnections(const ConnectionsList &value)
CreateSessionRequest & AddDefaultArguments(const Aws::String &key, Aws::String &&value)
CreateSessionRequest & AddTags(Aws::String &&key, const char *value)
void SetRequestOrigin(const Aws::String &value)
CreateSessionRequest & WithWorkerType(const WorkerType &value)
CreateSessionRequest & AddDefaultArguments(Aws::String &&key, const Aws::String &value)
CreateSessionRequest & WithIdleTimeout(int value)
CreateSessionRequest & WithId(const char *value)
CreateSessionRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateSessionRequest & AddTags(const char *key, const char *value)
CreateSessionRequest & WithGlueVersion(Aws::String &&value)
CreateSessionRequest & WithRole(Aws::String &&value)
CreateSessionRequest & AddDefaultArguments(const Aws::String &key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetDefaultArguments() const
void SetSecurityConfiguration(const Aws::String &value)
CreateSessionRequest & WithId(const Aws::String &value)
CreateSessionRequest & AddDefaultArguments(const char *key, Aws::String &&value)
CreateSessionRequest & AddDefaultArguments(const char *key, const char *value)
CreateSessionRequest & WithDefaultArguments(Aws::Map< Aws::String, Aws::String > &&value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateSessionRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateSessionRequest & WithSecurityConfiguration(const char *value)
const Aws::String & GetRequestOrigin() const
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateSessionRequest & WithId(Aws::String &&value)
CreateSessionRequest & AddDefaultArguments(Aws::String &&key, const char *value)
const SessionCommand & GetCommand() const
CreateSessionRequest & WithGlueVersion(const Aws::String &value)
void SetCommand(SessionCommand &&value)
virtual const char * GetServiceRequestName() const override
void SetId(const Aws::String &value)
void SetDefaultArguments(Aws::Map< Aws::String, Aws::String > &&value)
void SetCommand(const SessionCommand &value)
CreateSessionRequest & WithRequestOrigin(const Aws::String &value)
CreateSessionRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::String & GetSecurityConfiguration() const
CreateSessionRequest & WithDefaultArguments(const Aws::Map< Aws::String, Aws::String > &value)
CreateSessionRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateSessionRequest & WithGlueVersion(const char *value)
CreateSessionRequest & WithSecurityConfiguration(Aws::String &&value)
CreateSessionRequest & WithWorkerType(WorkerType &&value)
void SetSecurityConfiguration(Aws::String &&value)
const Aws::String & GetDescription() const
CreateSessionRequest & WithCommand(SessionCommand &&value)
CreateSessionRequest & WithRole(const Aws::String &value)
void SetDefaultArguments(const Aws::Map< Aws::String, Aws::String > &value)
CreateSessionRequest & WithDescription(const char *value)
CreateSessionRequest & WithRequestOrigin(Aws::String &&value)
CreateSessionRequest & WithNumberOfWorkers(int value)
void SetWorkerType(const WorkerType &value)
CreateSessionRequest & WithCommand(const SessionCommand &value)
void SetRole(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateSessionRequest & WithSecurityConfiguration(const Aws::String &value)
void SetConnections(ConnectionsList &&value)
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