AWS SDK for C++

AWS SDK for C++ Version 1.11.764

Loading...
Searching...
No Matches
JobExecution.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/IoT_EXPORTS.h>
10#include <aws/iot/model/JobExecutionStatus.h>
11#include <aws/iot/model/JobExecutionStatusDetails.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoT {
23namespace Model {
24
32 public:
33 AWS_IOT_API JobExecution() = default;
37
39
42 inline const Aws::String& GetJobId() const { return m_jobId; }
43 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
44 template <typename JobIdT = Aws::String>
45 void SetJobId(JobIdT&& value) {
46 m_jobIdHasBeenSet = true;
47 m_jobId = std::forward<JobIdT>(value);
48 }
49 template <typename JobIdT = Aws::String>
50 JobExecution& WithJobId(JobIdT&& value) {
51 SetJobId(std::forward<JobIdT>(value));
52 return *this;
53 }
55
57
61 inline JobExecutionStatus GetStatus() const { return m_status; }
62 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
63 inline void SetStatus(JobExecutionStatus value) {
64 m_statusHasBeenSet = true;
65 m_status = value;
66 }
68 SetStatus(value);
69 return *this;
70 }
72
74
78 inline bool GetForceCanceled() const { return m_forceCanceled; }
79 inline bool ForceCanceledHasBeenSet() const { return m_forceCanceledHasBeenSet; }
80 inline void SetForceCanceled(bool value) {
81 m_forceCanceledHasBeenSet = true;
82 m_forceCanceled = value;
83 }
84 inline JobExecution& WithForceCanceled(bool value) {
85 SetForceCanceled(value);
86 return *this;
87 }
89
91
95 inline const JobExecutionStatusDetails& GetStatusDetails() const { return m_statusDetails; }
96 inline bool StatusDetailsHasBeenSet() const { return m_statusDetailsHasBeenSet; }
97 template <typename StatusDetailsT = JobExecutionStatusDetails>
98 void SetStatusDetails(StatusDetailsT&& value) {
99 m_statusDetailsHasBeenSet = true;
100 m_statusDetails = std::forward<StatusDetailsT>(value);
101 }
102 template <typename StatusDetailsT = JobExecutionStatusDetails>
103 JobExecution& WithStatusDetails(StatusDetailsT&& value) {
104 SetStatusDetails(std::forward<StatusDetailsT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetThingArn() const { return m_thingArn; }
114 inline bool ThingArnHasBeenSet() const { return m_thingArnHasBeenSet; }
115 template <typename ThingArnT = Aws::String>
116 void SetThingArn(ThingArnT&& value) {
117 m_thingArnHasBeenSet = true;
118 m_thingArn = std::forward<ThingArnT>(value);
119 }
120 template <typename ThingArnT = Aws::String>
121 JobExecution& WithThingArn(ThingArnT&& value) {
122 SetThingArn(std::forward<ThingArnT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::Utils::DateTime& GetQueuedAt() const { return m_queuedAt; }
132 inline bool QueuedAtHasBeenSet() const { return m_queuedAtHasBeenSet; }
133 template <typename QueuedAtT = Aws::Utils::DateTime>
134 void SetQueuedAt(QueuedAtT&& value) {
135 m_queuedAtHasBeenSet = true;
136 m_queuedAt = std::forward<QueuedAtT>(value);
137 }
138 template <typename QueuedAtT = Aws::Utils::DateTime>
139 JobExecution& WithQueuedAt(QueuedAtT&& value) {
140 SetQueuedAt(std::forward<QueuedAtT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
150 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
151 template <typename StartedAtT = Aws::Utils::DateTime>
152 void SetStartedAt(StartedAtT&& value) {
153 m_startedAtHasBeenSet = true;
154 m_startedAt = std::forward<StartedAtT>(value);
155 }
156 template <typename StartedAtT = Aws::Utils::DateTime>
157 JobExecution& WithStartedAt(StartedAtT&& value) {
158 SetStartedAt(std::forward<StartedAtT>(value));
159 return *this;
160 }
162
164
168 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
169 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
170 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
171 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
172 m_lastUpdatedAtHasBeenSet = true;
173 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
174 }
175 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
176 JobExecution& WithLastUpdatedAt(LastUpdatedAtT&& value) {
177 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
178 return *this;
179 }
181
183
188 inline long long GetExecutionNumber() const { return m_executionNumber; }
189 inline bool ExecutionNumberHasBeenSet() const { return m_executionNumberHasBeenSet; }
190 inline void SetExecutionNumber(long long value) {
191 m_executionNumberHasBeenSet = true;
192 m_executionNumber = value;
193 }
194 inline JobExecution& WithExecutionNumber(long long value) {
195 SetExecutionNumber(value);
196 return *this;
197 }
199
201
205 inline long long GetVersionNumber() const { return m_versionNumber; }
206 inline bool VersionNumberHasBeenSet() const { return m_versionNumberHasBeenSet; }
207 inline void SetVersionNumber(long long value) {
208 m_versionNumberHasBeenSet = true;
209 m_versionNumber = value;
210 }
211 inline JobExecution& WithVersionNumber(long long value) {
212 SetVersionNumber(value);
213 return *this;
214 }
216
218
225 inline long long GetApproximateSecondsBeforeTimedOut() const { return m_approximateSecondsBeforeTimedOut; }
226 inline bool ApproximateSecondsBeforeTimedOutHasBeenSet() const { return m_approximateSecondsBeforeTimedOutHasBeenSet; }
227 inline void SetApproximateSecondsBeforeTimedOut(long long value) {
228 m_approximateSecondsBeforeTimedOutHasBeenSet = true;
229 m_approximateSecondsBeforeTimedOut = value;
230 }
233 return *this;
234 }
236 private:
237 Aws::String m_jobId;
238
240
241 bool m_forceCanceled{false};
242
243 JobExecutionStatusDetails m_statusDetails;
244
245 Aws::String m_thingArn;
246
247 Aws::Utils::DateTime m_queuedAt{};
248
249 Aws::Utils::DateTime m_startedAt{};
250
251 Aws::Utils::DateTime m_lastUpdatedAt{};
252
253 long long m_executionNumber{0};
254
255 long long m_versionNumber{0};
256
257 long long m_approximateSecondsBeforeTimedOut{0};
258 bool m_jobIdHasBeenSet = false;
259 bool m_statusHasBeenSet = false;
260 bool m_forceCanceledHasBeenSet = false;
261 bool m_statusDetailsHasBeenSet = false;
262 bool m_thingArnHasBeenSet = false;
263 bool m_queuedAtHasBeenSet = false;
264 bool m_startedAtHasBeenSet = false;
265 bool m_lastUpdatedAtHasBeenSet = false;
266 bool m_executionNumberHasBeenSet = false;
267 bool m_versionNumberHasBeenSet = false;
268 bool m_approximateSecondsBeforeTimedOutHasBeenSet = false;
269};
270
271} // namespace Model
272} // namespace IoT
273} // namespace Aws
JobExecutionStatus GetStatus() const
bool ApproximateSecondsBeforeTimedOutHasBeenSet() const
void SetThingArn(ThingArnT &&value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
void SetVersionNumber(long long value)
long long GetVersionNumber() const
AWS_IOT_API JobExecution & operator=(Aws::Utils::Json::JsonView jsonValue)
JobExecution & WithQueuedAt(QueuedAtT &&value)
void SetStartedAt(StartedAtT &&value)
JobExecution & WithThingArn(ThingArnT &&value)
const Aws::Utils::DateTime & GetQueuedAt() const
AWS_IOT_API JobExecution()=default
const Aws::Utils::DateTime & GetStartedAt() const
void SetJobId(JobIdT &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(JobExecutionStatus value)
const JobExecutionStatusDetails & GetStatusDetails() const
void SetQueuedAt(QueuedAtT &&value)
void SetApproximateSecondsBeforeTimedOut(long long value)
const Aws::String & GetThingArn() const
void SetExecutionNumber(long long value)
JobExecution & WithJobId(JobIdT &&value)
JobExecution & WithStatusDetails(StatusDetailsT &&value)
long long GetExecutionNumber() const
const Aws::String & GetJobId() const
JobExecution & WithApproximateSecondsBeforeTimedOut(long long value)
void SetStatusDetails(StatusDetailsT &&value)
void SetForceCanceled(bool value)
long long GetApproximateSecondsBeforeTimedOut() const
AWS_IOT_API JobExecution(Aws::Utils::Json::JsonView jsonValue)
JobExecution & WithExecutionNumber(long long value)
JobExecution & WithStartedAt(StartedAtT &&value)
JobExecution & WithVersionNumber(long long value)
JobExecution & WithForceCanceled(bool value)
JobExecution & WithLastUpdatedAt(LastUpdatedAtT &&value)
JobExecution & WithStatus(JobExecutionStatus value)
void SetLastUpdatedAt(LastUpdatedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue