AWS SDK for C++  1.9.47
AWS SDK for C++
JobSummary.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 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetJobArn() const{ return m_jobArn; }
47 
51  inline bool JobArnHasBeenSet() const { return m_jobArnHasBeenSet; }
52 
56  inline void SetJobArn(const Aws::String& value) { m_jobArnHasBeenSet = true; m_jobArn = value; }
57 
61  inline void SetJobArn(Aws::String&& value) { m_jobArnHasBeenSet = true; m_jobArn = std::move(value); }
62 
66  inline void SetJobArn(const char* value) { m_jobArnHasBeenSet = true; m_jobArn.assign(value); }
67 
71  inline JobSummary& WithJobArn(const Aws::String& value) { SetJobArn(value); return *this;}
72 
76  inline JobSummary& WithJobArn(Aws::String&& value) { SetJobArn(std::move(value)); return *this;}
77 
81  inline JobSummary& WithJobArn(const char* value) { SetJobArn(value); return *this;}
82 
83 
87  inline const Aws::String& GetJobId() const{ return m_jobId; }
88 
92  inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
93 
97  inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
98 
102  inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
103 
107  inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
108 
112  inline JobSummary& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
113 
117  inline JobSummary& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
118 
122  inline JobSummary& WithJobId(const char* value) { SetJobId(value); return *this;}
123 
124 
128  inline const Aws::String& GetThingGroupId() const{ return m_thingGroupId; }
129 
133  inline bool ThingGroupIdHasBeenSet() const { return m_thingGroupIdHasBeenSet; }
134 
138  inline void SetThingGroupId(const Aws::String& value) { m_thingGroupIdHasBeenSet = true; m_thingGroupId = value; }
139 
143  inline void SetThingGroupId(Aws::String&& value) { m_thingGroupIdHasBeenSet = true; m_thingGroupId = std::move(value); }
144 
148  inline void SetThingGroupId(const char* value) { m_thingGroupIdHasBeenSet = true; m_thingGroupId.assign(value); }
149 
153  inline JobSummary& WithThingGroupId(const Aws::String& value) { SetThingGroupId(value); return *this;}
154 
158  inline JobSummary& WithThingGroupId(Aws::String&& value) { SetThingGroupId(std::move(value)); return *this;}
159 
163  inline JobSummary& WithThingGroupId(const char* value) { SetThingGroupId(value); return *this;}
164 
165 
174  inline const TargetSelection& GetTargetSelection() const{ return m_targetSelection; }
175 
184  inline bool TargetSelectionHasBeenSet() const { return m_targetSelectionHasBeenSet; }
185 
194  inline void SetTargetSelection(const TargetSelection& value) { m_targetSelectionHasBeenSet = true; m_targetSelection = value; }
195 
204  inline void SetTargetSelection(TargetSelection&& value) { m_targetSelectionHasBeenSet = true; m_targetSelection = std::move(value); }
205 
214  inline JobSummary& WithTargetSelection(const TargetSelection& value) { SetTargetSelection(value); return *this;}
215 
224  inline JobSummary& WithTargetSelection(TargetSelection&& value) { SetTargetSelection(std::move(value)); return *this;}
225 
226 
230  inline const JobStatus& GetStatus() const{ return m_status; }
231 
235  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
236 
240  inline void SetStatus(const JobStatus& value) { m_statusHasBeenSet = true; m_status = value; }
241 
245  inline void SetStatus(JobStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
246 
250  inline JobSummary& WithStatus(const JobStatus& value) { SetStatus(value); return *this;}
251 
255  inline JobSummary& WithStatus(JobStatus&& value) { SetStatus(std::move(value)); return *this;}
256 
257 
261  inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
262 
266  inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
267 
271  inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
272 
276  inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
277 
281  inline JobSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
282 
286  inline JobSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
287 
288 
292  inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
293 
297  inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
298 
302  inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
303 
307  inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); }
308 
312  inline JobSummary& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;}
313 
317  inline JobSummary& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
318 
319 
323  inline const Aws::Utils::DateTime& GetCompletedAt() const{ return m_completedAt; }
324 
328  inline bool CompletedAtHasBeenSet() const { return m_completedAtHasBeenSet; }
329 
333  inline void SetCompletedAt(const Aws::Utils::DateTime& value) { m_completedAtHasBeenSet = true; m_completedAt = value; }
334 
338  inline void SetCompletedAt(Aws::Utils::DateTime&& value) { m_completedAtHasBeenSet = true; m_completedAt = std::move(value); }
339 
343  inline JobSummary& WithCompletedAt(const Aws::Utils::DateTime& value) { SetCompletedAt(value); return *this;}
344 
348  inline JobSummary& WithCompletedAt(Aws::Utils::DateTime&& value) { SetCompletedAt(std::move(value)); return *this;}
349 
350  private:
351 
352  Aws::String m_jobArn;
353  bool m_jobArnHasBeenSet;
354 
355  Aws::String m_jobId;
356  bool m_jobIdHasBeenSet;
357 
358  Aws::String m_thingGroupId;
359  bool m_thingGroupIdHasBeenSet;
360 
361  TargetSelection m_targetSelection;
362  bool m_targetSelectionHasBeenSet;
363 
364  JobStatus m_status;
365  bool m_statusHasBeenSet;
366 
367  Aws::Utils::DateTime m_createdAt;
368  bool m_createdAtHasBeenSet;
369 
370  Aws::Utils::DateTime m_lastUpdatedAt;
371  bool m_lastUpdatedAtHasBeenSet;
372 
373  Aws::Utils::DateTime m_completedAt;
374  bool m_completedAtHasBeenSet;
375  };
376 
377 } // namespace Model
378 } // namespace IoT
379 } // namespace Aws
Aws::IoT::Model::JobSummary::CreatedAtHasBeenSet
bool CreatedAtHasBeenSet() const
Definition: JobSummary.h:266
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::IoT::Model::JobSummary::SetCompletedAt
void SetCompletedAt(const Aws::Utils::DateTime &value)
Definition: JobSummary.h:333
Aws::IoT::Model::JobSummary::WithStatus
JobSummary & WithStatus(const JobStatus &value)
Definition: JobSummary.h:250
Aws::IoT::Model::JobSummary::WithJobId
JobSummary & WithJobId(Aws::String &&value)
Definition: JobSummary.h:117
Aws::IoT::Model::JobSummary::WithTargetSelection
JobSummary & WithTargetSelection(const TargetSelection &value)
Definition: JobSummary.h:214
Aws::IoT::Model::JobSummary::WithCreatedAt
JobSummary & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition: JobSummary.h:286
Aws::IoT::Model::JobSummary::TargetSelectionHasBeenSet
bool TargetSelectionHasBeenSet() const
Definition: JobSummary.h:184
Aws::IoT::Model::JobSummary::SetJobArn
void SetJobArn(const char *value)
Definition: JobSummary.h:66
Aws::IoT::Model::JobSummary::WithJobArn
JobSummary & WithJobArn(const char *value)
Definition: JobSummary.h:81
Aws::IoT::Model::JobSummary::WithJobId
JobSummary & WithJobId(const Aws::String &value)
Definition: JobSummary.h:112
Aws::IoT::Model::JobSummary::CompletedAtHasBeenSet
bool CompletedAtHasBeenSet() const
Definition: JobSummary.h:328
Aws::IoT::Model::JobSummary::SetJobArn
void SetJobArn(const Aws::String &value)
Definition: JobSummary.h:56
DateTime.h
Aws::IoT::Model::JobSummary::SetTargetSelection
void SetTargetSelection(const TargetSelection &value)
Definition: JobSummary.h:194
Aws::IoT::Model::JobSummary::JobSummary
JobSummary()
Aws::IoT::Model::JobSummary::SetJobId
void SetJobId(Aws::String &&value)
Definition: JobSummary.h:102
Aws::IoT::Model::JobSummary::GetTargetSelection
const TargetSelection & GetTargetSelection() const
Definition: JobSummary.h:174
Aws::IoT::Model::JobSummary::SetJobArn
void SetJobArn(Aws::String &&value)
Definition: JobSummary.h:61
Aws::IoT::Model::JobSummary::SetStatus
void SetStatus(JobStatus &&value)
Definition: JobSummary.h:245
Aws::IoT::Model::JobSummary::SetCompletedAt
void SetCompletedAt(Aws::Utils::DateTime &&value)
Definition: JobSummary.h:338
Aws::IoT::Model::JobSummary::JobArnHasBeenSet
bool JobArnHasBeenSet() const
Definition: JobSummary.h:51
Aws::IoT::Model::JobSummary::WithJobArn
JobSummary & WithJobArn(const Aws::String &value)
Definition: JobSummary.h:71
Aws::IoT::Model::JobSummary::ThingGroupIdHasBeenSet
bool ThingGroupIdHasBeenSet() const
Definition: JobSummary.h:133
Aws::IoT::Model::JobSummary::SetThingGroupId
void SetThingGroupId(const Aws::String &value)
Definition: JobSummary.h:138
Aws::IoT::Model::JobSummary::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::JobSummary::JobIdHasBeenSet
bool JobIdHasBeenSet() const
Definition: JobSummary.h:92
Aws::IoT::Model::JobSummary::WithCompletedAt
JobSummary & WithCompletedAt(Aws::Utils::DateTime &&value)
Definition: JobSummary.h:348
Aws::IoT::Model::JobSummary::GetCreatedAt
const Aws::Utils::DateTime & GetCreatedAt() const
Definition: JobSummary.h:261
Aws::IoT::Model::JobSummary
Definition: JobSummary.h:35
Aws::IoT::Model::JobSummary::WithJobId
JobSummary & WithJobId(const char *value)
Definition: JobSummary.h:122
Aws::IoT::Model::JobStatus
JobStatus
Definition: JobStatus.h:17
Aws::IoT::Model::JobSummary::SetCreatedAt
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition: JobSummary.h:276
Aws::IoT::Model::JobSummary::GetJobId
const Aws::String & GetJobId() const
Definition: JobSummary.h:87
Aws::IoT::Model::JobSummary::SetLastUpdatedAt
void SetLastUpdatedAt(Aws::Utils::DateTime &&value)
Definition: JobSummary.h:307
Aws::IoT::Model::JobSummary::SetJobId
void SetJobId(const char *value)
Definition: JobSummary.h:107
Aws::IoT::Model::JobSummary::SetThingGroupId
void SetThingGroupId(Aws::String &&value)
Definition: JobSummary.h:143
Aws::IoT::Model::JobSummary::GetThingGroupId
const Aws::String & GetThingGroupId() const
Definition: JobSummary.h:128
TargetSelection.h
Aws::IoT::Model::JobSummary::GetLastUpdatedAt
const Aws::Utils::DateTime & GetLastUpdatedAt() const
Definition: JobSummary.h:292
Aws::IoT::Model::JobSummary::GetCompletedAt
const Aws::Utils::DateTime & GetCompletedAt() const
Definition: JobSummary.h:323
Aws::IoT::Model::JobSummary::SetCreatedAt
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition: JobSummary.h:271
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::IoT::Model::JobSummary::SetStatus
void SetStatus(const JobStatus &value)
Definition: JobSummary.h:240
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
JobStatus.h
Aws::IoT::Model::JobSummary::GetStatus
const JobStatus & GetStatus() const
Definition: JobSummary.h:230
Aws::IoT::Model::JobSummary::GetJobArn
const Aws::String & GetJobArn() const
Definition: JobSummary.h:46
Aws::IoT::Model::JobSummary::WithCompletedAt
JobSummary & WithCompletedAt(const Aws::Utils::DateTime &value)
Definition: JobSummary.h:343
Aws::IoT::Model::JobSummary::WithCreatedAt
JobSummary & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition: JobSummary.h:281
Aws::IoT::Model::JobSummary::WithTargetSelection
JobSummary & WithTargetSelection(TargetSelection &&value)
Definition: JobSummary.h:224
Aws::IoT::Model::JobSummary::WithThingGroupId
JobSummary & WithThingGroupId(const char *value)
Definition: JobSummary.h:163
Aws::IoT::Model::JobSummary::WithJobArn
JobSummary & WithJobArn(Aws::String &&value)
Definition: JobSummary.h:76
Aws::IoT::Model::JobSummary::SetThingGroupId
void SetThingGroupId(const char *value)
Definition: JobSummary.h:148
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::JobSummary::operator=
JobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::JobSummary::WithStatus
JobSummary & WithStatus(JobStatus &&value)
Definition: JobSummary.h:255
Aws::IoT::Model::JobSummary::WithThingGroupId
JobSummary & WithThingGroupId(const Aws::String &value)
Definition: JobSummary.h:153
Aws::IoT::Model::JobSummary::WithThingGroupId
JobSummary & WithThingGroupId(Aws::String &&value)
Definition: JobSummary.h:158
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::JobSummary::WithLastUpdatedAt
JobSummary & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
Definition: JobSummary.h:312
Aws::IoT::Model::JobSummary::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: JobSummary.h:235
Aws::IoT::Model::JobSummary::SetJobId
void SetJobId(const Aws::String &value)
Definition: JobSummary.h:97
Aws::IoT::Model::TargetSelection
TargetSelection
Definition: TargetSelection.h:17
Aws::IoT::Model::JobSummary::LastUpdatedAtHasBeenSet
bool LastUpdatedAtHasBeenSet() const
Definition: JobSummary.h:297
Aws::IoT::Model::JobSummary::SetTargetSelection
void SetTargetSelection(TargetSelection &&value)
Definition: JobSummary.h:204
Aws::IoT::Model::JobSummary::WithLastUpdatedAt
JobSummary & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
Definition: JobSummary.h:317
Aws::IoT::Model::JobSummary::SetLastUpdatedAt
void SetLastUpdatedAt(const Aws::Utils::DateTime &value)
Definition: JobSummary.h:302
Aws::IoT::Model::JobSummary::JobSummary
JobSummary(Aws::Utils::Json::JsonView jsonValue)
IoT_EXPORTS.h