AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
JobSummary.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/TargetSelection.h>
10#include <aws/iot/model/JobStatus.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
35 {
36 public:
37 AWS_IOT_API JobSummary();
38 AWS_IOT_API JobSummary(Aws::Utils::Json::JsonView jsonValue);
41
42
44
47 inline const Aws::String& GetJobArn() const{ return m_jobArn; }
48 inline bool JobArnHasBeenSet() const { return m_jobArnHasBeenSet; }
49 inline void SetJobArn(const Aws::String& value) { m_jobArnHasBeenSet = true; m_jobArn = value; }
50 inline void SetJobArn(Aws::String&& value) { m_jobArnHasBeenSet = true; m_jobArn = std::move(value); }
51 inline void SetJobArn(const char* value) { m_jobArnHasBeenSet = true; m_jobArn.assign(value); }
52 inline JobSummary& WithJobArn(const Aws::String& value) { SetJobArn(value); return *this;}
53 inline JobSummary& WithJobArn(Aws::String&& value) { SetJobArn(std::move(value)); return *this;}
54 inline JobSummary& WithJobArn(const char* value) { SetJobArn(value); return *this;}
56
58
61 inline const Aws::String& GetJobId() const{ return m_jobId; }
62 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
63 inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
64 inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
65 inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
66 inline JobSummary& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
67 inline JobSummary& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
68 inline JobSummary& WithJobId(const char* value) { SetJobId(value); return *this;}
70
72
75 inline const Aws::String& GetThingGroupId() const{ return m_thingGroupId; }
76 inline bool ThingGroupIdHasBeenSet() const { return m_thingGroupIdHasBeenSet; }
77 inline void SetThingGroupId(const Aws::String& value) { m_thingGroupIdHasBeenSet = true; m_thingGroupId = value; }
78 inline void SetThingGroupId(Aws::String&& value) { m_thingGroupIdHasBeenSet = true; m_thingGroupId = std::move(value); }
79 inline void SetThingGroupId(const char* value) { m_thingGroupIdHasBeenSet = true; m_thingGroupId.assign(value); }
80 inline JobSummary& WithThingGroupId(const Aws::String& value) { SetThingGroupId(value); return *this;}
81 inline JobSummary& WithThingGroupId(Aws::String&& value) { SetThingGroupId(std::move(value)); return *this;}
82 inline JobSummary& WithThingGroupId(const char* value) { SetThingGroupId(value); return *this;}
84
86
97 inline const TargetSelection& GetTargetSelection() const{ return m_targetSelection; }
98 inline bool TargetSelectionHasBeenSet() const { return m_targetSelectionHasBeenSet; }
99 inline void SetTargetSelection(const TargetSelection& value) { m_targetSelectionHasBeenSet = true; m_targetSelection = value; }
100 inline void SetTargetSelection(TargetSelection&& value) { m_targetSelectionHasBeenSet = true; m_targetSelection = std::move(value); }
101 inline JobSummary& WithTargetSelection(const TargetSelection& value) { SetTargetSelection(value); return *this;}
102 inline JobSummary& WithTargetSelection(TargetSelection&& value) { SetTargetSelection(std::move(value)); return *this;}
104
106
109 inline const JobStatus& GetStatus() const{ return m_status; }
110 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
111 inline void SetStatus(const JobStatus& value) { m_statusHasBeenSet = true; m_status = value; }
112 inline void SetStatus(JobStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
113 inline JobSummary& WithStatus(const JobStatus& value) { SetStatus(value); return *this;}
114 inline JobSummary& WithStatus(JobStatus&& value) { SetStatus(std::move(value)); return *this;}
116
118
121 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
122 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
123 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
124 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
125 inline JobSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
126 inline JobSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
128
130
133 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
134 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
135 inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
136 inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); }
137 inline JobSummary& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;}
138 inline JobSummary& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
140
142
145 inline const Aws::Utils::DateTime& GetCompletedAt() const{ return m_completedAt; }
146 inline bool CompletedAtHasBeenSet() const { return m_completedAtHasBeenSet; }
147 inline void SetCompletedAt(const Aws::Utils::DateTime& value) { m_completedAtHasBeenSet = true; m_completedAt = value; }
148 inline void SetCompletedAt(Aws::Utils::DateTime&& value) { m_completedAtHasBeenSet = true; m_completedAt = std::move(value); }
149 inline JobSummary& WithCompletedAt(const Aws::Utils::DateTime& value) { SetCompletedAt(value); return *this;}
150 inline JobSummary& WithCompletedAt(Aws::Utils::DateTime&& value) { SetCompletedAt(std::move(value)); return *this;}
152
154
159 inline bool GetIsConcurrent() const{ return m_isConcurrent; }
160 inline bool IsConcurrentHasBeenSet() const { return m_isConcurrentHasBeenSet; }
161 inline void SetIsConcurrent(bool value) { m_isConcurrentHasBeenSet = true; m_isConcurrent = value; }
162 inline JobSummary& WithIsConcurrent(bool value) { SetIsConcurrent(value); return *this;}
164 private:
165
166 Aws::String m_jobArn;
167 bool m_jobArnHasBeenSet = false;
168
169 Aws::String m_jobId;
170 bool m_jobIdHasBeenSet = false;
171
172 Aws::String m_thingGroupId;
173 bool m_thingGroupIdHasBeenSet = false;
174
175 TargetSelection m_targetSelection;
176 bool m_targetSelectionHasBeenSet = false;
177
178 JobStatus m_status;
179 bool m_statusHasBeenSet = false;
180
181 Aws::Utils::DateTime m_createdAt;
182 bool m_createdAtHasBeenSet = false;
183
184 Aws::Utils::DateTime m_lastUpdatedAt;
185 bool m_lastUpdatedAtHasBeenSet = false;
186
187 Aws::Utils::DateTime m_completedAt;
188 bool m_completedAtHasBeenSet = false;
189
190 bool m_isConcurrent;
191 bool m_isConcurrentHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace IoT
196} // namespace Aws
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
JobSummary & WithThingGroupId(const Aws::String &value)
Definition JobSummary.h:80
JobSummary & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition JobSummary.h:126
JobSummary & WithCompletedAt(const Aws::Utils::DateTime &value)
Definition JobSummary.h:149
const Aws::String & GetJobArn() const
Definition JobSummary.h:47
const Aws::Utils::DateTime & GetCompletedAt() const
Definition JobSummary.h:145
void SetThingGroupId(const Aws::String &value)
Definition JobSummary.h:77
bool ThingGroupIdHasBeenSet() const
Definition JobSummary.h:76
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition JobSummary.h:123
JobSummary & WithStatus(const JobStatus &value)
Definition JobSummary.h:113
const JobStatus & GetStatus() const
Definition JobSummary.h:109
JobSummary & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
Definition JobSummary.h:137
const Aws::Utils::DateTime & GetCreatedAt() const
Definition JobSummary.h:121
JobSummary & WithJobId(const Aws::String &value)
Definition JobSummary.h:66
bool CompletedAtHasBeenSet() const
Definition JobSummary.h:146
void SetJobId(const Aws::String &value)
Definition JobSummary.h:63
bool CreatedAtHasBeenSet() const
Definition JobSummary.h:122
void SetCompletedAt(Aws::Utils::DateTime &&value)
Definition JobSummary.h:148
JobSummary & WithCompletedAt(Aws::Utils::DateTime &&value)
Definition JobSummary.h:150
JobSummary & WithThingGroupId(Aws::String &&value)
Definition JobSummary.h:81
JobSummary & WithJobArn(Aws::String &&value)
Definition JobSummary.h:53
JobSummary & WithJobArn(const char *value)
Definition JobSummary.h:54
void SetThingGroupId(Aws::String &&value)
Definition JobSummary.h:78
JobSummary & WithIsConcurrent(bool value)
Definition JobSummary.h:162
void SetJobArn(const Aws::String &value)
Definition JobSummary.h:49
void SetTargetSelection(TargetSelection &&value)
Definition JobSummary.h:100
JobSummary & WithJobArn(const Aws::String &value)
Definition JobSummary.h:52
bool TargetSelectionHasBeenSet() const
Definition JobSummary.h:98
const TargetSelection & GetTargetSelection() const
Definition JobSummary.h:97
const Aws::String & GetJobId() const
Definition JobSummary.h:61
JobSummary & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition JobSummary.h:125
void SetJobId(const char *value)
Definition JobSummary.h:65
void SetLastUpdatedAt(Aws::Utils::DateTime &&value)
Definition JobSummary.h:136
bool LastUpdatedAtHasBeenSet() const
Definition JobSummary.h:134
AWS_IOT_API JobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetIsConcurrent(bool value)
Definition JobSummary.h:161
JobSummary & WithJobId(const char *value)
Definition JobSummary.h:68
JobSummary & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
Definition JobSummary.h:138
JobSummary & WithTargetSelection(const TargetSelection &value)
Definition JobSummary.h:101
void SetThingGroupId(const char *value)
Definition JobSummary.h:79
bool JobArnHasBeenSet() const
Definition JobSummary.h:48
void SetStatus(JobStatus &&value)
Definition JobSummary.h:112
void SetLastUpdatedAt(const Aws::Utils::DateTime &value)
Definition JobSummary.h:135
void SetTargetSelection(const TargetSelection &value)
Definition JobSummary.h:99
JobSummary & WithJobId(Aws::String &&value)
Definition JobSummary.h:67
bool IsConcurrentHasBeenSet() const
Definition JobSummary.h:160
void SetJobId(Aws::String &&value)
Definition JobSummary.h:64
const Aws::Utils::DateTime & GetLastUpdatedAt() const
Definition JobSummary.h:133
JobSummary & WithThingGroupId(const char *value)
Definition JobSummary.h:82
void SetJobArn(Aws::String &&value)
Definition JobSummary.h:50
const Aws::String & GetThingGroupId() const
Definition JobSummary.h:75
void SetStatus(const JobStatus &value)
Definition JobSummary.h:111
void SetJobArn(const char *value)
Definition JobSummary.h:51
AWS_IOT_API JobSummary(Aws::Utils::Json::JsonView jsonValue)
void SetCompletedAt(const Aws::Utils::DateTime &value)
Definition JobSummary.h:147
JobSummary & WithStatus(JobStatus &&value)
Definition JobSummary.h:114
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition JobSummary.h:124
JobSummary & WithTargetSelection(TargetSelection &&value)
Definition JobSummary.h:102
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue