AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetComponentName(const Aws::String& value) { m_componentNameHasBeenSet = true; m_componentName = value; }
51 inline void SetComponentName(Aws::String&& value) { m_componentNameHasBeenSet = true; m_componentName = std::move(value); }
52 inline void SetComponentName(const char* value) { m_componentNameHasBeenSet = true; m_componentName.assign(value); }
53 inline InstalledComponent& WithComponentName(const Aws::String& value) { SetComponentName(value); return *this;}
54 inline InstalledComponent& WithComponentName(Aws::String&& value) { SetComponentName(std::move(value)); return *this;}
55 inline InstalledComponent& WithComponentName(const char* value) { SetComponentName(value); return *this;}
57
59
62 inline const Aws::String& GetComponentVersion() const{ return m_componentVersion; }
63 inline bool ComponentVersionHasBeenSet() const { return m_componentVersionHasBeenSet; }
64 inline void SetComponentVersion(const Aws::String& value) { m_componentVersionHasBeenSet = true; m_componentVersion = value; }
65 inline void SetComponentVersion(Aws::String&& value) { m_componentVersionHasBeenSet = true; m_componentVersion = std::move(value); }
66 inline void SetComponentVersion(const char* value) { m_componentVersionHasBeenSet = true; m_componentVersion.assign(value); }
67 inline InstalledComponent& WithComponentVersion(const Aws::String& value) { SetComponentVersion(value); return *this;}
68 inline InstalledComponent& WithComponentVersion(Aws::String&& value) { SetComponentVersion(std::move(value)); return *this;}
69 inline InstalledComponent& WithComponentVersion(const char* value) { SetComponentVersion(value); return *this;}
71
73
76 inline const InstalledComponentLifecycleState& GetLifecycleState() const{ return m_lifecycleState; }
77 inline bool LifecycleStateHasBeenSet() const { return m_lifecycleStateHasBeenSet; }
78 inline void SetLifecycleState(const InstalledComponentLifecycleState& value) { m_lifecycleStateHasBeenSet = true; m_lifecycleState = value; }
79 inline void SetLifecycleState(InstalledComponentLifecycleState&& value) { m_lifecycleStateHasBeenSet = true; m_lifecycleState = std::move(value); }
83
85
89 inline const Aws::String& GetLifecycleStateDetails() const{ return m_lifecycleStateDetails; }
90 inline bool LifecycleStateDetailsHasBeenSet() const { return m_lifecycleStateDetailsHasBeenSet; }
91 inline void SetLifecycleStateDetails(const Aws::String& value) { m_lifecycleStateDetailsHasBeenSet = true; m_lifecycleStateDetails = value; }
92 inline void SetLifecycleStateDetails(Aws::String&& value) { m_lifecycleStateDetailsHasBeenSet = true; m_lifecycleStateDetails = std::move(value); }
93 inline void SetLifecycleStateDetails(const char* value) { m_lifecycleStateDetailsHasBeenSet = true; m_lifecycleStateDetails.assign(value); }
95 inline InstalledComponent& WithLifecycleStateDetails(Aws::String&& value) { SetLifecycleStateDetails(std::move(value)); return *this;}
96 inline InstalledComponent& WithLifecycleStateDetails(const char* value) { SetLifecycleStateDetails(value); return *this;}
98
100
103 inline bool GetIsRoot() const{ return m_isRoot; }
104 inline bool IsRootHasBeenSet() const { return m_isRootHasBeenSet; }
105 inline void SetIsRoot(bool value) { m_isRootHasBeenSet = true; m_isRoot = value; }
106 inline InstalledComponent& WithIsRoot(bool value) { SetIsRoot(value); return *this;}
108
110
117 inline const Aws::Utils::DateTime& GetLastStatusChangeTimestamp() const{ return m_lastStatusChangeTimestamp; }
118 inline bool LastStatusChangeTimestampHasBeenSet() const { return m_lastStatusChangeTimestampHasBeenSet; }
119 inline void SetLastStatusChangeTimestamp(const Aws::Utils::DateTime& value) { m_lastStatusChangeTimestampHasBeenSet = true; m_lastStatusChangeTimestamp = value; }
120 inline void SetLastStatusChangeTimestamp(Aws::Utils::DateTime&& value) { m_lastStatusChangeTimestampHasBeenSet = true; m_lastStatusChangeTimestamp = std::move(value); }
124
126
131 inline const Aws::Utils::DateTime& GetLastReportedTimestamp() const{ return m_lastReportedTimestamp; }
132 inline bool LastReportedTimestampHasBeenSet() const { return m_lastReportedTimestampHasBeenSet; }
133 inline void SetLastReportedTimestamp(const Aws::Utils::DateTime& value) { m_lastReportedTimestampHasBeenSet = true; m_lastReportedTimestamp = value; }
134 inline void SetLastReportedTimestamp(Aws::Utils::DateTime&& value) { m_lastReportedTimestampHasBeenSet = true; m_lastReportedTimestamp = std::move(value); }
138
140
148 inline const Aws::String& GetLastInstallationSource() const{ return m_lastInstallationSource; }
149 inline bool LastInstallationSourceHasBeenSet() const { return m_lastInstallationSourceHasBeenSet; }
150 inline void SetLastInstallationSource(const Aws::String& value) { m_lastInstallationSourceHasBeenSet = true; m_lastInstallationSource = value; }
151 inline void SetLastInstallationSource(Aws::String&& value) { m_lastInstallationSourceHasBeenSet = true; m_lastInstallationSource = std::move(value); }
152 inline void SetLastInstallationSource(const char* value) { m_lastInstallationSourceHasBeenSet = true; m_lastInstallationSource.assign(value); }
154 inline InstalledComponent& WithLastInstallationSource(Aws::String&& value) { SetLastInstallationSource(std::move(value)); return *this;}
155 inline InstalledComponent& WithLastInstallationSource(const char* value) { SetLastInstallationSource(value); return *this;}
157
159
166 inline const Aws::Vector<Aws::String>& GetLifecycleStatusCodes() const{ return m_lifecycleStatusCodes; }
167 inline bool LifecycleStatusCodesHasBeenSet() const { return m_lifecycleStatusCodesHasBeenSet; }
168 inline void SetLifecycleStatusCodes(const Aws::Vector<Aws::String>& value) { m_lifecycleStatusCodesHasBeenSet = true; m_lifecycleStatusCodes = value; }
169 inline void SetLifecycleStatusCodes(Aws::Vector<Aws::String>&& value) { m_lifecycleStatusCodesHasBeenSet = true; m_lifecycleStatusCodes = std::move(value); }
172 inline InstalledComponent& AddLifecycleStatusCodes(const Aws::String& value) { m_lifecycleStatusCodesHasBeenSet = true; m_lifecycleStatusCodes.push_back(value); return *this; }
173 inline InstalledComponent& AddLifecycleStatusCodes(Aws::String&& value) { m_lifecycleStatusCodesHasBeenSet = true; m_lifecycleStatusCodes.push_back(std::move(value)); return *this; }
174 inline InstalledComponent& AddLifecycleStatusCodes(const char* value) { m_lifecycleStatusCodesHasBeenSet = true; m_lifecycleStatusCodes.push_back(value); return *this; }
176 private:
177
178 Aws::String m_componentName;
179 bool m_componentNameHasBeenSet = false;
180
181 Aws::String m_componentVersion;
182 bool m_componentVersionHasBeenSet = false;
183
184 InstalledComponentLifecycleState m_lifecycleState;
185 bool m_lifecycleStateHasBeenSet = false;
186
187 Aws::String m_lifecycleStateDetails;
188 bool m_lifecycleStateDetailsHasBeenSet = false;
189
190 bool m_isRoot;
191 bool m_isRootHasBeenSet = false;
192
193 Aws::Utils::DateTime m_lastStatusChangeTimestamp;
194 bool m_lastStatusChangeTimestampHasBeenSet = false;
195
196 Aws::Utils::DateTime m_lastReportedTimestamp;
197 bool m_lastReportedTimestampHasBeenSet = false;
198
199 Aws::String m_lastInstallationSource;
200 bool m_lastInstallationSourceHasBeenSet = false;
201
202 Aws::Vector<Aws::String> m_lifecycleStatusCodes;
203 bool m_lifecycleStatusCodesHasBeenSet = false;
204 };
205
206} // namespace Model
207} // namespace GreengrassV2
208} // namespace Aws
const Aws::String & GetLifecycleStateDetails() const
InstalledComponent & WithLastInstallationSource(const Aws::String &value)
InstalledComponent & WithComponentName(Aws::String &&value)
AWS_GREENGRASSV2_API InstalledComponent & operator=(Aws::Utils::Json::JsonView jsonValue)
InstalledComponent & WithLifecycleState(InstalledComponentLifecycleState &&value)
InstalledComponent & WithLastInstallationSource(const char *value)
void SetLastReportedTimestamp(const Aws::Utils::DateTime &value)
InstalledComponent & WithLastStatusChangeTimestamp(Aws::Utils::DateTime &&value)
void SetComponentName(const Aws::String &value)
InstalledComponent & AddLifecycleStatusCodes(const char *value)
void SetLifecycleStatusCodes(const Aws::Vector< Aws::String > &value)
InstalledComponent & WithComponentName(const char *value)
InstalledComponent & WithComponentName(const Aws::String &value)
void SetLifecycleStateDetails(const Aws::String &value)
InstalledComponent & AddLifecycleStatusCodes(const Aws::String &value)
void SetLastStatusChangeTimestamp(const Aws::Utils::DateTime &value)
void SetComponentVersion(const Aws::String &value)
InstalledComponent & WithLifecycleStatusCodes(const Aws::Vector< Aws::String > &value)
InstalledComponent & WithComponentVersion(const Aws::String &value)
InstalledComponent & WithLifecycleStateDetails(const Aws::String &value)
const Aws::String & GetLastInstallationSource() const
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
InstalledComponent & WithLastReportedTimestamp(const Aws::Utils::DateTime &value)
void SetLifecycleState(InstalledComponentLifecycleState &&value)
void SetLifecycleState(const InstalledComponentLifecycleState &value)
InstalledComponent & WithLifecycleStateDetails(const char *value)
InstalledComponent & WithLifecycleStateDetails(Aws::String &&value)
InstalledComponent & WithComponentVersion(const char *value)
InstalledComponent & WithLifecycleState(const InstalledComponentLifecycleState &value)
void SetLifecycleStatusCodes(Aws::Vector< Aws::String > &&value)
const InstalledComponentLifecycleState & GetLifecycleState() const
InstalledComponent & WithLastStatusChangeTimestamp(const Aws::Utils::DateTime &value)
InstalledComponent & WithLifecycleStatusCodes(Aws::Vector< Aws::String > &&value)
const Aws::Utils::DateTime & GetLastStatusChangeTimestamp() const
InstalledComponent & WithLastInstallationSource(Aws::String &&value)
InstalledComponent & AddLifecycleStatusCodes(Aws::String &&value)
const Aws::Vector< Aws::String > & GetLifecycleStatusCodes() const
void SetLastInstallationSource(const Aws::String &value)
InstalledComponent & WithIsRoot(bool value)
void SetLastStatusChangeTimestamp(Aws::Utils::DateTime &&value)
InstalledComponent & WithLastReportedTimestamp(Aws::Utils::DateTime &&value)
AWS_GREENGRASSV2_API InstalledComponent(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastReportedTimestamp() const
InstalledComponent & WithComponentVersion(Aws::String &&value)
void SetLastReportedTimestamp(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue