AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
JobExecutionSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/iot/IoT_EXPORTS.h>
9#include <aws/iot/model/JobExecutionStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoT {
21namespace Model {
22
29 public:
30 AWS_IOT_API JobExecutionSummary() = default;
34
36
39 inline JobExecutionStatus GetStatus() const { return m_status; }
40 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
41 inline void SetStatus(JobExecutionStatus value) {
42 m_statusHasBeenSet = true;
43 m_status = value;
44 }
46 SetStatus(value);
47 return *this;
48 }
50
52
55 inline const Aws::Utils::DateTime& GetQueuedAt() const { return m_queuedAt; }
56 inline bool QueuedAtHasBeenSet() const { return m_queuedAtHasBeenSet; }
57 template <typename QueuedAtT = Aws::Utils::DateTime>
58 void SetQueuedAt(QueuedAtT&& value) {
59 m_queuedAtHasBeenSet = true;
60 m_queuedAt = std::forward<QueuedAtT>(value);
61 }
62 template <typename QueuedAtT = Aws::Utils::DateTime>
63 JobExecutionSummary& WithQueuedAt(QueuedAtT&& value) {
64 SetQueuedAt(std::forward<QueuedAtT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
74 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
75 template <typename StartedAtT = Aws::Utils::DateTime>
76 void SetStartedAt(StartedAtT&& value) {
77 m_startedAtHasBeenSet = true;
78 m_startedAt = std::forward<StartedAtT>(value);
79 }
80 template <typename StartedAtT = Aws::Utils::DateTime>
81 JobExecutionSummary& WithStartedAt(StartedAtT&& value) {
82 SetStartedAt(std::forward<StartedAtT>(value));
83 return *this;
84 }
86
88
92 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
93 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
94 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
95 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
96 m_lastUpdatedAtHasBeenSet = true;
97 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
98 }
99 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
100 JobExecutionSummary& WithLastUpdatedAt(LastUpdatedAtT&& value) {
101 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
102 return *this;
103 }
105
107
112 inline long long GetExecutionNumber() const { return m_executionNumber; }
113 inline bool ExecutionNumberHasBeenSet() const { return m_executionNumberHasBeenSet; }
114 inline void SetExecutionNumber(long long value) {
115 m_executionNumberHasBeenSet = true;
116 m_executionNumber = value;
117 }
118 inline JobExecutionSummary& WithExecutionNumber(long long value) {
119 SetExecutionNumber(value);
120 return *this;
121 }
123
125
129 inline int GetRetryAttempt() const { return m_retryAttempt; }
130 inline bool RetryAttemptHasBeenSet() const { return m_retryAttemptHasBeenSet; }
131 inline void SetRetryAttempt(int value) {
132 m_retryAttemptHasBeenSet = true;
133 m_retryAttempt = value;
134 }
136 SetRetryAttempt(value);
137 return *this;
138 }
140 private:
142
143 Aws::Utils::DateTime m_queuedAt{};
144
145 Aws::Utils::DateTime m_startedAt{};
146
147 Aws::Utils::DateTime m_lastUpdatedAt{};
148
149 long long m_executionNumber{0};
150
151 int m_retryAttempt{0};
152 bool m_statusHasBeenSet = false;
153 bool m_queuedAtHasBeenSet = false;
154 bool m_startedAtHasBeenSet = false;
155 bool m_lastUpdatedAtHasBeenSet = false;
156 bool m_executionNumberHasBeenSet = false;
157 bool m_retryAttemptHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace IoT
162} // namespace Aws
JobExecutionSummary & WithStatus(JobExecutionStatus value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
AWS_IOT_API JobExecutionSummary(Aws::Utils::Json::JsonView jsonValue)
void SetLastUpdatedAt(LastUpdatedAtT &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOT_API JobExecutionSummary()=default
JobExecutionSummary & WithRetryAttempt(int value)
JobExecutionSummary & WithQueuedAt(QueuedAtT &&value)
JobExecutionSummary & WithLastUpdatedAt(LastUpdatedAtT &&value)
const Aws::Utils::DateTime & GetQueuedAt() const
JobExecutionSummary & WithExecutionNumber(long long value)
void SetStatus(JobExecutionStatus value)
const Aws::Utils::DateTime & GetStartedAt() const
JobExecutionSummary & WithStartedAt(StartedAtT &&value)
AWS_IOT_API JobExecutionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue