AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename JobArnT = Aws::String>
50 void SetJobArn(JobArnT&& value) { m_jobArnHasBeenSet = true; m_jobArn = std::forward<JobArnT>(value); }
51 template<typename JobArnT = Aws::String>
52 JobSummary& WithJobArn(JobArnT&& value) { SetJobArn(std::forward<JobArnT>(value)); return *this;}
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) { m_jobIdHasBeenSet = true; m_jobId = std::forward<JobIdT>(value); }
63 template<typename JobIdT = Aws::String>
64 JobSummary& WithJobId(JobIdT&& value) { SetJobId(std::forward<JobIdT>(value)); return *this;}
66
68
71 inline const Aws::String& GetThingGroupId() const { return m_thingGroupId; }
72 inline bool ThingGroupIdHasBeenSet() const { return m_thingGroupIdHasBeenSet; }
73 template<typename ThingGroupIdT = Aws::String>
74 void SetThingGroupId(ThingGroupIdT&& value) { m_thingGroupIdHasBeenSet = true; m_thingGroupId = std::forward<ThingGroupIdT>(value); }
75 template<typename ThingGroupIdT = Aws::String>
76 JobSummary& WithThingGroupId(ThingGroupIdT&& value) { SetThingGroupId(std::forward<ThingGroupIdT>(value)); return *this;}
78
80
91 inline TargetSelection GetTargetSelection() const { return m_targetSelection; }
92 inline bool TargetSelectionHasBeenSet() const { return m_targetSelectionHasBeenSet; }
93 inline void SetTargetSelection(TargetSelection value) { m_targetSelectionHasBeenSet = true; m_targetSelection = value; }
94 inline JobSummary& WithTargetSelection(TargetSelection value) { SetTargetSelection(value); return *this;}
96
98
101 inline JobStatus GetStatus() const { return m_status; }
102 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
103 inline void SetStatus(JobStatus value) { m_statusHasBeenSet = true; m_status = value; }
104 inline JobSummary& WithStatus(JobStatus value) { SetStatus(value); return *this;}
106
108
111 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
112 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
113 template<typename CreatedAtT = Aws::Utils::DateTime>
114 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
115 template<typename CreatedAtT = Aws::Utils::DateTime>
116 JobSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
118
120
123 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
124 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
125 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
126 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
127 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
128 JobSummary& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
130
132
135 inline const Aws::Utils::DateTime& GetCompletedAt() const { return m_completedAt; }
136 inline bool CompletedAtHasBeenSet() const { return m_completedAtHasBeenSet; }
137 template<typename CompletedAtT = Aws::Utils::DateTime>
138 void SetCompletedAt(CompletedAtT&& value) { m_completedAtHasBeenSet = true; m_completedAt = std::forward<CompletedAtT>(value); }
139 template<typename CompletedAtT = Aws::Utils::DateTime>
140 JobSummary& WithCompletedAt(CompletedAtT&& value) { SetCompletedAt(std::forward<CompletedAtT>(value)); return *this;}
142
144
149 inline bool GetIsConcurrent() const { return m_isConcurrent; }
150 inline bool IsConcurrentHasBeenSet() const { return m_isConcurrentHasBeenSet; }
151 inline void SetIsConcurrent(bool value) { m_isConcurrentHasBeenSet = true; m_isConcurrent = value; }
152 inline JobSummary& WithIsConcurrent(bool value) { SetIsConcurrent(value); return *this;}
154 private:
155
156 Aws::String m_jobArn;
157 bool m_jobArnHasBeenSet = false;
158
159 Aws::String m_jobId;
160 bool m_jobIdHasBeenSet = false;
161
162 Aws::String m_thingGroupId;
163 bool m_thingGroupIdHasBeenSet = false;
164
165 TargetSelection m_targetSelection{TargetSelection::NOT_SET};
166 bool m_targetSelectionHasBeenSet = false;
167
169 bool m_statusHasBeenSet = false;
170
171 Aws::Utils::DateTime m_createdAt{};
172 bool m_createdAtHasBeenSet = false;
173
174 Aws::Utils::DateTime m_lastUpdatedAt{};
175 bool m_lastUpdatedAtHasBeenSet = false;
176
177 Aws::Utils::DateTime m_completedAt{};
178 bool m_completedAtHasBeenSet = false;
179
180 bool m_isConcurrent{false};
181 bool m_isConcurrentHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace IoT
186} // namespace Aws
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(JobStatus value)
Definition JobSummary.h:103
JobSummary & WithStatus(JobStatus value)
Definition JobSummary.h:104
AWS_IOT_API JobSummary()=default
const Aws::String & GetJobArn() const
Definition JobSummary.h:47
const Aws::Utils::DateTime & GetCompletedAt() const
Definition JobSummary.h:135
bool ThingGroupIdHasBeenSet() const
Definition JobSummary.h:72
const Aws::Utils::DateTime & GetCreatedAt() const
Definition JobSummary.h:111
JobSummary & WithCompletedAt(CompletedAtT &&value)
Definition JobSummary.h:140
bool CompletedAtHasBeenSet() const
Definition JobSummary.h:136
void SetCreatedAt(CreatedAtT &&value)
Definition JobSummary.h:114
bool CreatedAtHasBeenSet() const
Definition JobSummary.h:112
JobSummary & WithJobId(JobIdT &&value)
Definition JobSummary.h:64
JobSummary & WithIsConcurrent(bool value)
Definition JobSummary.h:152
JobSummary & WithTargetSelection(TargetSelection value)
Definition JobSummary.h:94
bool TargetSelectionHasBeenSet() const
Definition JobSummary.h:92
void SetThingGroupId(ThingGroupIdT &&value)
Definition JobSummary.h:74
void SetTargetSelection(TargetSelection value)
Definition JobSummary.h:93
JobStatus GetStatus() const
Definition JobSummary.h:101
const Aws::String & GetJobId() const
Definition JobSummary.h:59
void SetLastUpdatedAt(LastUpdatedAtT &&value)
Definition JobSummary.h:126
void SetCompletedAt(CompletedAtT &&value)
Definition JobSummary.h:138
JobSummary & WithThingGroupId(ThingGroupIdT &&value)
Definition JobSummary.h:76
void SetJobArn(JobArnT &&value)
Definition JobSummary.h:50
bool LastUpdatedAtHasBeenSet() const
Definition JobSummary.h:124
AWS_IOT_API JobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
JobSummary & WithJobArn(JobArnT &&value)
Definition JobSummary.h:52
void SetIsConcurrent(bool value)
Definition JobSummary.h:151
void SetJobId(JobIdT &&value)
Definition JobSummary.h:62
bool JobArnHasBeenSet() const
Definition JobSummary.h:48
bool IsConcurrentHasBeenSet() const
Definition JobSummary.h:150
JobSummary & WithLastUpdatedAt(LastUpdatedAtT &&value)
Definition JobSummary.h:128
const Aws::Utils::DateTime & GetLastUpdatedAt() const
Definition JobSummary.h:123
JobSummary & WithCreatedAt(CreatedAtT &&value)
Definition JobSummary.h:116
const Aws::String & GetThingGroupId() const
Definition JobSummary.h:71
AWS_IOT_API JobSummary(Aws::Utils::Json::JsonView jsonValue)
TargetSelection GetTargetSelection() const
Definition JobSummary.h:91
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue