AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
JobExecution.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/model/JobExecutionStatus.h>
10#include <aws/iot/model/JobExecutionStatusDetails.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace IoT
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_IOT_API JobExecution();
42
43
45
48 inline const Aws::String& GetJobId() const{ return m_jobId; }
49 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
50 inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
51 inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
52 inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
53 inline JobExecution& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
54 inline JobExecution& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
55 inline JobExecution& WithJobId(const char* value) { SetJobId(value); return *this;}
57
59
63 inline const JobExecutionStatus& GetStatus() const{ return m_status; }
64 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
65 inline void SetStatus(const JobExecutionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
66 inline void SetStatus(JobExecutionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
67 inline JobExecution& WithStatus(const JobExecutionStatus& value) { SetStatus(value); return *this;}
68 inline JobExecution& WithStatus(JobExecutionStatus&& value) { SetStatus(std::move(value)); return *this;}
70
72
76 inline bool GetForceCanceled() const{ return m_forceCanceled; }
77 inline bool ForceCanceledHasBeenSet() const { return m_forceCanceledHasBeenSet; }
78 inline void SetForceCanceled(bool value) { m_forceCanceledHasBeenSet = true; m_forceCanceled = value; }
79 inline JobExecution& WithForceCanceled(bool value) { SetForceCanceled(value); return *this;}
81
83
87 inline const JobExecutionStatusDetails& GetStatusDetails() const{ return m_statusDetails; }
88 inline bool StatusDetailsHasBeenSet() const { return m_statusDetailsHasBeenSet; }
89 inline void SetStatusDetails(const JobExecutionStatusDetails& value) { m_statusDetailsHasBeenSet = true; m_statusDetails = value; }
90 inline void SetStatusDetails(JobExecutionStatusDetails&& value) { m_statusDetailsHasBeenSet = true; m_statusDetails = std::move(value); }
91 inline JobExecution& WithStatusDetails(const JobExecutionStatusDetails& value) { SetStatusDetails(value); return *this;}
92 inline JobExecution& WithStatusDetails(JobExecutionStatusDetails&& value) { SetStatusDetails(std::move(value)); return *this;}
94
96
99 inline const Aws::String& GetThingArn() const{ return m_thingArn; }
100 inline bool ThingArnHasBeenSet() const { return m_thingArnHasBeenSet; }
101 inline void SetThingArn(const Aws::String& value) { m_thingArnHasBeenSet = true; m_thingArn = value; }
102 inline void SetThingArn(Aws::String&& value) { m_thingArnHasBeenSet = true; m_thingArn = std::move(value); }
103 inline void SetThingArn(const char* value) { m_thingArnHasBeenSet = true; m_thingArn.assign(value); }
104 inline JobExecution& WithThingArn(const Aws::String& value) { SetThingArn(value); return *this;}
105 inline JobExecution& WithThingArn(Aws::String&& value) { SetThingArn(std::move(value)); return *this;}
106 inline JobExecution& WithThingArn(const char* value) { SetThingArn(value); return *this;}
108
110
113 inline const Aws::Utils::DateTime& GetQueuedAt() const{ return m_queuedAt; }
114 inline bool QueuedAtHasBeenSet() const { return m_queuedAtHasBeenSet; }
115 inline void SetQueuedAt(const Aws::Utils::DateTime& value) { m_queuedAtHasBeenSet = true; m_queuedAt = value; }
116 inline void SetQueuedAt(Aws::Utils::DateTime&& value) { m_queuedAtHasBeenSet = true; m_queuedAt = std::move(value); }
117 inline JobExecution& WithQueuedAt(const Aws::Utils::DateTime& value) { SetQueuedAt(value); return *this;}
118 inline JobExecution& WithQueuedAt(Aws::Utils::DateTime&& value) { SetQueuedAt(std::move(value)); return *this;}
120
122
125 inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; }
126 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
127 inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAtHasBeenSet = true; m_startedAt = value; }
128 inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::move(value); }
129 inline JobExecution& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;}
130 inline JobExecution& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;}
132
134
138 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
139 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
140 inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
141 inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); }
142 inline JobExecution& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;}
143 inline JobExecution& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
145
147
152 inline long long GetExecutionNumber() const{ return m_executionNumber; }
153 inline bool ExecutionNumberHasBeenSet() const { return m_executionNumberHasBeenSet; }
154 inline void SetExecutionNumber(long long value) { m_executionNumberHasBeenSet = true; m_executionNumber = value; }
155 inline JobExecution& WithExecutionNumber(long long value) { SetExecutionNumber(value); return *this;}
157
159
163 inline long long GetVersionNumber() const{ return m_versionNumber; }
164 inline bool VersionNumberHasBeenSet() const { return m_versionNumberHasBeenSet; }
165 inline void SetVersionNumber(long long value) { m_versionNumberHasBeenSet = true; m_versionNumber = value; }
166 inline JobExecution& WithVersionNumber(long long value) { SetVersionNumber(value); return *this;}
168
170
177 inline long long GetApproximateSecondsBeforeTimedOut() const{ return m_approximateSecondsBeforeTimedOut; }
178 inline bool ApproximateSecondsBeforeTimedOutHasBeenSet() const { return m_approximateSecondsBeforeTimedOutHasBeenSet; }
179 inline void SetApproximateSecondsBeforeTimedOut(long long value) { m_approximateSecondsBeforeTimedOutHasBeenSet = true; m_approximateSecondsBeforeTimedOut = value; }
182 private:
183
184 Aws::String m_jobId;
185 bool m_jobIdHasBeenSet = false;
186
187 JobExecutionStatus m_status;
188 bool m_statusHasBeenSet = false;
189
190 bool m_forceCanceled;
191 bool m_forceCanceledHasBeenSet = false;
192
193 JobExecutionStatusDetails m_statusDetails;
194 bool m_statusDetailsHasBeenSet = false;
195
196 Aws::String m_thingArn;
197 bool m_thingArnHasBeenSet = false;
198
199 Aws::Utils::DateTime m_queuedAt;
200 bool m_queuedAtHasBeenSet = false;
201
202 Aws::Utils::DateTime m_startedAt;
203 bool m_startedAtHasBeenSet = false;
204
205 Aws::Utils::DateTime m_lastUpdatedAt;
206 bool m_lastUpdatedAtHasBeenSet = false;
207
208 long long m_executionNumber;
209 bool m_executionNumberHasBeenSet = false;
210
211 long long m_versionNumber;
212 bool m_versionNumberHasBeenSet = false;
213
214 long long m_approximateSecondsBeforeTimedOut;
215 bool m_approximateSecondsBeforeTimedOutHasBeenSet = false;
216 };
217
218} // namespace Model
219} // namespace IoT
220} // namespace Aws
JobExecution & WithThingArn(const Aws::String &value)
bool ApproximateSecondsBeforeTimedOutHasBeenSet() const
const Aws::Utils::DateTime & GetLastUpdatedAt() const
void SetStatus(JobExecutionStatus &&value)
void SetVersionNumber(long long value)
void SetQueuedAt(const Aws::Utils::DateTime &value)
long long GetVersionNumber() const
void SetStatus(const JobExecutionStatus &value)
AWS_IOT_API JobExecution & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetThingArn(const char *value)
void SetStatusDetails(JobExecutionStatusDetails &&value)
const Aws::Utils::DateTime & GetQueuedAt() const
void SetStatusDetails(const JobExecutionStatusDetails &value)
JobExecution & WithJobId(const Aws::String &value)
JobExecution & WithThingArn(const char *value)
const Aws::Utils::DateTime & GetStartedAt() const
JobExecution & WithQueuedAt(Aws::Utils::DateTime &&value)
void SetLastUpdatedAt(Aws::Utils::DateTime &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
JobExecution & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
void SetJobId(const char *value)
JobExecution & WithJobId(const char *value)
JobExecution & WithJobId(Aws::String &&value)
const JobExecutionStatusDetails & GetStatusDetails() const
void SetThingArn(Aws::String &&value)
void SetApproximateSecondsBeforeTimedOut(long long value)
const JobExecutionStatus & GetStatus() const
void SetJobId(Aws::String &&value)
JobExecution & WithStatusDetails(JobExecutionStatusDetails &&value)
const Aws::String & GetThingArn() const
void SetExecutionNumber(long long value)
JobExecution & WithStatus(JobExecutionStatus &&value)
void SetThingArn(const Aws::String &value)
long long GetExecutionNumber() const
const Aws::String & GetJobId() const
JobExecution & WithApproximateSecondsBeforeTimedOut(long long value)
void SetForceCanceled(bool value)
JobExecution & WithStatusDetails(const JobExecutionStatusDetails &value)
JobExecution & WithStartedAt(Aws::Utils::DateTime &&value)
JobExecution & WithThingArn(Aws::String &&value)
long long GetApproximateSecondsBeforeTimedOut() const
JobExecution & WithStartedAt(const Aws::Utils::DateTime &value)
AWS_IOT_API JobExecution(Aws::Utils::Json::JsonView jsonValue)
void SetStartedAt(Aws::Utils::DateTime &&value)
JobExecution & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
JobExecution & WithStatus(const JobExecutionStatus &value)
JobExecution & WithExecutionNumber(long long value)
void SetLastUpdatedAt(const Aws::Utils::DateTime &value)
JobExecution & WithVersionNumber(long long value)
void SetJobId(const Aws::String &value)
JobExecution & WithForceCanceled(bool value)
void SetStartedAt(const Aws::Utils::DateTime &value)
void SetQueuedAt(Aws::Utils::DateTime &&value)
JobExecution & WithQueuedAt(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue