AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
InstalledComponent.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
11#include <aws/greengrassv2/model/InstalledComponentLifecycleState.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GreengrassV2 {
23namespace Model {
24
32 public:
33 AWS_GREENGRASSV2_API InstalledComponent() = default;
34 AWS_GREENGRASSV2_API InstalledComponent(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetComponentName() const { return m_componentName; }
43 inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; }
44 template <typename ComponentNameT = Aws::String>
45 void SetComponentName(ComponentNameT&& value) {
46 m_componentNameHasBeenSet = true;
47 m_componentName = std::forward<ComponentNameT>(value);
48 }
49 template <typename ComponentNameT = Aws::String>
50 InstalledComponent& WithComponentName(ComponentNameT&& value) {
51 SetComponentName(std::forward<ComponentNameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetComponentVersion() const { return m_componentVersion; }
61 inline bool ComponentVersionHasBeenSet() const { return m_componentVersionHasBeenSet; }
62 template <typename ComponentVersionT = Aws::String>
63 void SetComponentVersion(ComponentVersionT&& value) {
64 m_componentVersionHasBeenSet = true;
65 m_componentVersion = std::forward<ComponentVersionT>(value);
66 }
67 template <typename ComponentVersionT = Aws::String>
68 InstalledComponent& WithComponentVersion(ComponentVersionT&& value) {
69 SetComponentVersion(std::forward<ComponentVersionT>(value));
70 return *this;
71 }
73
75
78 inline InstalledComponentLifecycleState GetLifecycleState() const { return m_lifecycleState; }
79 inline bool LifecycleStateHasBeenSet() const { return m_lifecycleStateHasBeenSet; }
81 m_lifecycleStateHasBeenSet = true;
82 m_lifecycleState = value;
83 }
85 SetLifecycleState(value);
86 return *this;
87 }
89
91
95 inline const Aws::String& GetLifecycleStateDetails() const { return m_lifecycleStateDetails; }
96 inline bool LifecycleStateDetailsHasBeenSet() const { return m_lifecycleStateDetailsHasBeenSet; }
97 template <typename LifecycleStateDetailsT = Aws::String>
98 void SetLifecycleStateDetails(LifecycleStateDetailsT&& value) {
99 m_lifecycleStateDetailsHasBeenSet = true;
100 m_lifecycleStateDetails = std::forward<LifecycleStateDetailsT>(value);
101 }
102 template <typename LifecycleStateDetailsT = Aws::String>
103 InstalledComponent& WithLifecycleStateDetails(LifecycleStateDetailsT&& value) {
104 SetLifecycleStateDetails(std::forward<LifecycleStateDetailsT>(value));
105 return *this;
106 }
108
110
113 inline bool GetIsRoot() const { return m_isRoot; }
114 inline bool IsRootHasBeenSet() const { return m_isRootHasBeenSet; }
115 inline void SetIsRoot(bool value) {
116 m_isRootHasBeenSet = true;
117 m_isRoot = value;
118 }
119 inline InstalledComponent& WithIsRoot(bool value) {
120 SetIsRoot(value);
121 return *this;
122 }
124
126
133 inline const Aws::Utils::DateTime& GetLastStatusChangeTimestamp() const { return m_lastStatusChangeTimestamp; }
134 inline bool LastStatusChangeTimestampHasBeenSet() const { return m_lastStatusChangeTimestampHasBeenSet; }
135 template <typename LastStatusChangeTimestampT = Aws::Utils::DateTime>
136 void SetLastStatusChangeTimestamp(LastStatusChangeTimestampT&& value) {
137 m_lastStatusChangeTimestampHasBeenSet = true;
138 m_lastStatusChangeTimestamp = std::forward<LastStatusChangeTimestampT>(value);
139 }
140 template <typename LastStatusChangeTimestampT = Aws::Utils::DateTime>
141 InstalledComponent& WithLastStatusChangeTimestamp(LastStatusChangeTimestampT&& value) {
142 SetLastStatusChangeTimestamp(std::forward<LastStatusChangeTimestampT>(value));
143 return *this;
144 }
146
148
153 inline const Aws::Utils::DateTime& GetLastReportedTimestamp() const { return m_lastReportedTimestamp; }
154 inline bool LastReportedTimestampHasBeenSet() const { return m_lastReportedTimestampHasBeenSet; }
155 template <typename LastReportedTimestampT = Aws::Utils::DateTime>
156 void SetLastReportedTimestamp(LastReportedTimestampT&& value) {
157 m_lastReportedTimestampHasBeenSet = true;
158 m_lastReportedTimestamp = std::forward<LastReportedTimestampT>(value);
159 }
160 template <typename LastReportedTimestampT = Aws::Utils::DateTime>
161 InstalledComponent& WithLastReportedTimestamp(LastReportedTimestampT&& value) {
162 SetLastReportedTimestamp(std::forward<LastReportedTimestampT>(value));
163 return *this;
164 }
166
168
176 inline const Aws::String& GetLastInstallationSource() const { return m_lastInstallationSource; }
177 inline bool LastInstallationSourceHasBeenSet() const { return m_lastInstallationSourceHasBeenSet; }
178 template <typename LastInstallationSourceT = Aws::String>
179 void SetLastInstallationSource(LastInstallationSourceT&& value) {
180 m_lastInstallationSourceHasBeenSet = true;
181 m_lastInstallationSource = std::forward<LastInstallationSourceT>(value);
182 }
183 template <typename LastInstallationSourceT = Aws::String>
184 InstalledComponent& WithLastInstallationSource(LastInstallationSourceT&& value) {
185 SetLastInstallationSource(std::forward<LastInstallationSourceT>(value));
186 return *this;
187 }
189
191
198 inline const Aws::Vector<Aws::String>& GetLifecycleStatusCodes() const { return m_lifecycleStatusCodes; }
199 inline bool LifecycleStatusCodesHasBeenSet() const { return m_lifecycleStatusCodesHasBeenSet; }
200 template <typename LifecycleStatusCodesT = Aws::Vector<Aws::String>>
201 void SetLifecycleStatusCodes(LifecycleStatusCodesT&& value) {
202 m_lifecycleStatusCodesHasBeenSet = true;
203 m_lifecycleStatusCodes = std::forward<LifecycleStatusCodesT>(value);
204 }
205 template <typename LifecycleStatusCodesT = Aws::Vector<Aws::String>>
206 InstalledComponent& WithLifecycleStatusCodes(LifecycleStatusCodesT&& value) {
207 SetLifecycleStatusCodes(std::forward<LifecycleStatusCodesT>(value));
208 return *this;
209 }
210 template <typename LifecycleStatusCodesT = Aws::String>
211 InstalledComponent& AddLifecycleStatusCodes(LifecycleStatusCodesT&& value) {
212 m_lifecycleStatusCodesHasBeenSet = true;
213 m_lifecycleStatusCodes.emplace_back(std::forward<LifecycleStatusCodesT>(value));
214 return *this;
215 }
217 private:
218 Aws::String m_componentName;
219
220 Aws::String m_componentVersion;
221
223
224 Aws::String m_lifecycleStateDetails;
225
226 bool m_isRoot{false};
227
228 Aws::Utils::DateTime m_lastStatusChangeTimestamp{};
229
230 Aws::Utils::DateTime m_lastReportedTimestamp{};
231
232 Aws::String m_lastInstallationSource;
233
234 Aws::Vector<Aws::String> m_lifecycleStatusCodes;
235 bool m_componentNameHasBeenSet = false;
236 bool m_componentVersionHasBeenSet = false;
237 bool m_lifecycleStateHasBeenSet = false;
238 bool m_lifecycleStateDetailsHasBeenSet = false;
239 bool m_isRootHasBeenSet = false;
240 bool m_lastStatusChangeTimestampHasBeenSet = false;
241 bool m_lastReportedTimestampHasBeenSet = false;
242 bool m_lastInstallationSourceHasBeenSet = false;
243 bool m_lifecycleStatusCodesHasBeenSet = false;
244};
245
246} // namespace Model
247} // namespace GreengrassV2
248} // namespace Aws
const Aws::String & GetLifecycleStateDetails() const
void SetLastInstallationSource(LastInstallationSourceT &&value)
AWS_GREENGRASSV2_API InstalledComponent & operator=(Aws::Utils::Json::JsonView jsonValue)
InstalledComponent & AddLifecycleStatusCodes(LifecycleStatusCodesT &&value)
void SetComponentVersion(ComponentVersionT &&value)
InstalledComponent & WithLifecycleStatusCodes(LifecycleStatusCodesT &&value)
InstalledComponent & WithLifecycleStateDetails(LifecycleStateDetailsT &&value)
InstalledComponent & WithLifecycleState(InstalledComponentLifecycleState value)
InstalledComponent & WithLastStatusChangeTimestamp(LastStatusChangeTimestampT &&value)
const Aws::String & GetLastInstallationSource() const
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
InstalledComponent & WithLastReportedTimestamp(LastReportedTimestampT &&value)
void SetLifecycleStateDetails(LifecycleStateDetailsT &&value)
InstalledComponentLifecycleState GetLifecycleState() const
void SetLastStatusChangeTimestamp(LastStatusChangeTimestampT &&value)
InstalledComponent & WithComponentVersion(ComponentVersionT &&value)
InstalledComponent & WithComponentName(ComponentNameT &&value)
const Aws::Utils::DateTime & GetLastStatusChangeTimestamp() const
const Aws::Vector< Aws::String > & GetLifecycleStatusCodes() const
InstalledComponent & WithIsRoot(bool value)
InstalledComponent & WithLastInstallationSource(LastInstallationSourceT &&value)
void SetLifecycleStatusCodes(LifecycleStatusCodesT &&value)
void SetLastReportedTimestamp(LastReportedTimestampT &&value)
AWS_GREENGRASSV2_API InstalledComponent(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastReportedTimestamp() const
void SetLifecycleState(InstalledComponentLifecycleState value)
AWS_GREENGRASSV2_API InstalledComponent()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue