AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename IdT = Aws::String>
51 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
52 template<typename IdT = Aws::String>
53 CreateSessionRequest& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
55
57
60 inline const Aws::String& GetDescription() const { return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 template<typename DescriptionT = Aws::String>
63 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
64 template<typename DescriptionT = Aws::String>
65 CreateSessionRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
67
69
72 inline const Aws::String& GetRole() const { return m_role; }
73 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
74 template<typename RoleT = Aws::String>
75 void SetRole(RoleT&& value) { m_roleHasBeenSet = true; m_role = std::forward<RoleT>(value); }
76 template<typename RoleT = Aws::String>
77 CreateSessionRequest& WithRole(RoleT&& value) { SetRole(std::forward<RoleT>(value)); return *this;}
79
81
84 inline const SessionCommand& GetCommand() const { return m_command; }
85 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
86 template<typename CommandT = SessionCommand>
87 void SetCommand(CommandT&& value) { m_commandHasBeenSet = true; m_command = std::forward<CommandT>(value); }
88 template<typename CommandT = SessionCommand>
89 CreateSessionRequest& WithCommand(CommandT&& value) { SetCommand(std::forward<CommandT>(value)); return *this;}
91
93
97 inline int GetTimeout() const { return m_timeout; }
98 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
99 inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; }
100 inline CreateSessionRequest& WithTimeout(int value) { SetTimeout(value); return *this;}
102
104
109 inline int GetIdleTimeout() const { return m_idleTimeout; }
110 inline bool IdleTimeoutHasBeenSet() const { return m_idleTimeoutHasBeenSet; }
111 inline void SetIdleTimeout(int value) { m_idleTimeoutHasBeenSet = true; m_idleTimeout = value; }
112 inline CreateSessionRequest& WithIdleTimeout(int value) { SetIdleTimeout(value); return *this;}
114
116
119 inline const Aws::Map<Aws::String, Aws::String>& GetDefaultArguments() const { return m_defaultArguments; }
120 inline bool DefaultArgumentsHasBeenSet() const { return m_defaultArgumentsHasBeenSet; }
121 template<typename DefaultArgumentsT = Aws::Map<Aws::String, Aws::String>>
122 void SetDefaultArguments(DefaultArgumentsT&& value) { m_defaultArgumentsHasBeenSet = true; m_defaultArguments = std::forward<DefaultArgumentsT>(value); }
123 template<typename DefaultArgumentsT = Aws::Map<Aws::String, Aws::String>>
124 CreateSessionRequest& WithDefaultArguments(DefaultArgumentsT&& value) { SetDefaultArguments(std::forward<DefaultArgumentsT>(value)); return *this;}
125 template<typename DefaultArgumentsKeyT = Aws::String, typename DefaultArgumentsValueT = Aws::String>
126 CreateSessionRequest& AddDefaultArguments(DefaultArgumentsKeyT&& key, DefaultArgumentsValueT&& value) {
127 m_defaultArgumentsHasBeenSet = true; m_defaultArguments.emplace(std::forward<DefaultArgumentsKeyT>(key), std::forward<DefaultArgumentsValueT>(value)); return *this;
128 }
130
132
135 inline const ConnectionsList& GetConnections() const { return m_connections; }
136 inline bool ConnectionsHasBeenSet() const { return m_connectionsHasBeenSet; }
137 template<typename ConnectionsT = ConnectionsList>
138 void SetConnections(ConnectionsT&& value) { m_connectionsHasBeenSet = true; m_connections = std::forward<ConnectionsT>(value); }
139 template<typename ConnectionsT = ConnectionsList>
140 CreateSessionRequest& WithConnections(ConnectionsT&& value) { SetConnections(std::forward<ConnectionsT>(value)); return *this;}
142
144
149 inline double GetMaxCapacity() const { return m_maxCapacity; }
150 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
151 inline void SetMaxCapacity(double value) { m_maxCapacityHasBeenSet = true; m_maxCapacity = value; }
152 inline CreateSessionRequest& WithMaxCapacity(double value) { SetMaxCapacity(value); return *this;}
154
156
160 inline int GetNumberOfWorkers() const { return m_numberOfWorkers; }
161 inline bool NumberOfWorkersHasBeenSet() const { return m_numberOfWorkersHasBeenSet; }
162 inline void SetNumberOfWorkers(int value) { m_numberOfWorkersHasBeenSet = true; m_numberOfWorkers = value; }
163 inline CreateSessionRequest& WithNumberOfWorkers(int value) { SetNumberOfWorkers(value); return *this;}
165
167
196 inline WorkerType GetWorkerType() const { return m_workerType; }
197 inline bool WorkerTypeHasBeenSet() const { return m_workerTypeHasBeenSet; }
198 inline void SetWorkerType(WorkerType value) { m_workerTypeHasBeenSet = true; m_workerType = value; }
199 inline CreateSessionRequest& WithWorkerType(WorkerType value) { SetWorkerType(value); return *this;}
201
203
207 inline const Aws::String& GetSecurityConfiguration() const { return m_securityConfiguration; }
208 inline bool SecurityConfigurationHasBeenSet() const { return m_securityConfigurationHasBeenSet; }
209 template<typename SecurityConfigurationT = Aws::String>
210 void SetSecurityConfiguration(SecurityConfigurationT&& value) { m_securityConfigurationHasBeenSet = true; m_securityConfiguration = std::forward<SecurityConfigurationT>(value); }
211 template<typename SecurityConfigurationT = Aws::String>
212 CreateSessionRequest& WithSecurityConfiguration(SecurityConfigurationT&& value) { SetSecurityConfiguration(std::forward<SecurityConfigurationT>(value)); return *this;}
214
216
220 inline const Aws::String& GetGlueVersion() const { return m_glueVersion; }
221 inline bool GlueVersionHasBeenSet() const { return m_glueVersionHasBeenSet; }
222 template<typename GlueVersionT = Aws::String>
223 void SetGlueVersion(GlueVersionT&& value) { m_glueVersionHasBeenSet = true; m_glueVersion = std::forward<GlueVersionT>(value); }
224 template<typename GlueVersionT = Aws::String>
225 CreateSessionRequest& WithGlueVersion(GlueVersionT&& value) { SetGlueVersion(std::forward<GlueVersionT>(value)); return *this;}
227
229
232 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
233 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
234 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
235 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
236 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
237 CreateSessionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
238 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
239 CreateSessionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
240 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
241 }
243
245
248 inline const Aws::String& GetRequestOrigin() const { return m_requestOrigin; }
249 inline bool RequestOriginHasBeenSet() const { return m_requestOriginHasBeenSet; }
250 template<typename RequestOriginT = Aws::String>
251 void SetRequestOrigin(RequestOriginT&& value) { m_requestOriginHasBeenSet = true; m_requestOrigin = std::forward<RequestOriginT>(value); }
252 template<typename RequestOriginT = Aws::String>
253 CreateSessionRequest& WithRequestOrigin(RequestOriginT&& value) { SetRequestOrigin(std::forward<RequestOriginT>(value)); return *this;}
255 private:
256
257 Aws::String m_id;
258 bool m_idHasBeenSet = false;
259
260 Aws::String m_description;
261 bool m_descriptionHasBeenSet = false;
262
263 Aws::String m_role;
264 bool m_roleHasBeenSet = false;
265
266 SessionCommand m_command;
267 bool m_commandHasBeenSet = false;
268
269 int m_timeout{0};
270 bool m_timeoutHasBeenSet = false;
271
272 int m_idleTimeout{0};
273 bool m_idleTimeoutHasBeenSet = false;
274
275 Aws::Map<Aws::String, Aws::String> m_defaultArguments;
276 bool m_defaultArgumentsHasBeenSet = false;
277
278 ConnectionsList m_connections;
279 bool m_connectionsHasBeenSet = false;
280
281 double m_maxCapacity{0.0};
282 bool m_maxCapacityHasBeenSet = false;
283
284 int m_numberOfWorkers{0};
285 bool m_numberOfWorkersHasBeenSet = false;
286
287 WorkerType m_workerType{WorkerType::NOT_SET};
288 bool m_workerTypeHasBeenSet = false;
289
290 Aws::String m_securityConfiguration;
291 bool m_securityConfigurationHasBeenSet = false;
292
293 Aws::String m_glueVersion;
294 bool m_glueVersionHasBeenSet = false;
295
297 bool m_tagsHasBeenSet = false;
298
299 Aws::String m_requestOrigin;
300 bool m_requestOriginHasBeenSet = false;
301 };
302
303} // namespace Model
304} // namespace Glue
305} // 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