AWS SDK for C++  1.9.132
AWS SDK for C++
JobExecutionSummary.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace IoT
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
44  inline const JobExecutionStatus& GetStatus() const{ return m_status; }
45 
49  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
50 
54  inline void SetStatus(const JobExecutionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
55 
59  inline void SetStatus(JobExecutionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
60 
64  inline JobExecutionSummary& WithStatus(const JobExecutionStatus& value) { SetStatus(value); return *this;}
65 
69  inline JobExecutionSummary& WithStatus(JobExecutionStatus&& value) { SetStatus(std::move(value)); return *this;}
70 
71 
75  inline const Aws::Utils::DateTime& GetQueuedAt() const{ return m_queuedAt; }
76 
80  inline bool QueuedAtHasBeenSet() const { return m_queuedAtHasBeenSet; }
81 
85  inline void SetQueuedAt(const Aws::Utils::DateTime& value) { m_queuedAtHasBeenSet = true; m_queuedAt = value; }
86 
90  inline void SetQueuedAt(Aws::Utils::DateTime&& value) { m_queuedAtHasBeenSet = true; m_queuedAt = std::move(value); }
91 
95  inline JobExecutionSummary& WithQueuedAt(const Aws::Utils::DateTime& value) { SetQueuedAt(value); return *this;}
96 
100  inline JobExecutionSummary& WithQueuedAt(Aws::Utils::DateTime&& value) { SetQueuedAt(std::move(value)); return *this;}
101 
102 
106  inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; }
107 
111  inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
112 
116  inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAtHasBeenSet = true; m_startedAt = value; }
117 
121  inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::move(value); }
122 
126  inline JobExecutionSummary& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;}
127 
131  inline JobExecutionSummary& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;}
132 
133 
138  inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
139 
144  inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
145 
150  inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
151 
156  inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); }
157 
162  inline JobExecutionSummary& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;}
163 
168  inline JobExecutionSummary& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
169 
170 
176  inline long long GetExecutionNumber() const{ return m_executionNumber; }
177 
183  inline bool ExecutionNumberHasBeenSet() const { return m_executionNumberHasBeenSet; }
184 
190  inline void SetExecutionNumber(long long value) { m_executionNumberHasBeenSet = true; m_executionNumber = value; }
191 
197  inline JobExecutionSummary& WithExecutionNumber(long long value) { SetExecutionNumber(value); return *this;}
198 
199  private:
200 
201  JobExecutionStatus m_status;
202  bool m_statusHasBeenSet;
203 
204  Aws::Utils::DateTime m_queuedAt;
205  bool m_queuedAtHasBeenSet;
206 
207  Aws::Utils::DateTime m_startedAt;
208  bool m_startedAtHasBeenSet;
209 
210  Aws::Utils::DateTime m_lastUpdatedAt;
211  bool m_lastUpdatedAtHasBeenSet;
212 
213  long long m_executionNumber;
214  bool m_executionNumberHasBeenSet;
215  };
216 
217 } // namespace Model
218 } // namespace IoT
219 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::IoT::Model::JobExecutionSummary::WithQueuedAt
JobExecutionSummary & WithQueuedAt(Aws::Utils::DateTime &&value)
Definition: JobExecutionSummary.h:100
Aws::IoT::Model::JobExecutionSummary::SetStartedAt
void SetStartedAt(const Aws::Utils::DateTime &value)
Definition: JobExecutionSummary.h:116
Aws::IoT::Model::JobExecutionSummary::GetStartedAt
const Aws::Utils::DateTime & GetStartedAt() const
Definition: JobExecutionSummary.h:106
Aws::IoT::Model::JobExecutionSummary::WithLastUpdatedAt
JobExecutionSummary & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
Definition: JobExecutionSummary.h:162
Aws::IoT::Model::JobExecutionSummary::WithQueuedAt
JobExecutionSummary & WithQueuedAt(const Aws::Utils::DateTime &value)
Definition: JobExecutionSummary.h:95
Aws::IoT::Model::JobExecutionSummary::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: JobExecutionSummary.h:49
Aws::IoT::Model::JobExecutionSummary::WithStartedAt
JobExecutionSummary & WithStartedAt(Aws::Utils::DateTime &&value)
Definition: JobExecutionSummary.h:131
Aws::IoT::Model::JobExecutionSummary::JobExecutionSummary
JobExecutionSummary()
Aws::IoT::Model::JobExecutionSummary::WithStartedAt
JobExecutionSummary & WithStartedAt(const Aws::Utils::DateTime &value)
Definition: JobExecutionSummary.h:126
Aws::IoT::Model::JobExecutionSummary::GetExecutionNumber
long long GetExecutionNumber() const
Definition: JobExecutionSummary.h:176
Aws::IoT::Model::JobExecutionSummary::WithExecutionNumber
JobExecutionSummary & WithExecutionNumber(long long value)
Definition: JobExecutionSummary.h:197
Aws::IoT::Model::JobExecutionSummary::WithStatus
JobExecutionSummary & WithStatus(const JobExecutionStatus &value)
Definition: JobExecutionSummary.h:64
Aws::IoT::Model::JobExecutionSummary::GetStatus
const JobExecutionStatus & GetStatus() const
Definition: JobExecutionSummary.h:44
DateTime.h
Aws::IoT::Model::JobExecutionSummary::ExecutionNumberHasBeenSet
bool ExecutionNumberHasBeenSet() const
Definition: JobExecutionSummary.h:183
Aws::IoT::Model::JobExecutionSummary::SetStartedAt
void SetStartedAt(Aws::Utils::DateTime &&value)
Definition: JobExecutionSummary.h:121
Aws::IoT::Model::JobExecutionSummary::StartedAtHasBeenSet
bool StartedAtHasBeenSet() const
Definition: JobExecutionSummary.h:111
Aws::IoT::Model::JobExecutionSummary::SetStatus
void SetStatus(const JobExecutionStatus &value)
Definition: JobExecutionSummary.h:54
Aws::IoT::Model::JobExecutionSummary::SetLastUpdatedAt
void SetLastUpdatedAt(const Aws::Utils::DateTime &value)
Definition: JobExecutionSummary.h:150
Aws::IoT::Model::JobExecutionSummary::SetStatus
void SetStatus(JobExecutionStatus &&value)
Definition: JobExecutionSummary.h:59
Aws::IoT::Model::JobExecutionSummary::WithLastUpdatedAt
JobExecutionSummary & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
Definition: JobExecutionSummary.h:168
Aws::IoT::Model::JobExecutionSummary::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::JobExecutionSummary
Definition: JobExecutionSummary.h:33
Aws::IoT::Model::JobExecutionSummary::QueuedAtHasBeenSet
bool QueuedAtHasBeenSet() const
Definition: JobExecutionSummary.h:80
JobExecutionStatus.h
Aws::IoT::Model::JobExecutionSummary::SetLastUpdatedAt
void SetLastUpdatedAt(Aws::Utils::DateTime &&value)
Definition: JobExecutionSummary.h:156
Aws::IoT::Model::JobExecutionSummary::SetExecutionNumber
void SetExecutionNumber(long long value)
Definition: JobExecutionSummary.h:190
Aws::IoT::Model::JobExecutionSummary::GetQueuedAt
const Aws::Utils::DateTime & GetQueuedAt() const
Definition: JobExecutionSummary.h:75
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::JobExecutionSummary::JobExecutionSummary
JobExecutionSummary(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::JobExecutionStatus
JobExecutionStatus
Definition: JobExecutionStatus.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::JobExecutionSummary::WithStatus
JobExecutionSummary & WithStatus(JobExecutionStatus &&value)
Definition: JobExecutionSummary.h:69
Aws::IoT::Model::JobExecutionSummary::LastUpdatedAtHasBeenSet
bool LastUpdatedAtHasBeenSet() const
Definition: JobExecutionSummary.h:144
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::JobExecutionSummary::SetQueuedAt
void SetQueuedAt(const Aws::Utils::DateTime &value)
Definition: JobExecutionSummary.h:85
Aws::IoT::Model::JobExecutionSummary::SetQueuedAt
void SetQueuedAt(Aws::Utils::DateTime &&value)
Definition: JobExecutionSummary.h:90
Aws::IoT::Model::JobExecutionSummary::operator=
JobExecutionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::JobExecutionSummary::GetLastUpdatedAt
const Aws::Utils::DateTime & GetLastUpdatedAt() const
Definition: JobExecutionSummary.h:138
IoT_EXPORTS.h