AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
OtaTaskExecutionSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
9#include <aws/iot-managed-integrations/model/OtaTaskExecutionStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoTManagedIntegrations {
21namespace Model {
22
30 public:
31 AWS_IOTMANAGEDINTEGRATIONS_API OtaTaskExecutionSummary() = default;
32 AWS_IOTMANAGEDINTEGRATIONS_API OtaTaskExecutionSummary(Aws::Utils::Json::JsonView jsonValue);
33 AWS_IOTMANAGEDINTEGRATIONS_API OtaTaskExecutionSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IOTMANAGEDINTEGRATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline long long GetExecutionNumber() const { return m_executionNumber; }
41 inline bool ExecutionNumberHasBeenSet() const { return m_executionNumberHasBeenSet; }
42 inline void SetExecutionNumber(long long value) {
43 m_executionNumberHasBeenSet = true;
44 m_executionNumber = value;
45 }
47 SetExecutionNumber(value);
48 return *this;
49 }
51
53
57 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
58 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
59 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
60 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
61 m_lastUpdatedAtHasBeenSet = true;
62 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
63 }
64 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
65 OtaTaskExecutionSummary& WithLastUpdatedAt(LastUpdatedAtT&& value) {
66 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::Utils::DateTime& GetQueuedAt() const { return m_queuedAt; }
77 inline bool QueuedAtHasBeenSet() const { return m_queuedAtHasBeenSet; }
78 template <typename QueuedAtT = Aws::Utils::DateTime>
79 void SetQueuedAt(QueuedAtT&& value) {
80 m_queuedAtHasBeenSet = true;
81 m_queuedAt = std::forward<QueuedAtT>(value);
82 }
83 template <typename QueuedAtT = Aws::Utils::DateTime>
85 SetQueuedAt(std::forward<QueuedAtT>(value));
86 return *this;
87 }
89
91
95 inline int GetRetryAttempt() const { return m_retryAttempt; }
96 inline bool RetryAttemptHasBeenSet() const { return m_retryAttemptHasBeenSet; }
97 inline void SetRetryAttempt(int value) {
98 m_retryAttemptHasBeenSet = true;
99 m_retryAttempt = value;
100 }
102 SetRetryAttempt(value);
103 return *this;
104 }
106
108
112 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
113 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
114 template <typename StartedAtT = Aws::Utils::DateTime>
115 void SetStartedAt(StartedAtT&& value) {
116 m_startedAtHasBeenSet = true;
117 m_startedAt = std::forward<StartedAtT>(value);
118 }
119 template <typename StartedAtT = Aws::Utils::DateTime>
121 SetStartedAt(std::forward<StartedAtT>(value));
122 return *this;
123 }
125
127
130 inline OtaTaskExecutionStatus GetStatus() const { return m_status; }
131 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
133 m_statusHasBeenSet = true;
134 m_status = value;
135 }
137 SetStatus(value);
138 return *this;
139 }
141 private:
142 long long m_executionNumber{0};
143
144 Aws::Utils::DateTime m_lastUpdatedAt{};
145
146 Aws::Utils::DateTime m_queuedAt{};
147
148 int m_retryAttempt{0};
149
150 Aws::Utils::DateTime m_startedAt{};
151
153 bool m_executionNumberHasBeenSet = false;
154 bool m_lastUpdatedAtHasBeenSet = false;
155 bool m_queuedAtHasBeenSet = false;
156 bool m_retryAttemptHasBeenSet = false;
157 bool m_startedAtHasBeenSet = false;
158 bool m_statusHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace IoTManagedIntegrations
163} // namespace Aws
OtaTaskExecutionSummary & WithStatus(OtaTaskExecutionStatus value)
AWS_IOTMANAGEDINTEGRATIONS_API OtaTaskExecutionSummary()=default
OtaTaskExecutionSummary & WithQueuedAt(QueuedAtT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API OtaTaskExecutionSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTMANAGEDINTEGRATIONS_API OtaTaskExecutionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
OtaTaskExecutionSummary & WithStartedAt(StartedAtT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
OtaTaskExecutionSummary & WithLastUpdatedAt(LastUpdatedAtT &&value)
OtaTaskExecutionSummary & WithExecutionNumber(long long value)
Aws::Utils::Json::JsonValue JsonValue