AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
OtaTaskSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
10#include <aws/iot-managed-integrations/model/OtaStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoTManagedIntegrations {
22namespace Model {
23
31 public:
32 AWS_IOTMANAGEDINTEGRATIONS_API OtaTaskSummary() = default;
33 AWS_IOTMANAGEDINTEGRATIONS_API OtaTaskSummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IOTMANAGEDINTEGRATIONS_API OtaTaskSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IOTMANAGEDINTEGRATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetTaskId() const { return m_taskId; }
42 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
43 template <typename TaskIdT = Aws::String>
44 void SetTaskId(TaskIdT&& value) {
45 m_taskIdHasBeenSet = true;
46 m_taskId = std::forward<TaskIdT>(value);
47 }
48 template <typename TaskIdT = Aws::String>
49 OtaTaskSummary& WithTaskId(TaskIdT&& value) {
50 SetTaskId(std::forward<TaskIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetTaskArn() const { return m_taskArn; }
60 inline bool TaskArnHasBeenSet() const { return m_taskArnHasBeenSet; }
61 template <typename TaskArnT = Aws::String>
62 void SetTaskArn(TaskArnT&& value) {
63 m_taskArnHasBeenSet = true;
64 m_taskArn = std::forward<TaskArnT>(value);
65 }
66 template <typename TaskArnT = Aws::String>
67 OtaTaskSummary& WithTaskArn(TaskArnT&& value) {
68 SetTaskArn(std::forward<TaskArnT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
78 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
79 template <typename CreatedAtT = Aws::Utils::DateTime>
80 void SetCreatedAt(CreatedAtT&& value) {
81 m_createdAtHasBeenSet = true;
82 m_createdAt = std::forward<CreatedAtT>(value);
83 }
84 template <typename CreatedAtT = Aws::Utils::DateTime>
85 OtaTaskSummary& WithCreatedAt(CreatedAtT&& value) {
86 SetCreatedAt(std::forward<CreatedAtT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
97 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
98 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
99 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
100 m_lastUpdatedAtHasBeenSet = true;
101 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
102 }
103 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
104 OtaTaskSummary& WithLastUpdatedAt(LastUpdatedAtT&& value) {
105 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetTaskConfigurationId() const { return m_taskConfigurationId; }
115 inline bool TaskConfigurationIdHasBeenSet() const { return m_taskConfigurationIdHasBeenSet; }
116 template <typename TaskConfigurationIdT = Aws::String>
117 void SetTaskConfigurationId(TaskConfigurationIdT&& value) {
118 m_taskConfigurationIdHasBeenSet = true;
119 m_taskConfigurationId = std::forward<TaskConfigurationIdT>(value);
120 }
121 template <typename TaskConfigurationIdT = Aws::String>
122 OtaTaskSummary& WithTaskConfigurationId(TaskConfigurationIdT&& value) {
123 SetTaskConfigurationId(std::forward<TaskConfigurationIdT>(value));
124 return *this;
125 }
127
129
132 inline OtaStatus GetStatus() const { return m_status; }
133 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
134 inline void SetStatus(OtaStatus value) {
135 m_statusHasBeenSet = true;
136 m_status = value;
137 }
139 SetStatus(value);
140 return *this;
141 }
143 private:
144 Aws::String m_taskId;
145
146 Aws::String m_taskArn;
147
148 Aws::Utils::DateTime m_createdAt{};
149
150 Aws::Utils::DateTime m_lastUpdatedAt{};
151
152 Aws::String m_taskConfigurationId;
153
155 bool m_taskIdHasBeenSet = false;
156 bool m_taskArnHasBeenSet = false;
157 bool m_createdAtHasBeenSet = false;
158 bool m_lastUpdatedAtHasBeenSet = false;
159 bool m_taskConfigurationIdHasBeenSet = false;
160 bool m_statusHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace IoTManagedIntegrations
165} // namespace Aws
OtaTaskSummary & WithTaskId(TaskIdT &&value)
OtaTaskSummary & WithLastUpdatedAt(LastUpdatedAtT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API OtaTaskSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTMANAGEDINTEGRATIONS_API OtaTaskSummary()=default
OtaTaskSummary & WithCreatedAt(CreatedAtT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API OtaTaskSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedAt() const
OtaTaskSummary & WithTaskArn(TaskArnT &&value)
OtaTaskSummary & WithStatus(OtaStatus value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
OtaTaskSummary & WithTaskConfigurationId(TaskConfigurationIdT &&value)
void SetTaskConfigurationId(TaskConfigurationIdT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue