AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
PublishLayerVersionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lambda/Lambda_EXPORTS.h>
11#include <aws/lambda/model/Architecture.h>
12#include <aws/lambda/model/LayerVersionContentOutput.h>
13#include <aws/lambda/model/Runtime.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace Lambda {
27namespace Model {
29 public:
30 AWS_LAMBDA_API PublishLayerVersionResult() = default;
33
35
38 inline const LayerVersionContentOutput& GetContent() const { return m_content; }
39 template <typename ContentT = LayerVersionContentOutput>
40 void SetContent(ContentT&& value) {
41 m_contentHasBeenSet = true;
42 m_content = std::forward<ContentT>(value);
43 }
44 template <typename ContentT = LayerVersionContentOutput>
46 SetContent(std::forward<ContentT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetLayerArn() const { return m_layerArn; }
56 template <typename LayerArnT = Aws::String>
57 void SetLayerArn(LayerArnT&& value) {
58 m_layerArnHasBeenSet = true;
59 m_layerArn = std::forward<LayerArnT>(value);
60 }
61 template <typename LayerArnT = Aws::String>
63 SetLayerArn(std::forward<LayerArnT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetLayerVersionArn() const { return m_layerVersionArn; }
73 template <typename LayerVersionArnT = Aws::String>
74 void SetLayerVersionArn(LayerVersionArnT&& value) {
75 m_layerVersionArnHasBeenSet = true;
76 m_layerVersionArn = std::forward<LayerVersionArnT>(value);
77 }
78 template <typename LayerVersionArnT = Aws::String>
80 SetLayerVersionArn(std::forward<LayerVersionArnT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetDescription() const { return m_description; }
90 template <typename DescriptionT = Aws::String>
91 void SetDescription(DescriptionT&& value) {
92 m_descriptionHasBeenSet = true;
93 m_description = std::forward<DescriptionT>(value);
94 }
95 template <typename DescriptionT = Aws::String>
97 SetDescription(std::forward<DescriptionT>(value));
98 return *this;
99 }
101
103
108 inline const Aws::String& GetCreatedDate() const { return m_createdDate; }
109 template <typename CreatedDateT = Aws::String>
110 void SetCreatedDate(CreatedDateT&& value) {
111 m_createdDateHasBeenSet = true;
112 m_createdDate = std::forward<CreatedDateT>(value);
113 }
114 template <typename CreatedDateT = Aws::String>
116 SetCreatedDate(std::forward<CreatedDateT>(value));
117 return *this;
118 }
120
122
125 inline long long GetVersion() const { return m_version; }
126 inline void SetVersion(long long value) {
127 m_versionHasBeenSet = true;
128 m_version = value;
129 }
130 inline PublishLayerVersionResult& WithVersion(long long value) {
131 SetVersion(value);
132 return *this;
133 }
135
137
146 inline const Aws::Vector<Runtime>& GetCompatibleRuntimes() const { return m_compatibleRuntimes; }
147 template <typename CompatibleRuntimesT = Aws::Vector<Runtime>>
148 void SetCompatibleRuntimes(CompatibleRuntimesT&& value) {
149 m_compatibleRuntimesHasBeenSet = true;
150 m_compatibleRuntimes = std::forward<CompatibleRuntimesT>(value);
151 }
152 template <typename CompatibleRuntimesT = Aws::Vector<Runtime>>
153 PublishLayerVersionResult& WithCompatibleRuntimes(CompatibleRuntimesT&& value) {
154 SetCompatibleRuntimes(std::forward<CompatibleRuntimesT>(value));
155 return *this;
156 }
158 m_compatibleRuntimesHasBeenSet = true;
159 m_compatibleRuntimes.push_back(value);
160 return *this;
161 }
163
165
168 inline const Aws::String& GetLicenseInfo() const { return m_licenseInfo; }
169 template <typename LicenseInfoT = Aws::String>
170 void SetLicenseInfo(LicenseInfoT&& value) {
171 m_licenseInfoHasBeenSet = true;
172 m_licenseInfo = std::forward<LicenseInfoT>(value);
173 }
174 template <typename LicenseInfoT = Aws::String>
176 SetLicenseInfo(std::forward<LicenseInfoT>(value));
177 return *this;
178 }
180
182
187 inline const Aws::Vector<Architecture>& GetCompatibleArchitectures() const { return m_compatibleArchitectures; }
188 template <typename CompatibleArchitecturesT = Aws::Vector<Architecture>>
189 void SetCompatibleArchitectures(CompatibleArchitecturesT&& value) {
190 m_compatibleArchitecturesHasBeenSet = true;
191 m_compatibleArchitectures = std::forward<CompatibleArchitecturesT>(value);
192 }
193 template <typename CompatibleArchitecturesT = Aws::Vector<Architecture>>
194 PublishLayerVersionResult& WithCompatibleArchitectures(CompatibleArchitecturesT&& value) {
195 SetCompatibleArchitectures(std::forward<CompatibleArchitecturesT>(value));
196 return *this;
197 }
199 m_compatibleArchitecturesHasBeenSet = true;
200 m_compatibleArchitectures.push_back(value);
201 return *this;
202 }
204
206
207 inline const Aws::String& GetRequestId() const { return m_requestId; }
208 template <typename RequestIdT = Aws::String>
209 void SetRequestId(RequestIdT&& value) {
210 m_requestIdHasBeenSet = true;
211 m_requestId = std::forward<RequestIdT>(value);
212 }
213 template <typename RequestIdT = Aws::String>
215 SetRequestId(std::forward<RequestIdT>(value));
216 return *this;
217 }
219 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
220
221 private:
223
224 Aws::String m_layerArn;
225
226 Aws::String m_layerVersionArn;
227
228 Aws::String m_description;
229
230 Aws::String m_createdDate;
231
232 long long m_version{0};
233
234 Aws::Vector<Runtime> m_compatibleRuntimes;
235
236 Aws::String m_licenseInfo;
237
238 Aws::Vector<Architecture> m_compatibleArchitectures;
239
240 Aws::String m_requestId;
241 Aws::Http::HttpResponseCode m_HttpResponseCode;
242 bool m_contentHasBeenSet = false;
243 bool m_layerArnHasBeenSet = false;
244 bool m_layerVersionArnHasBeenSet = false;
245 bool m_descriptionHasBeenSet = false;
246 bool m_createdDateHasBeenSet = false;
247 bool m_versionHasBeenSet = false;
248 bool m_compatibleRuntimesHasBeenSet = false;
249 bool m_licenseInfoHasBeenSet = false;
250 bool m_compatibleArchitecturesHasBeenSet = false;
251 bool m_requestIdHasBeenSet = false;
252};
253
254} // namespace Model
255} // namespace Lambda
256} // namespace Aws
const LayerVersionContentOutput & GetContent() const
AWS_LAMBDA_API PublishLayerVersionResult()=default
const Aws::Vector< Runtime > & GetCompatibleRuntimes() const
PublishLayerVersionResult & WithDescription(DescriptionT &&value)
void SetCompatibleRuntimes(CompatibleRuntimesT &&value)
PublishLayerVersionResult & WithCreatedDate(CreatedDateT &&value)
PublishLayerVersionResult & WithLayerArn(LayerArnT &&value)
PublishLayerVersionResult & WithLayerVersionArn(LayerVersionArnT &&value)
PublishLayerVersionResult & WithCompatibleArchitectures(CompatibleArchitecturesT &&value)
PublishLayerVersionResult & WithVersion(long long value)
AWS_LAMBDA_API PublishLayerVersionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
PublishLayerVersionResult & WithCompatibleRuntimes(CompatibleRuntimesT &&value)
PublishLayerVersionResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
PublishLayerVersionResult & AddCompatibleArchitectures(Architecture value)
AWS_LAMBDA_API PublishLayerVersionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
PublishLayerVersionResult & AddCompatibleRuntimes(Runtime value)
void SetCompatibleArchitectures(CompatibleArchitecturesT &&value)
PublishLayerVersionResult & WithContent(ContentT &&value)
const Aws::Vector< Architecture > & GetCompatibleArchitectures() const
PublishLayerVersionResult & WithLicenseInfo(LicenseInfoT &&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