AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Session.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/glue/model/SessionStatus.h>
11#include <aws/glue/model/SessionCommand.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/glue/model/ConnectionsList.h>
14#include <aws/glue/model/WorkerType.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Glue
28{
29namespace Model
30{
31
38 class Session
39 {
40 public:
41 AWS_GLUE_API Session() = default;
42 AWS_GLUE_API Session(Aws::Utils::Json::JsonView jsonValue);
45
46
48
51 inline const Aws::String& GetId() const { return m_id; }
52 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
53 template<typename IdT = Aws::String>
54 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
55 template<typename IdT = Aws::String>
56 Session& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
58
60
63 inline const Aws::Utils::DateTime& GetCreatedOn() const { return m_createdOn; }
64 inline bool CreatedOnHasBeenSet() const { return m_createdOnHasBeenSet; }
65 template<typename CreatedOnT = Aws::Utils::DateTime>
66 void SetCreatedOn(CreatedOnT&& value) { m_createdOnHasBeenSet = true; m_createdOn = std::forward<CreatedOnT>(value); }
67 template<typename CreatedOnT = Aws::Utils::DateTime>
68 Session& WithCreatedOn(CreatedOnT&& value) { SetCreatedOn(std::forward<CreatedOnT>(value)); return *this;}
70
72
75 inline SessionStatus GetStatus() const { return m_status; }
76 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
77 inline void SetStatus(SessionStatus value) { m_statusHasBeenSet = true; m_status = value; }
78 inline Session& WithStatus(SessionStatus value) { SetStatus(value); return *this;}
80
82
85 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
86 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
87 template<typename ErrorMessageT = Aws::String>
88 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
89 template<typename ErrorMessageT = Aws::String>
90 Session& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
92
94
97 inline const Aws::String& GetDescription() const { return m_description; }
98 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
99 template<typename DescriptionT = Aws::String>
100 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
101 template<typename DescriptionT = Aws::String>
102 Session& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
104
106
110 inline const Aws::String& GetRole() const { return m_role; }
111 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
112 template<typename RoleT = Aws::String>
113 void SetRole(RoleT&& value) { m_roleHasBeenSet = true; m_role = std::forward<RoleT>(value); }
114 template<typename RoleT = Aws::String>
115 Session& WithRole(RoleT&& value) { SetRole(std::forward<RoleT>(value)); return *this;}
117
119
122 inline const SessionCommand& GetCommand() const { return m_command; }
123 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
124 template<typename CommandT = SessionCommand>
125 void SetCommand(CommandT&& value) { m_commandHasBeenSet = true; m_command = std::forward<CommandT>(value); }
126 template<typename CommandT = SessionCommand>
127 Session& WithCommand(CommandT&& value) { SetCommand(std::forward<CommandT>(value)); return *this;}
129
131
134 inline const Aws::Map<Aws::String, Aws::String>& GetDefaultArguments() const { return m_defaultArguments; }
135 inline bool DefaultArgumentsHasBeenSet() const { return m_defaultArgumentsHasBeenSet; }
136 template<typename DefaultArgumentsT = Aws::Map<Aws::String, Aws::String>>
137 void SetDefaultArguments(DefaultArgumentsT&& value) { m_defaultArgumentsHasBeenSet = true; m_defaultArguments = std::forward<DefaultArgumentsT>(value); }
138 template<typename DefaultArgumentsT = Aws::Map<Aws::String, Aws::String>>
139 Session& WithDefaultArguments(DefaultArgumentsT&& value) { SetDefaultArguments(std::forward<DefaultArgumentsT>(value)); return *this;}
140 template<typename DefaultArgumentsKeyT = Aws::String, typename DefaultArgumentsValueT = Aws::String>
141 Session& AddDefaultArguments(DefaultArgumentsKeyT&& key, DefaultArgumentsValueT&& value) {
142 m_defaultArgumentsHasBeenSet = true; m_defaultArguments.emplace(std::forward<DefaultArgumentsKeyT>(key), std::forward<DefaultArgumentsValueT>(value)); return *this;
143 }
145
147
150 inline const ConnectionsList& GetConnections() const { return m_connections; }
151 inline bool ConnectionsHasBeenSet() const { return m_connectionsHasBeenSet; }
152 template<typename ConnectionsT = ConnectionsList>
153 void SetConnections(ConnectionsT&& value) { m_connectionsHasBeenSet = true; m_connections = std::forward<ConnectionsT>(value); }
154 template<typename ConnectionsT = ConnectionsList>
155 Session& WithConnections(ConnectionsT&& value) { SetConnections(std::forward<ConnectionsT>(value)); return *this;}
157
159
162 inline double GetProgress() const { return m_progress; }
163 inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
164 inline void SetProgress(double value) { m_progressHasBeenSet = true; m_progress = value; }
165 inline Session& WithProgress(double value) { SetProgress(value); return *this;}
167
169
174 inline double GetMaxCapacity() const { return m_maxCapacity; }
175 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
176 inline void SetMaxCapacity(double value) { m_maxCapacityHasBeenSet = true; m_maxCapacity = value; }
177 inline Session& WithMaxCapacity(double value) { SetMaxCapacity(value); return *this;}
179
181
185 inline const Aws::String& GetSecurityConfiguration() const { return m_securityConfiguration; }
186 inline bool SecurityConfigurationHasBeenSet() const { return m_securityConfigurationHasBeenSet; }
187 template<typename SecurityConfigurationT = Aws::String>
188 void SetSecurityConfiguration(SecurityConfigurationT&& value) { m_securityConfigurationHasBeenSet = true; m_securityConfiguration = std::forward<SecurityConfigurationT>(value); }
189 template<typename SecurityConfigurationT = Aws::String>
190 Session& WithSecurityConfiguration(SecurityConfigurationT&& value) { SetSecurityConfiguration(std::forward<SecurityConfigurationT>(value)); return *this;}
192
194
198 inline const Aws::String& GetGlueVersion() const { return m_glueVersion; }
199 inline bool GlueVersionHasBeenSet() const { return m_glueVersionHasBeenSet; }
200 template<typename GlueVersionT = Aws::String>
201 void SetGlueVersion(GlueVersionT&& value) { m_glueVersionHasBeenSet = true; m_glueVersion = std::forward<GlueVersionT>(value); }
202 template<typename GlueVersionT = Aws::String>
203 Session& WithGlueVersion(GlueVersionT&& value) { SetGlueVersion(std::forward<GlueVersionT>(value)); return *this;}
205
207
211 inline int GetNumberOfWorkers() const { return m_numberOfWorkers; }
212 inline bool NumberOfWorkersHasBeenSet() const { return m_numberOfWorkersHasBeenSet; }
213 inline void SetNumberOfWorkers(int value) { m_numberOfWorkersHasBeenSet = true; m_numberOfWorkers = value; }
214 inline Session& WithNumberOfWorkers(int value) { SetNumberOfWorkers(value); return *this;}
216
218
224 inline WorkerType GetWorkerType() const { return m_workerType; }
225 inline bool WorkerTypeHasBeenSet() const { return m_workerTypeHasBeenSet; }
226 inline void SetWorkerType(WorkerType value) { m_workerTypeHasBeenSet = true; m_workerType = value; }
227 inline Session& WithWorkerType(WorkerType value) { SetWorkerType(value); return *this;}
229
231
234 inline const Aws::Utils::DateTime& GetCompletedOn() const { return m_completedOn; }
235 inline bool CompletedOnHasBeenSet() const { return m_completedOnHasBeenSet; }
236 template<typename CompletedOnT = Aws::Utils::DateTime>
237 void SetCompletedOn(CompletedOnT&& value) { m_completedOnHasBeenSet = true; m_completedOn = std::forward<CompletedOnT>(value); }
238 template<typename CompletedOnT = Aws::Utils::DateTime>
239 Session& WithCompletedOn(CompletedOnT&& value) { SetCompletedOn(std::forward<CompletedOnT>(value)); return *this;}
241
243
246 inline double GetExecutionTime() const { return m_executionTime; }
247 inline bool ExecutionTimeHasBeenSet() const { return m_executionTimeHasBeenSet; }
248 inline void SetExecutionTime(double value) { m_executionTimeHasBeenSet = true; m_executionTime = value; }
249 inline Session& WithExecutionTime(double value) { SetExecutionTime(value); return *this;}
251
253
256 inline double GetDPUSeconds() const { return m_dPUSeconds; }
257 inline bool DPUSecondsHasBeenSet() const { return m_dPUSecondsHasBeenSet; }
258 inline void SetDPUSeconds(double value) { m_dPUSecondsHasBeenSet = true; m_dPUSeconds = value; }
259 inline Session& WithDPUSeconds(double value) { SetDPUSeconds(value); return *this;}
261
263
266 inline int GetIdleTimeout() const { return m_idleTimeout; }
267 inline bool IdleTimeoutHasBeenSet() const { return m_idleTimeoutHasBeenSet; }
268 inline void SetIdleTimeout(int value) { m_idleTimeoutHasBeenSet = true; m_idleTimeout = value; }
269 inline Session& WithIdleTimeout(int value) { SetIdleTimeout(value); return *this;}
271
273
276 inline const Aws::String& GetProfileName() const { return m_profileName; }
277 inline bool ProfileNameHasBeenSet() const { return m_profileNameHasBeenSet; }
278 template<typename ProfileNameT = Aws::String>
279 void SetProfileName(ProfileNameT&& value) { m_profileNameHasBeenSet = true; m_profileName = std::forward<ProfileNameT>(value); }
280 template<typename ProfileNameT = Aws::String>
281 Session& WithProfileName(ProfileNameT&& value) { SetProfileName(std::forward<ProfileNameT>(value)); return *this;}
283 private:
284
285 Aws::String m_id;
286 bool m_idHasBeenSet = false;
287
288 Aws::Utils::DateTime m_createdOn{};
289 bool m_createdOnHasBeenSet = false;
290
292 bool m_statusHasBeenSet = false;
293
294 Aws::String m_errorMessage;
295 bool m_errorMessageHasBeenSet = false;
296
297 Aws::String m_description;
298 bool m_descriptionHasBeenSet = false;
299
300 Aws::String m_role;
301 bool m_roleHasBeenSet = false;
302
303 SessionCommand m_command;
304 bool m_commandHasBeenSet = false;
305
306 Aws::Map<Aws::String, Aws::String> m_defaultArguments;
307 bool m_defaultArgumentsHasBeenSet = false;
308
309 ConnectionsList m_connections;
310 bool m_connectionsHasBeenSet = false;
311
312 double m_progress{0.0};
313 bool m_progressHasBeenSet = false;
314
315 double m_maxCapacity{0.0};
316 bool m_maxCapacityHasBeenSet = false;
317
318 Aws::String m_securityConfiguration;
319 bool m_securityConfigurationHasBeenSet = false;
320
321 Aws::String m_glueVersion;
322 bool m_glueVersionHasBeenSet = false;
323
324 int m_numberOfWorkers{0};
325 bool m_numberOfWorkersHasBeenSet = false;
326
327 WorkerType m_workerType{WorkerType::NOT_SET};
328 bool m_workerTypeHasBeenSet = false;
329
330 Aws::Utils::DateTime m_completedOn{};
331 bool m_completedOnHasBeenSet = false;
332
333 double m_executionTime{0.0};
334 bool m_executionTimeHasBeenSet = false;
335
336 double m_dPUSeconds{0.0};
337 bool m_dPUSecondsHasBeenSet = false;
338
339 int m_idleTimeout{0};
340 bool m_idleTimeoutHasBeenSet = false;
341
342 Aws::String m_profileName;
343 bool m_profileNameHasBeenSet = false;
344 };
345
346} // namespace Model
347} // namespace Glue
348} // namespace Aws
bool ProfileNameHasBeenSet() const
Definition Session.h:277
AWS_GLUE_API Session()=default
bool DefaultArgumentsHasBeenSet() const
Definition Session.h:135
void SetIdleTimeout(int value)
Definition Session.h:268
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
WorkerType GetWorkerType() const
Definition Session.h:224
const Aws::String & GetSecurityConfiguration() const
Definition Session.h:185
bool ConnectionsHasBeenSet() const
Definition Session.h:151
bool NumberOfWorkersHasBeenSet() const
Definition Session.h:212
void SetDefaultArguments(DefaultArgumentsT &&value)
Definition Session.h:137
bool ErrorMessageHasBeenSet() const
Definition Session.h:86
bool CommandHasBeenSet() const
Definition Session.h:123
void SetStatus(SessionStatus value)
Definition Session.h:77
bool CompletedOnHasBeenSet() const
Definition Session.h:235
int GetIdleTimeout() const
Definition Session.h:266
Session & WithWorkerType(WorkerType value)
Definition Session.h:227
double GetExecutionTime() const
Definition Session.h:246
void SetCommand(CommandT &&value)
Definition Session.h:125
Session & AddDefaultArguments(DefaultArgumentsKeyT &&key, DefaultArgumentsValueT &&value)
Definition Session.h:141
void SetConnections(ConnectionsT &&value)
Definition Session.h:153
Session & WithIdleTimeout(int value)
Definition Session.h:269
const Aws::String & GetId() const
Definition Session.h:51
Session & WithCreatedOn(CreatedOnT &&value)
Definition Session.h:68
void SetCreatedOn(CreatedOnT &&value)
Definition Session.h:66
void SetExecutionTime(double value)
Definition Session.h:248
const Aws::String & GetProfileName() const
Definition Session.h:276
void SetMaxCapacity(double value)
Definition Session.h:176
double GetMaxCapacity() const
Definition Session.h:174
Session & WithDefaultArguments(DefaultArgumentsT &&value)
Definition Session.h:139
bool RoleHasBeenSet() const
Definition Session.h:111
const ConnectionsList & GetConnections() const
Definition Session.h:150
void SetSecurityConfiguration(SecurityConfigurationT &&value)
Definition Session.h:188
const Aws::String & GetDescription() const
Definition Session.h:97
bool StatusHasBeenSet() const
Definition Session.h:76
Session & WithGlueVersion(GlueVersionT &&value)
Definition Session.h:203
void SetDPUSeconds(double value)
Definition Session.h:258
void SetErrorMessage(ErrorMessageT &&value)
Definition Session.h:88
const Aws::String & GetRole() const
Definition Session.h:110
const Aws::Utils::DateTime & GetCompletedOn() const
Definition Session.h:234
bool DPUSecondsHasBeenSet() const
Definition Session.h:257
void SetProgress(double value)
Definition Session.h:164
Session & WithConnections(ConnectionsT &&value)
Definition Session.h:155
void SetRole(RoleT &&value)
Definition Session.h:113
double GetProgress() const
Definition Session.h:162
Session & WithNumberOfWorkers(int value)
Definition Session.h:214
Session & WithDPUSeconds(double value)
Definition Session.h:259
Session & WithStatus(SessionStatus value)
Definition Session.h:78
const SessionCommand & GetCommand() const
Definition Session.h:122
Session & WithProfileName(ProfileNameT &&value)
Definition Session.h:281
double GetDPUSeconds() const
Definition Session.h:256
void SetGlueVersion(GlueVersionT &&value)
Definition Session.h:201
bool DescriptionHasBeenSet() const
Definition Session.h:98
int GetNumberOfWorkers() const
Definition Session.h:211
void SetWorkerType(WorkerType value)
Definition Session.h:226
const Aws::String & GetErrorMessage() const
Definition Session.h:85
bool ExecutionTimeHasBeenSet() const
Definition Session.h:247
bool MaxCapacityHasBeenSet() const
Definition Session.h:175
bool CreatedOnHasBeenSet() const
Definition Session.h:64
Session & WithExecutionTime(double value)
Definition Session.h:249
void SetProfileName(ProfileNameT &&value)
Definition Session.h:279
Session & WithMaxCapacity(double value)
Definition Session.h:177
bool ProgressHasBeenSet() const
Definition Session.h:163
bool SecurityConfigurationHasBeenSet() const
Definition Session.h:186
SessionStatus GetStatus() const
Definition Session.h:75
void SetNumberOfWorkers(int value)
Definition Session.h:213
Session & WithDescription(DescriptionT &&value)
Definition Session.h:102
Session & WithCommand(CommandT &&value)
Definition Session.h:127
Session & WithProgress(double value)
Definition Session.h:165
const Aws::Utils::DateTime & GetCreatedOn() const
Definition Session.h:63
const Aws::Map< Aws::String, Aws::String > & GetDefaultArguments() const
Definition Session.h:134
bool WorkerTypeHasBeenSet() const
Definition Session.h:225
void SetId(IdT &&value)
Definition Session.h:54
Session & WithId(IdT &&value)
Definition Session.h:56
void SetCompletedOn(CompletedOnT &&value)
Definition Session.h:237
Session & WithSecurityConfiguration(SecurityConfigurationT &&value)
Definition Session.h:190
Session & WithCompletedOn(CompletedOnT &&value)
Definition Session.h:239
bool IdleTimeoutHasBeenSet() const
Definition Session.h:267
const Aws::String & GetGlueVersion() const
Definition Session.h:198
void SetDescription(DescriptionT &&value)
Definition Session.h:100
bool IdHasBeenSet() const
Definition Session.h:52
AWS_GLUE_API Session(Aws::Utils::Json::JsonView jsonValue)
Session & WithErrorMessage(ErrorMessageT &&value)
Definition Session.h:90
AWS_GLUE_API Session & operator=(Aws::Utils::Json::JsonView jsonValue)
bool GlueVersionHasBeenSet() const
Definition Session.h:199
Session & WithRole(RoleT &&value)
Definition Session.h:115
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
Aws::Utils::Json::JsonValue JsonValue