AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
JobSummary.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/JobStatus.h>
11#include <aws/iot/model/TargetSelection.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
31 public:
32 AWS_IOT_API JobSummary() = default;
33 AWS_IOT_API JobSummary(Aws::Utils::Json::JsonView jsonValue);
36
38
41 inline const Aws::String& GetJobArn() const { return m_jobArn; }
42 inline bool JobArnHasBeenSet() const { return m_jobArnHasBeenSet; }
43 template <typename JobArnT = Aws::String>
44 void SetJobArn(JobArnT&& value) {
45 m_jobArnHasBeenSet = true;
46 m_jobArn = std::forward<JobArnT>(value);
47 }
48 template <typename JobArnT = Aws::String>
49 JobSummary& WithJobArn(JobArnT&& value) {
50 SetJobArn(std::forward<JobArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetJobId() const { return m_jobId; }
60 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
61 template <typename JobIdT = Aws::String>
62 void SetJobId(JobIdT&& value) {
63 m_jobIdHasBeenSet = true;
64 m_jobId = std::forward<JobIdT>(value);
65 }
66 template <typename JobIdT = Aws::String>
67 JobSummary& WithJobId(JobIdT&& value) {
68 SetJobId(std::forward<JobIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetThingGroupId() const { return m_thingGroupId; }
78 inline bool ThingGroupIdHasBeenSet() const { return m_thingGroupIdHasBeenSet; }
79 template <typename ThingGroupIdT = Aws::String>
80 void SetThingGroupId(ThingGroupIdT&& value) {
81 m_thingGroupIdHasBeenSet = true;
82 m_thingGroupId = std::forward<ThingGroupIdT>(value);
83 }
84 template <typename ThingGroupIdT = Aws::String>
85 JobSummary& WithThingGroupId(ThingGroupIdT&& value) {
86 SetThingGroupId(std::forward<ThingGroupIdT>(value));
87 return *this;
88 }
90
92
103 inline TargetSelection GetTargetSelection() const { return m_targetSelection; }
104 inline bool TargetSelectionHasBeenSet() const { return m_targetSelectionHasBeenSet; }
106 m_targetSelectionHasBeenSet = true;
107 m_targetSelection = value;
108 }
110 SetTargetSelection(value);
111 return *this;
112 }
114
116
119 inline JobStatus GetStatus() const { return m_status; }
120 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
121 inline void SetStatus(JobStatus value) {
122 m_statusHasBeenSet = true;
123 m_status = value;
124 }
126 SetStatus(value);
127 return *this;
128 }
130
132
135 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
136 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
137 template <typename CreatedAtT = Aws::Utils::DateTime>
138 void SetCreatedAt(CreatedAtT&& value) {
139 m_createdAtHasBeenSet = true;
140 m_createdAt = std::forward<CreatedAtT>(value);
141 }
142 template <typename CreatedAtT = Aws::Utils::DateTime>
143 JobSummary& WithCreatedAt(CreatedAtT&& value) {
144 SetCreatedAt(std::forward<CreatedAtT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
154 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
155 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
156 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
157 m_lastUpdatedAtHasBeenSet = true;
158 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
159 }
160 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
161 JobSummary& WithLastUpdatedAt(LastUpdatedAtT&& value) {
162 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
163 return *this;
164 }
166
168
171 inline const Aws::Utils::DateTime& GetCompletedAt() const { return m_completedAt; }
172 inline bool CompletedAtHasBeenSet() const { return m_completedAtHasBeenSet; }
173 template <typename CompletedAtT = Aws::Utils::DateTime>
174 void SetCompletedAt(CompletedAtT&& value) {
175 m_completedAtHasBeenSet = true;
176 m_completedAt = std::forward<CompletedAtT>(value);
177 }
178 template <typename CompletedAtT = Aws::Utils::DateTime>
179 JobSummary& WithCompletedAt(CompletedAtT&& value) {
180 SetCompletedAt(std::forward<CompletedAtT>(value));
181 return *this;
182 }
184
186
191 inline bool GetIsConcurrent() const { return m_isConcurrent; }
192 inline bool IsConcurrentHasBeenSet() const { return m_isConcurrentHasBeenSet; }
193 inline void SetIsConcurrent(bool value) {
194 m_isConcurrentHasBeenSet = true;
195 m_isConcurrent = value;
196 }
197 inline JobSummary& WithIsConcurrent(bool value) {
198 SetIsConcurrent(value);
199 return *this;
200 }
202 private:
203 Aws::String m_jobArn;
204
205 Aws::String m_jobId;
206
207 Aws::String m_thingGroupId;
208
209 TargetSelection m_targetSelection{TargetSelection::NOT_SET};
210
212
213 Aws::Utils::DateTime m_createdAt{};
214
215 Aws::Utils::DateTime m_lastUpdatedAt{};
216
217 Aws::Utils::DateTime m_completedAt{};
218
219 bool m_isConcurrent{false};
220 bool m_jobArnHasBeenSet = false;
221 bool m_jobIdHasBeenSet = false;
222 bool m_thingGroupIdHasBeenSet = false;
223 bool m_targetSelectionHasBeenSet = false;
224 bool m_statusHasBeenSet = false;
225 bool m_createdAtHasBeenSet = false;
226 bool m_lastUpdatedAtHasBeenSet = false;
227 bool m_completedAtHasBeenSet = false;
228 bool m_isConcurrentHasBeenSet = false;
229};
230
231} // namespace Model
232} // namespace IoT
233} // namespace Aws
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(JobStatus value)
Definition JobSummary.h:121
JobSummary & WithStatus(JobStatus value)
Definition JobSummary.h:125
AWS_IOT_API JobSummary()=default
const Aws::String & GetJobArn() const
Definition JobSummary.h:41
const Aws::Utils::DateTime & GetCompletedAt() const
Definition JobSummary.h:171
bool ThingGroupIdHasBeenSet() const
Definition JobSummary.h:78
const Aws::Utils::DateTime & GetCreatedAt() const
Definition JobSummary.h:135
JobSummary & WithCompletedAt(CompletedAtT &&value)
Definition JobSummary.h:179
bool CompletedAtHasBeenSet() const
Definition JobSummary.h:172
void SetCreatedAt(CreatedAtT &&value)
Definition JobSummary.h:138
bool CreatedAtHasBeenSet() const
Definition JobSummary.h:136
JobSummary & WithJobId(JobIdT &&value)
Definition JobSummary.h:67
JobSummary & WithIsConcurrent(bool value)
Definition JobSummary.h:197
JobSummary & WithTargetSelection(TargetSelection value)
Definition JobSummary.h:109
bool TargetSelectionHasBeenSet() const
Definition JobSummary.h:104
void SetThingGroupId(ThingGroupIdT &&value)
Definition JobSummary.h:80
void SetTargetSelection(TargetSelection value)
Definition JobSummary.h:105
JobStatus GetStatus() const
Definition JobSummary.h:119
const Aws::String & GetJobId() const
Definition JobSummary.h:59
void SetLastUpdatedAt(LastUpdatedAtT &&value)
Definition JobSummary.h:156
void SetCompletedAt(CompletedAtT &&value)
Definition JobSummary.h:174
JobSummary & WithThingGroupId(ThingGroupIdT &&value)
Definition JobSummary.h:85
void SetJobArn(JobArnT &&value)
Definition JobSummary.h:44
bool LastUpdatedAtHasBeenSet() const
Definition JobSummary.h:154
AWS_IOT_API JobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
JobSummary & WithJobArn(JobArnT &&value)
Definition JobSummary.h:49
void SetIsConcurrent(bool value)
Definition JobSummary.h:193
void SetJobId(JobIdT &&value)
Definition JobSummary.h:62
bool JobArnHasBeenSet() const
Definition JobSummary.h:42
bool IsConcurrentHasBeenSet() const
Definition JobSummary.h:192
JobSummary & WithLastUpdatedAt(LastUpdatedAtT &&value)
Definition JobSummary.h:161
const Aws::Utils::DateTime & GetLastUpdatedAt() const
Definition JobSummary.h:153
JobSummary & WithCreatedAt(CreatedAtT &&value)
Definition JobSummary.h:143
const Aws::String & GetThingGroupId() const
Definition JobSummary.h:77
AWS_IOT_API JobSummary(Aws::Utils::Json::JsonView jsonValue)
TargetSelection GetTargetSelection() const
Definition JobSummary.h:103
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue