AWS SDK for C++

AWS SDK for C++ Version 1.11.613

Loading...
Searching...
No Matches
OtaTaskExecutionSummary.h
1
6#pragma once
7#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/iot-managed-integrations/model/OtaTaskExecutionStatus.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoTManagedIntegrations
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IOTMANAGEDINTEGRATIONS_API OtaTaskExecutionSummary() = default;
37 AWS_IOTMANAGEDINTEGRATIONS_API OtaTaskExecutionSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IOTMANAGEDINTEGRATIONS_API OtaTaskExecutionSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTMANAGEDINTEGRATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline long long GetExecutionNumber() const { return m_executionNumber; }
47 inline bool ExecutionNumberHasBeenSet() const { return m_executionNumberHasBeenSet; }
48 inline void SetExecutionNumber(long long value) { m_executionNumberHasBeenSet = true; m_executionNumber = value; }
49 inline OtaTaskExecutionSummary& WithExecutionNumber(long long value) { SetExecutionNumber(value); return *this;}
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) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
61 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
62 OtaTaskExecutionSummary& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
64
66
70 inline const Aws::Utils::DateTime& GetQueuedAt() const { return m_queuedAt; }
71 inline bool QueuedAtHasBeenSet() const { return m_queuedAtHasBeenSet; }
72 template<typename QueuedAtT = Aws::Utils::DateTime>
73 void SetQueuedAt(QueuedAtT&& value) { m_queuedAtHasBeenSet = true; m_queuedAt = std::forward<QueuedAtT>(value); }
74 template<typename QueuedAtT = Aws::Utils::DateTime>
75 OtaTaskExecutionSummary& WithQueuedAt(QueuedAtT&& value) { SetQueuedAt(std::forward<QueuedAtT>(value)); return *this;}
77
79
83 inline int GetRetryAttempt() const { return m_retryAttempt; }
84 inline bool RetryAttemptHasBeenSet() const { return m_retryAttemptHasBeenSet; }
85 inline void SetRetryAttempt(int value) { m_retryAttemptHasBeenSet = true; m_retryAttempt = value; }
86 inline OtaTaskExecutionSummary& WithRetryAttempt(int value) { SetRetryAttempt(value); return *this;}
88
90
94 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
95 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
96 template<typename StartedAtT = Aws::Utils::DateTime>
97 void SetStartedAt(StartedAtT&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::forward<StartedAtT>(value); }
98 template<typename StartedAtT = Aws::Utils::DateTime>
99 OtaTaskExecutionSummary& WithStartedAt(StartedAtT&& value) { SetStartedAt(std::forward<StartedAtT>(value)); return *this;}
101
103
106 inline OtaTaskExecutionStatus GetStatus() const { return m_status; }
107 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
108 inline void SetStatus(OtaTaskExecutionStatus value) { m_statusHasBeenSet = true; m_status = value; }
111 private:
112
113 long long m_executionNumber{0};
114 bool m_executionNumberHasBeenSet = false;
115
116 Aws::Utils::DateTime m_lastUpdatedAt{};
117 bool m_lastUpdatedAtHasBeenSet = false;
118
119 Aws::Utils::DateTime m_queuedAt{};
120 bool m_queuedAtHasBeenSet = false;
121
122 int m_retryAttempt{0};
123 bool m_retryAttemptHasBeenSet = false;
124
125 Aws::Utils::DateTime m_startedAt{};
126 bool m_startedAtHasBeenSet = false;
127
129 bool m_statusHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace IoTManagedIntegrations
134} // 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