AWS SDK for C++  1.9.132
AWS SDK for C++
JobExecution.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace IoT
25 {
26 namespace Model
27 {
28 
36  {
37  public:
42 
43 
47  inline const Aws::String& GetJobId() const{ return m_jobId; }
48 
52  inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
53 
57  inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
58 
62  inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
63 
67  inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
68 
72  inline JobExecution& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
73 
77  inline JobExecution& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
78 
82  inline JobExecution& WithJobId(const char* value) { SetJobId(value); return *this;}
83 
84 
89  inline const JobExecutionStatus& GetStatus() const{ return m_status; }
90 
95  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
96 
101  inline void SetStatus(const JobExecutionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
102 
107  inline void SetStatus(JobExecutionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
108 
113  inline JobExecution& WithStatus(const JobExecutionStatus& value) { SetStatus(value); return *this;}
114 
119  inline JobExecution& WithStatus(JobExecutionStatus&& value) { SetStatus(std::move(value)); return *this;}
120 
121 
126  inline bool GetForceCanceled() const{ return m_forceCanceled; }
127 
132  inline bool ForceCanceledHasBeenSet() const { return m_forceCanceledHasBeenSet; }
133 
138  inline void SetForceCanceled(bool value) { m_forceCanceledHasBeenSet = true; m_forceCanceled = value; }
139 
144  inline JobExecution& WithForceCanceled(bool value) { SetForceCanceled(value); return *this;}
145 
146 
151  inline const JobExecutionStatusDetails& GetStatusDetails() const{ return m_statusDetails; }
152 
157  inline bool StatusDetailsHasBeenSet() const { return m_statusDetailsHasBeenSet; }
158 
163  inline void SetStatusDetails(const JobExecutionStatusDetails& value) { m_statusDetailsHasBeenSet = true; m_statusDetails = value; }
164 
169  inline void SetStatusDetails(JobExecutionStatusDetails&& value) { m_statusDetailsHasBeenSet = true; m_statusDetails = std::move(value); }
170 
175  inline JobExecution& WithStatusDetails(const JobExecutionStatusDetails& value) { SetStatusDetails(value); return *this;}
176 
181  inline JobExecution& WithStatusDetails(JobExecutionStatusDetails&& value) { SetStatusDetails(std::move(value)); return *this;}
182 
183 
187  inline const Aws::String& GetThingArn() const{ return m_thingArn; }
188 
192  inline bool ThingArnHasBeenSet() const { return m_thingArnHasBeenSet; }
193 
197  inline void SetThingArn(const Aws::String& value) { m_thingArnHasBeenSet = true; m_thingArn = value; }
198 
202  inline void SetThingArn(Aws::String&& value) { m_thingArnHasBeenSet = true; m_thingArn = std::move(value); }
203 
207  inline void SetThingArn(const char* value) { m_thingArnHasBeenSet = true; m_thingArn.assign(value); }
208 
212  inline JobExecution& WithThingArn(const Aws::String& value) { SetThingArn(value); return *this;}
213 
217  inline JobExecution& WithThingArn(Aws::String&& value) { SetThingArn(std::move(value)); return *this;}
218 
222  inline JobExecution& WithThingArn(const char* value) { SetThingArn(value); return *this;}
223 
224 
228  inline const Aws::Utils::DateTime& GetQueuedAt() const{ return m_queuedAt; }
229 
233  inline bool QueuedAtHasBeenSet() const { return m_queuedAtHasBeenSet; }
234 
238  inline void SetQueuedAt(const Aws::Utils::DateTime& value) { m_queuedAtHasBeenSet = true; m_queuedAt = value; }
239 
243  inline void SetQueuedAt(Aws::Utils::DateTime&& value) { m_queuedAtHasBeenSet = true; m_queuedAt = std::move(value); }
244 
248  inline JobExecution& WithQueuedAt(const Aws::Utils::DateTime& value) { SetQueuedAt(value); return *this;}
249 
253  inline JobExecution& WithQueuedAt(Aws::Utils::DateTime&& value) { SetQueuedAt(std::move(value)); return *this;}
254 
255 
259  inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; }
260 
264  inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
265 
269  inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAtHasBeenSet = true; m_startedAt = value; }
270 
274  inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::move(value); }
275 
279  inline JobExecution& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;}
280 
284  inline JobExecution& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;}
285 
286 
291  inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
292 
297  inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
298 
303  inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
304 
309  inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); }
310 
315  inline JobExecution& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;}
316 
321  inline JobExecution& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
322 
323 
329  inline long long GetExecutionNumber() const{ return m_executionNumber; }
330 
336  inline bool ExecutionNumberHasBeenSet() const { return m_executionNumberHasBeenSet; }
337 
343  inline void SetExecutionNumber(long long value) { m_executionNumberHasBeenSet = true; m_executionNumber = value; }
344 
350  inline JobExecution& WithExecutionNumber(long long value) { SetExecutionNumber(value); return *this;}
351 
352 
357  inline long long GetVersionNumber() const{ return m_versionNumber; }
358 
363  inline bool VersionNumberHasBeenSet() const { return m_versionNumberHasBeenSet; }
364 
369  inline void SetVersionNumber(long long value) { m_versionNumberHasBeenSet = true; m_versionNumber = value; }
370 
375  inline JobExecution& WithVersionNumber(long long value) { SetVersionNumber(value); return *this;}
376 
377 
385  inline long long GetApproximateSecondsBeforeTimedOut() const{ return m_approximateSecondsBeforeTimedOut; }
386 
394  inline bool ApproximateSecondsBeforeTimedOutHasBeenSet() const { return m_approximateSecondsBeforeTimedOutHasBeenSet; }
395 
403  inline void SetApproximateSecondsBeforeTimedOut(long long value) { m_approximateSecondsBeforeTimedOutHasBeenSet = true; m_approximateSecondsBeforeTimedOut = value; }
404 
412  inline JobExecution& WithApproximateSecondsBeforeTimedOut(long long value) { SetApproximateSecondsBeforeTimedOut(value); return *this;}
413 
414  private:
415 
416  Aws::String m_jobId;
417  bool m_jobIdHasBeenSet;
418 
419  JobExecutionStatus m_status;
420  bool m_statusHasBeenSet;
421 
422  bool m_forceCanceled;
423  bool m_forceCanceledHasBeenSet;
424 
425  JobExecutionStatusDetails m_statusDetails;
426  bool m_statusDetailsHasBeenSet;
427 
428  Aws::String m_thingArn;
429  bool m_thingArnHasBeenSet;
430 
431  Aws::Utils::DateTime m_queuedAt;
432  bool m_queuedAtHasBeenSet;
433 
434  Aws::Utils::DateTime m_startedAt;
435  bool m_startedAtHasBeenSet;
436 
437  Aws::Utils::DateTime m_lastUpdatedAt;
438  bool m_lastUpdatedAtHasBeenSet;
439 
440  long long m_executionNumber;
441  bool m_executionNumberHasBeenSet;
442 
443  long long m_versionNumber;
444  bool m_versionNumberHasBeenSet;
445 
446  long long m_approximateSecondsBeforeTimedOut;
447  bool m_approximateSecondsBeforeTimedOutHasBeenSet;
448  };
449 
450 } // namespace Model
451 } // namespace IoT
452 } // namespace Aws
Aws::IoT::Model::JobExecution::JobExecution
JobExecution()
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::IoT::Model::JobExecution::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: JobExecution.h:95
Aws::IoT::Model::JobExecution::StartedAtHasBeenSet
bool StartedAtHasBeenSet() const
Definition: JobExecution.h:264
Aws::IoT::Model::JobExecution::GetStartedAt
const Aws::Utils::DateTime & GetStartedAt() const
Definition: JobExecution.h:259
Aws::IoT::Model::JobExecution::SetStatusDetails
void SetStatusDetails(JobExecutionStatusDetails &&value)
Definition: JobExecution.h:169
Aws::IoT::Model::JobExecution::WithJobId
JobExecution & WithJobId(const char *value)
Definition: JobExecution.h:82
Aws::IoT::Model::JobExecution::StatusDetailsHasBeenSet
bool StatusDetailsHasBeenSet() const
Definition: JobExecution.h:157
Aws::IoT::Model::JobExecution::WithLastUpdatedAt
JobExecution & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
Definition: JobExecution.h:321
Aws::IoT::Model::JobExecution::SetJobId
void SetJobId(const Aws::String &value)
Definition: JobExecution.h:57
Aws::IoT::Model::JobExecution::WithQueuedAt
JobExecution & WithQueuedAt(Aws::Utils::DateTime &&value)
Definition: JobExecution.h:253
DateTime.h
Aws::IoT::Model::JobExecution::SetStartedAt
void SetStartedAt(const Aws::Utils::DateTime &value)
Definition: JobExecution.h:269
Aws::IoT::Model::JobExecution::SetApproximateSecondsBeforeTimedOut
void SetApproximateSecondsBeforeTimedOut(long long value)
Definition: JobExecution.h:403
Aws::IoT::Model::JobExecution::WithJobId
JobExecution & WithJobId(const Aws::String &value)
Definition: JobExecution.h:72
Aws::IoT::Model::JobExecution::GetQueuedAt
const Aws::Utils::DateTime & GetQueuedAt() const
Definition: JobExecution.h:228
Aws::IoT::Model::JobExecution::WithStartedAt
JobExecution & WithStartedAt(Aws::Utils::DateTime &&value)
Definition: JobExecution.h:284
Aws::IoT::Model::JobExecution::WithLastUpdatedAt
JobExecution & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
Definition: JobExecution.h:315
Aws::IoT::Model::JobExecution::SetStatusDetails
void SetStatusDetails(const JobExecutionStatusDetails &value)
Definition: JobExecution.h:163
Aws::IoT::Model::JobExecution::ExecutionNumberHasBeenSet
bool ExecutionNumberHasBeenSet() const
Definition: JobExecution.h:336
Aws::IoT::Model::JobExecution::ApproximateSecondsBeforeTimedOutHasBeenSet
bool ApproximateSecondsBeforeTimedOutHasBeenSet() const
Definition: JobExecution.h:394
Aws::IoT::Model::JobExecution::GetJobId
const Aws::String & GetJobId() const
Definition: JobExecution.h:47
Aws::IoT::Model::JobExecution::SetVersionNumber
void SetVersionNumber(long long value)
Definition: JobExecution.h:369
Aws::IoT::Model::JobExecution::WithThingArn
JobExecution & WithThingArn(const Aws::String &value)
Definition: JobExecution.h:212
Aws::IoT::Model::JobExecution::SetThingArn
void SetThingArn(const Aws::String &value)
Definition: JobExecution.h:197
Aws::IoT::Model::JobExecution::SetJobId
void SetJobId(const char *value)
Definition: JobExecution.h:67
Aws::IoT::Model::JobExecution::GetExecutionNumber
long long GetExecutionNumber() const
Definition: JobExecution.h:329
Aws::IoT::Model::JobExecution::WithStatus
JobExecution & WithStatus(const JobExecutionStatus &value)
Definition: JobExecution.h:113
Aws::IoT::Model::JobExecution::WithThingArn
JobExecution & WithThingArn(Aws::String &&value)
Definition: JobExecution.h:217
JobExecutionStatus.h
Aws::IoT::Model::JobExecution::SetJobId
void SetJobId(Aws::String &&value)
Definition: JobExecution.h:62
Aws::IoT::Model::JobExecution::operator=
JobExecution & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::JobExecution::WithForceCanceled
JobExecution & WithForceCanceled(bool value)
Definition: JobExecution.h:144
Aws::IoT::Model::JobExecution::SetQueuedAt
void SetQueuedAt(const Aws::Utils::DateTime &value)
Definition: JobExecution.h:238
Aws::IoT::Model::JobExecution::GetForceCanceled
bool GetForceCanceled() const
Definition: JobExecution.h:126
Aws::IoT::Model::JobExecution::GetVersionNumber
long long GetVersionNumber() const
Definition: JobExecution.h:357
Aws::IoT::Model::JobExecution::JobIdHasBeenSet
bool JobIdHasBeenSet() const
Definition: JobExecution.h:52
Aws::IoT::Model::JobExecution::WithStatusDetails
JobExecution & WithStatusDetails(JobExecutionStatusDetails &&value)
Definition: JobExecution.h:181
Aws::IoT::Model::JobExecution::SetStatus
void SetStatus(const JobExecutionStatus &value)
Definition: JobExecution.h:101
Aws::IoT::Model::JobExecution::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::JobExecution::WithApproximateSecondsBeforeTimedOut
JobExecution & WithApproximateSecondsBeforeTimedOut(long long value)
Definition: JobExecution.h:412
Aws::IoT::Model::JobExecution::SetStartedAt
void SetStartedAt(Aws::Utils::DateTime &&value)
Definition: JobExecution.h:274
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::JobExecution::SetThingArn
void SetThingArn(const char *value)
Definition: JobExecution.h:207
Aws::IoT::Model::JobExecution::WithStatus
JobExecution & WithStatus(JobExecutionStatus &&value)
Definition: JobExecution.h:119
Aws::IoT::Model::JobExecution::QueuedAtHasBeenSet
bool QueuedAtHasBeenSet() const
Definition: JobExecution.h:233
Aws::IoT::Model::JobExecution::WithStatusDetails
JobExecution & WithStatusDetails(const JobExecutionStatusDetails &value)
Definition: JobExecution.h:175
Aws::IoT::Model::JobExecution::WithQueuedAt
JobExecution & WithQueuedAt(const Aws::Utils::DateTime &value)
Definition: JobExecution.h:248
Aws::IoT::Model::JobExecution::WithStartedAt
JobExecution & WithStartedAt(const Aws::Utils::DateTime &value)
Definition: JobExecution.h:279
Aws::IoT::Model::JobExecution::SetLastUpdatedAt
void SetLastUpdatedAt(Aws::Utils::DateTime &&value)
Definition: JobExecution.h:309
Aws::IoT::Model::JobExecution::ForceCanceledHasBeenSet
bool ForceCanceledHasBeenSet() const
Definition: JobExecution.h:132
Aws::IoT::Model::JobExecution::WithExecutionNumber
JobExecution & WithExecutionNumber(long long value)
Definition: JobExecution.h:350
Aws::IoT::Model::JobExecution::WithJobId
JobExecution & WithJobId(Aws::String &&value)
Definition: JobExecution.h:77
Aws::IoT::Model::JobExecution::GetThingArn
const Aws::String & GetThingArn() const
Definition: JobExecution.h:187
Aws::IoT::Model::JobExecution::GetStatus
const JobExecutionStatus & GetStatus() const
Definition: JobExecution.h:89
Aws::IoT::Model::JobExecution::GetStatusDetails
const JobExecutionStatusDetails & GetStatusDetails() const
Definition: JobExecution.h:151
Aws::IoT::Model::JobExecution::GetLastUpdatedAt
const Aws::Utils::DateTime & GetLastUpdatedAt() const
Definition: JobExecution.h:291
Aws::IoT::Model::JobExecution::WithThingArn
JobExecution & WithThingArn(const char *value)
Definition: JobExecution.h:222
Aws::IoT::Model::JobExecutionStatus
JobExecutionStatus
Definition: JobExecutionStatus.h:17
Aws::IoT::Model::JobExecution::ThingArnHasBeenSet
bool ThingArnHasBeenSet() const
Definition: JobExecution.h:192
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::JobExecution::JobExecution
JobExecution(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::JobExecution::WithVersionNumber
JobExecution & WithVersionNumber(long long value)
Definition: JobExecution.h:375
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::JobExecution::SetThingArn
void SetThingArn(Aws::String &&value)
Definition: JobExecution.h:202
Aws::IoT::Model::JobExecution::SetForceCanceled
void SetForceCanceled(bool value)
Definition: JobExecution.h:138
JobExecutionStatusDetails.h
Aws::IoT::Model::JobExecution::SetLastUpdatedAt
void SetLastUpdatedAt(const Aws::Utils::DateTime &value)
Definition: JobExecution.h:303
Aws::IoT::Model::JobExecution
Definition: JobExecution.h:36
Aws::IoT::Model::JobExecution::SetExecutionNumber
void SetExecutionNumber(long long value)
Definition: JobExecution.h:343
Aws::IoT::Model::JobExecution::LastUpdatedAtHasBeenSet
bool LastUpdatedAtHasBeenSet() const
Definition: JobExecution.h:297
Aws::IoT::Model::JobExecutionStatusDetails
Definition: JobExecutionStatusDetails.h:33
Aws::IoT::Model::JobExecution::GetApproximateSecondsBeforeTimedOut
long long GetApproximateSecondsBeforeTimedOut() const
Definition: JobExecution.h:385
Aws::IoT::Model::JobExecution::SetStatus
void SetStatus(JobExecutionStatus &&value)
Definition: JobExecution.h:107
Aws::IoT::Model::JobExecution::VersionNumberHasBeenSet
bool VersionNumberHasBeenSet() const
Definition: JobExecution.h:363
Aws::IoT::Model::JobExecution::SetQueuedAt
void SetQueuedAt(Aws::Utils::DateTime &&value)
Definition: JobExecution.h:243
IoT_EXPORTS.h