AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
InstalledComponent.h
1
6#pragma once
7#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/greengrassv2/model/InstalledComponentLifecycleState.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace GreengrassV2
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_GREENGRASSV2_API InstalledComponent() = default;
39 AWS_GREENGRASSV2_API InstalledComponent(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetComponentName() const { return m_componentName; }
49 inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; }
50 template<typename ComponentNameT = Aws::String>
51 void SetComponentName(ComponentNameT&& value) { m_componentNameHasBeenSet = true; m_componentName = std::forward<ComponentNameT>(value); }
52 template<typename ComponentNameT = Aws::String>
53 InstalledComponent& WithComponentName(ComponentNameT&& value) { SetComponentName(std::forward<ComponentNameT>(value)); return *this;}
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) { m_componentVersionHasBeenSet = true; m_componentVersion = std::forward<ComponentVersionT>(value); }
64 template<typename ComponentVersionT = Aws::String>
65 InstalledComponent& WithComponentVersion(ComponentVersionT&& value) { SetComponentVersion(std::forward<ComponentVersionT>(value)); return *this;}
67
69
72 inline InstalledComponentLifecycleState GetLifecycleState() const { return m_lifecycleState; }
73 inline bool LifecycleStateHasBeenSet() const { return m_lifecycleStateHasBeenSet; }
74 inline void SetLifecycleState(InstalledComponentLifecycleState value) { m_lifecycleStateHasBeenSet = true; m_lifecycleState = value; }
77
79
83 inline const Aws::String& GetLifecycleStateDetails() const { return m_lifecycleStateDetails; }
84 inline bool LifecycleStateDetailsHasBeenSet() const { return m_lifecycleStateDetailsHasBeenSet; }
85 template<typename LifecycleStateDetailsT = Aws::String>
86 void SetLifecycleStateDetails(LifecycleStateDetailsT&& value) { m_lifecycleStateDetailsHasBeenSet = true; m_lifecycleStateDetails = std::forward<LifecycleStateDetailsT>(value); }
87 template<typename LifecycleStateDetailsT = Aws::String>
88 InstalledComponent& WithLifecycleStateDetails(LifecycleStateDetailsT&& value) { SetLifecycleStateDetails(std::forward<LifecycleStateDetailsT>(value)); return *this;}
90
92
95 inline bool GetIsRoot() const { return m_isRoot; }
96 inline bool IsRootHasBeenSet() const { return m_isRootHasBeenSet; }
97 inline void SetIsRoot(bool value) { m_isRootHasBeenSet = true; m_isRoot = value; }
98 inline InstalledComponent& WithIsRoot(bool value) { SetIsRoot(value); return *this;}
100
102
109 inline const Aws::Utils::DateTime& GetLastStatusChangeTimestamp() const { return m_lastStatusChangeTimestamp; }
110 inline bool LastStatusChangeTimestampHasBeenSet() const { return m_lastStatusChangeTimestampHasBeenSet; }
111 template<typename LastStatusChangeTimestampT = Aws::Utils::DateTime>
112 void SetLastStatusChangeTimestamp(LastStatusChangeTimestampT&& value) { m_lastStatusChangeTimestampHasBeenSet = true; m_lastStatusChangeTimestamp = std::forward<LastStatusChangeTimestampT>(value); }
113 template<typename LastStatusChangeTimestampT = Aws::Utils::DateTime>
114 InstalledComponent& WithLastStatusChangeTimestamp(LastStatusChangeTimestampT&& value) { SetLastStatusChangeTimestamp(std::forward<LastStatusChangeTimestampT>(value)); return *this;}
116
118
123 inline const Aws::Utils::DateTime& GetLastReportedTimestamp() const { return m_lastReportedTimestamp; }
124 inline bool LastReportedTimestampHasBeenSet() const { return m_lastReportedTimestampHasBeenSet; }
125 template<typename LastReportedTimestampT = Aws::Utils::DateTime>
126 void SetLastReportedTimestamp(LastReportedTimestampT&& value) { m_lastReportedTimestampHasBeenSet = true; m_lastReportedTimestamp = std::forward<LastReportedTimestampT>(value); }
127 template<typename LastReportedTimestampT = Aws::Utils::DateTime>
128 InstalledComponent& WithLastReportedTimestamp(LastReportedTimestampT&& value) { SetLastReportedTimestamp(std::forward<LastReportedTimestampT>(value)); return *this;}
130
132
140 inline const Aws::String& GetLastInstallationSource() const { return m_lastInstallationSource; }
141 inline bool LastInstallationSourceHasBeenSet() const { return m_lastInstallationSourceHasBeenSet; }
142 template<typename LastInstallationSourceT = Aws::String>
143 void SetLastInstallationSource(LastInstallationSourceT&& value) { m_lastInstallationSourceHasBeenSet = true; m_lastInstallationSource = std::forward<LastInstallationSourceT>(value); }
144 template<typename LastInstallationSourceT = Aws::String>
145 InstalledComponent& WithLastInstallationSource(LastInstallationSourceT&& value) { SetLastInstallationSource(std::forward<LastInstallationSourceT>(value)); return *this;}
147
149
156 inline const Aws::Vector<Aws::String>& GetLifecycleStatusCodes() const { return m_lifecycleStatusCodes; }
157 inline bool LifecycleStatusCodesHasBeenSet() const { return m_lifecycleStatusCodesHasBeenSet; }
158 template<typename LifecycleStatusCodesT = Aws::Vector<Aws::String>>
159 void SetLifecycleStatusCodes(LifecycleStatusCodesT&& value) { m_lifecycleStatusCodesHasBeenSet = true; m_lifecycleStatusCodes = std::forward<LifecycleStatusCodesT>(value); }
160 template<typename LifecycleStatusCodesT = Aws::Vector<Aws::String>>
161 InstalledComponent& WithLifecycleStatusCodes(LifecycleStatusCodesT&& value) { SetLifecycleStatusCodes(std::forward<LifecycleStatusCodesT>(value)); return *this;}
162 template<typename LifecycleStatusCodesT = Aws::String>
163 InstalledComponent& AddLifecycleStatusCodes(LifecycleStatusCodesT&& value) { m_lifecycleStatusCodesHasBeenSet = true; m_lifecycleStatusCodes.emplace_back(std::forward<LifecycleStatusCodesT>(value)); return *this; }
165 private:
166
167 Aws::String m_componentName;
168 bool m_componentNameHasBeenSet = false;
169
170 Aws::String m_componentVersion;
171 bool m_componentVersionHasBeenSet = false;
172
174 bool m_lifecycleStateHasBeenSet = false;
175
176 Aws::String m_lifecycleStateDetails;
177 bool m_lifecycleStateDetailsHasBeenSet = false;
178
179 bool m_isRoot{false};
180 bool m_isRootHasBeenSet = false;
181
182 Aws::Utils::DateTime m_lastStatusChangeTimestamp{};
183 bool m_lastStatusChangeTimestampHasBeenSet = false;
184
185 Aws::Utils::DateTime m_lastReportedTimestamp{};
186 bool m_lastReportedTimestampHasBeenSet = false;
187
188 Aws::String m_lastInstallationSource;
189 bool m_lastInstallationSourceHasBeenSet = false;
190
191 Aws::Vector<Aws::String> m_lifecycleStatusCodes;
192 bool m_lifecycleStatusCodesHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace GreengrassV2
197} // 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