AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
42
43
45
48 inline const Aws::String& GetJobId() const { return m_jobId; }
49 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
50 template<typename JobIdT = Aws::String>
51 void SetJobId(JobIdT&& value) { m_jobIdHasBeenSet = true; m_jobId = std::forward<JobIdT>(value); }
52 template<typename JobIdT = Aws::String>
53 JobExecution& WithJobId(JobIdT&& value) { SetJobId(std::forward<JobIdT>(value)); return *this;}
55
57
61 inline JobExecutionStatus GetStatus() const { return m_status; }
62 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
63 inline void SetStatus(JobExecutionStatus value) { m_statusHasBeenSet = true; m_status = value; }
64 inline JobExecution& WithStatus(JobExecutionStatus value) { SetStatus(value); return *this;}
66
68
72 inline bool GetForceCanceled() const { return m_forceCanceled; }
73 inline bool ForceCanceledHasBeenSet() const { return m_forceCanceledHasBeenSet; }
74 inline void SetForceCanceled(bool value) { m_forceCanceledHasBeenSet = true; m_forceCanceled = value; }
75 inline JobExecution& WithForceCanceled(bool value) { SetForceCanceled(value); return *this;}
77
79
83 inline const JobExecutionStatusDetails& GetStatusDetails() const { return m_statusDetails; }
84 inline bool StatusDetailsHasBeenSet() const { return m_statusDetailsHasBeenSet; }
85 template<typename StatusDetailsT = JobExecutionStatusDetails>
86 void SetStatusDetails(StatusDetailsT&& value) { m_statusDetailsHasBeenSet = true; m_statusDetails = std::forward<StatusDetailsT>(value); }
87 template<typename StatusDetailsT = JobExecutionStatusDetails>
88 JobExecution& WithStatusDetails(StatusDetailsT&& value) { SetStatusDetails(std::forward<StatusDetailsT>(value)); return *this;}
90
92
95 inline const Aws::String& GetThingArn() const { return m_thingArn; }
96 inline bool ThingArnHasBeenSet() const { return m_thingArnHasBeenSet; }
97 template<typename ThingArnT = Aws::String>
98 void SetThingArn(ThingArnT&& value) { m_thingArnHasBeenSet = true; m_thingArn = std::forward<ThingArnT>(value); }
99 template<typename ThingArnT = Aws::String>
100 JobExecution& WithThingArn(ThingArnT&& value) { SetThingArn(std::forward<ThingArnT>(value)); return *this;}
102
104
107 inline const Aws::Utils::DateTime& GetQueuedAt() const { return m_queuedAt; }
108 inline bool QueuedAtHasBeenSet() const { return m_queuedAtHasBeenSet; }
109 template<typename QueuedAtT = Aws::Utils::DateTime>
110 void SetQueuedAt(QueuedAtT&& value) { m_queuedAtHasBeenSet = true; m_queuedAt = std::forward<QueuedAtT>(value); }
111 template<typename QueuedAtT = Aws::Utils::DateTime>
112 JobExecution& WithQueuedAt(QueuedAtT&& value) { SetQueuedAt(std::forward<QueuedAtT>(value)); return *this;}
114
116
119 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
120 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
121 template<typename StartedAtT = Aws::Utils::DateTime>
122 void SetStartedAt(StartedAtT&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::forward<StartedAtT>(value); }
123 template<typename StartedAtT = Aws::Utils::DateTime>
124 JobExecution& WithStartedAt(StartedAtT&& value) { SetStartedAt(std::forward<StartedAtT>(value)); return *this;}
126
128
132 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
133 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
134 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
135 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
136 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
137 JobExecution& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
139
141
146 inline long long GetExecutionNumber() const { return m_executionNumber; }
147 inline bool ExecutionNumberHasBeenSet() const { return m_executionNumberHasBeenSet; }
148 inline void SetExecutionNumber(long long value) { m_executionNumberHasBeenSet = true; m_executionNumber = value; }
149 inline JobExecution& WithExecutionNumber(long long value) { SetExecutionNumber(value); return *this;}
151
153
157 inline long long GetVersionNumber() const { return m_versionNumber; }
158 inline bool VersionNumberHasBeenSet() const { return m_versionNumberHasBeenSet; }
159 inline void SetVersionNumber(long long value) { m_versionNumberHasBeenSet = true; m_versionNumber = value; }
160 inline JobExecution& WithVersionNumber(long long value) { SetVersionNumber(value); return *this;}
162
164
171 inline long long GetApproximateSecondsBeforeTimedOut() const { return m_approximateSecondsBeforeTimedOut; }
172 inline bool ApproximateSecondsBeforeTimedOutHasBeenSet() const { return m_approximateSecondsBeforeTimedOutHasBeenSet; }
173 inline void SetApproximateSecondsBeforeTimedOut(long long value) { m_approximateSecondsBeforeTimedOutHasBeenSet = true; m_approximateSecondsBeforeTimedOut = value; }
176 private:
177
178 Aws::String m_jobId;
179 bool m_jobIdHasBeenSet = false;
180
182 bool m_statusHasBeenSet = false;
183
184 bool m_forceCanceled{false};
185 bool m_forceCanceledHasBeenSet = false;
186
187 JobExecutionStatusDetails m_statusDetails;
188 bool m_statusDetailsHasBeenSet = false;
189
190 Aws::String m_thingArn;
191 bool m_thingArnHasBeenSet = false;
192
193 Aws::Utils::DateTime m_queuedAt{};
194 bool m_queuedAtHasBeenSet = false;
195
196 Aws::Utils::DateTime m_startedAt{};
197 bool m_startedAtHasBeenSet = false;
198
199 Aws::Utils::DateTime m_lastUpdatedAt{};
200 bool m_lastUpdatedAtHasBeenSet = false;
201
202 long long m_executionNumber{0};
203 bool m_executionNumberHasBeenSet = false;
204
205 long long m_versionNumber{0};
206 bool m_versionNumberHasBeenSet = false;
207
208 long long m_approximateSecondsBeforeTimedOut{0};
209 bool m_approximateSecondsBeforeTimedOutHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace IoT
214} // 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