AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
RuntimeInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lambda-core/LambdaCore_EXPORTS.h>
9#include <aws/lambda-core/model/RuntimeReleaseLifecycle.h>
10#include <aws/lambda-core/model/RuntimeState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LambdaCore {
22namespace Model {
23
31 public:
32 AWS_LAMBDACORE_API RuntimeInfo() = default;
33 AWS_LAMBDACORE_API RuntimeInfo(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LAMBDACORE_API RuntimeInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_LAMBDACORE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetArn() const { return m_arn; }
42 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
43 template <typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) {
45 m_arnHasBeenSet = true;
46 m_arn = std::forward<ArnT>(value);
47 }
48 template <typename ArnT = Aws::String>
49 RuntimeInfo& WithArn(ArnT&& value) {
50 SetArn(std::forward<ArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
67 RuntimeInfo& WithName(NameT&& value) {
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template <typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) {
81 m_descriptionHasBeenSet = true;
82 m_description = std::forward<DescriptionT>(value);
83 }
84 template <typename DescriptionT = Aws::String>
85 RuntimeInfo& WithDescription(DescriptionT&& value) {
86 SetDescription(std::forward<DescriptionT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetLicenseInfo() const { return m_licenseInfo; }
96 inline bool LicenseInfoHasBeenSet() const { return m_licenseInfoHasBeenSet; }
97 template <typename LicenseInfoT = Aws::String>
98 void SetLicenseInfo(LicenseInfoT&& value) {
99 m_licenseInfoHasBeenSet = true;
100 m_licenseInfo = std::forward<LicenseInfoT>(value);
101 }
102 template <typename LicenseInfoT = Aws::String>
103 RuntimeInfo& WithLicenseInfo(LicenseInfoT&& value) {
104 SetLicenseInfo(std::forward<LicenseInfoT>(value));
105 return *this;
106 }
108
110
114 inline const RuntimeReleaseLifecycle& GetReleaseLifecycle() const { return m_releaseLifecycle; }
115 inline bool ReleaseLifecycleHasBeenSet() const { return m_releaseLifecycleHasBeenSet; }
116 template <typename ReleaseLifecycleT = RuntimeReleaseLifecycle>
117 void SetReleaseLifecycle(ReleaseLifecycleT&& value) {
118 m_releaseLifecycleHasBeenSet = true;
119 m_releaseLifecycle = std::forward<ReleaseLifecycleT>(value);
120 }
121 template <typename ReleaseLifecycleT = RuntimeReleaseLifecycle>
122 RuntimeInfo& WithReleaseLifecycle(ReleaseLifecycleT&& value) {
123 SetReleaseLifecycle(std::forward<ReleaseLifecycleT>(value));
124 return *this;
125 }
127
129
132 inline RuntimeState GetState() const { return m_state; }
133 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
134 inline void SetState(RuntimeState value) {
135 m_stateHasBeenSet = true;
136 m_state = value;
137 }
139 SetState(value);
140 return *this;
141 }
143
145
149 inline const Aws::String& GetPendingDeletionAt() const { return m_pendingDeletionAt; }
150 inline bool PendingDeletionAtHasBeenSet() const { return m_pendingDeletionAtHasBeenSet; }
151 template <typename PendingDeletionAtT = Aws::String>
152 void SetPendingDeletionAt(PendingDeletionAtT&& value) {
153 m_pendingDeletionAtHasBeenSet = true;
154 m_pendingDeletionAt = std::forward<PendingDeletionAtT>(value);
155 }
156 template <typename PendingDeletionAtT = Aws::String>
157 RuntimeInfo& WithPendingDeletionAt(PendingDeletionAtT&& value) {
158 SetPendingDeletionAt(std::forward<PendingDeletionAtT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::String& GetCreated() const { return m_created; }
168 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
169 template <typename CreatedT = Aws::String>
170 void SetCreated(CreatedT&& value) {
171 m_createdHasBeenSet = true;
172 m_created = std::forward<CreatedT>(value);
173 }
174 template <typename CreatedT = Aws::String>
175 RuntimeInfo& WithCreated(CreatedT&& value) {
176 SetCreated(std::forward<CreatedT>(value));
177 return *this;
178 }
180
182
185 inline const Aws::String& GetLastModified() const { return m_lastModified; }
186 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
187 template <typename LastModifiedT = Aws::String>
188 void SetLastModified(LastModifiedT&& value) {
189 m_lastModifiedHasBeenSet = true;
190 m_lastModified = std::forward<LastModifiedT>(value);
191 }
192 template <typename LastModifiedT = Aws::String>
193 RuntimeInfo& WithLastModified(LastModifiedT&& value) {
194 SetLastModified(std::forward<LastModifiedT>(value));
195 return *this;
196 }
198 private:
199 Aws::String m_arn;
200
201 Aws::String m_name;
202
203 Aws::String m_description;
204
205 Aws::String m_licenseInfo;
206
207 RuntimeReleaseLifecycle m_releaseLifecycle;
208
210
211 Aws::String m_pendingDeletionAt;
212
213 Aws::String m_created;
214
215 Aws::String m_lastModified;
216 bool m_arnHasBeenSet = false;
217 bool m_nameHasBeenSet = false;
218 bool m_descriptionHasBeenSet = false;
219 bool m_licenseInfoHasBeenSet = false;
220 bool m_releaseLifecycleHasBeenSet = false;
221 bool m_stateHasBeenSet = false;
222 bool m_pendingDeletionAtHasBeenSet = false;
223 bool m_createdHasBeenSet = false;
224 bool m_lastModifiedHasBeenSet = false;
225};
226
227} // namespace Model
228} // namespace LambdaCore
229} // namespace Aws
const Aws::String & GetLastModified() const
RuntimeInfo & WithDescription(DescriptionT &&value)
Definition RuntimeInfo.h:85
RuntimeInfo & WithCreated(CreatedT &&value)
void SetDescription(DescriptionT &&value)
Definition RuntimeInfo.h:80
void SetLicenseInfo(LicenseInfoT &&value)
Definition RuntimeInfo.h:98
AWS_LAMBDACORE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetArn() const
Definition RuntimeInfo.h:41
const Aws::String & GetDescription() const
Definition RuntimeInfo.h:77
RuntimeInfo & WithLastModified(LastModifiedT &&value)
void SetCreated(CreatedT &&value)
RuntimeInfo & WithPendingDeletionAt(PendingDeletionAtT &&value)
RuntimeInfo & WithLicenseInfo(LicenseInfoT &&value)
const Aws::String & GetPendingDeletionAt() const
RuntimeInfo & WithReleaseLifecycle(ReleaseLifecycleT &&value)
void SetPendingDeletionAt(PendingDeletionAtT &&value)
const RuntimeReleaseLifecycle & GetReleaseLifecycle() const
RuntimeInfo & WithName(NameT &&value)
Definition RuntimeInfo.h:67
const Aws::String & GetCreated() const
const Aws::String & GetLicenseInfo() const
Definition RuntimeInfo.h:95
RuntimeInfo & WithArn(ArnT &&value)
Definition RuntimeInfo.h:49
void SetLastModified(LastModifiedT &&value)
const Aws::String & GetName() const
Definition RuntimeInfo.h:59
AWS_LAMBDACORE_API RuntimeInfo(Aws::Utils::Json::JsonView jsonValue)
void SetReleaseLifecycle(ReleaseLifecycleT &&value)
void SetState(RuntimeState value)
AWS_LAMBDACORE_API RuntimeInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
RuntimeInfo & WithState(RuntimeState value)
AWS_LAMBDACORE_API RuntimeInfo()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue