AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
PublishLayerVersionResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lambda/Lambda_EXPORTS.h>
10#include <aws/lambda/model/Architecture.h>
11#include <aws/lambda/model/LayerVersionContentOutput.h>
12#include <aws/lambda/model/Runtime.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Lambda {
26namespace Model {
28 public:
29 AWS_LAMBDA_API PublishLayerVersionResult() = default;
32
34
37 inline const LayerVersionContentOutput& GetContent() const { return m_content; }
38 template <typename ContentT = LayerVersionContentOutput>
39 void SetContent(ContentT&& value) {
40 m_contentHasBeenSet = true;
41 m_content = std::forward<ContentT>(value);
42 }
43 template <typename ContentT = LayerVersionContentOutput>
45 SetContent(std::forward<ContentT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetLayerArn() const { return m_layerArn; }
55 template <typename LayerArnT = Aws::String>
56 void SetLayerArn(LayerArnT&& value) {
57 m_layerArnHasBeenSet = true;
58 m_layerArn = std::forward<LayerArnT>(value);
59 }
60 template <typename LayerArnT = Aws::String>
62 SetLayerArn(std::forward<LayerArnT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetLayerVersionArn() const { return m_layerVersionArn; }
72 template <typename LayerVersionArnT = Aws::String>
73 void SetLayerVersionArn(LayerVersionArnT&& value) {
74 m_layerVersionArnHasBeenSet = true;
75 m_layerVersionArn = std::forward<LayerVersionArnT>(value);
76 }
77 template <typename LayerVersionArnT = Aws::String>
79 SetLayerVersionArn(std::forward<LayerVersionArnT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetDescription() const { return m_description; }
89 template <typename DescriptionT = Aws::String>
90 void SetDescription(DescriptionT&& value) {
91 m_descriptionHasBeenSet = true;
92 m_description = std::forward<DescriptionT>(value);
93 }
94 template <typename DescriptionT = Aws::String>
96 SetDescription(std::forward<DescriptionT>(value));
97 return *this;
98 }
100
102
107 inline const Aws::String& GetCreatedDate() const { return m_createdDate; }
108 template <typename CreatedDateT = Aws::String>
109 void SetCreatedDate(CreatedDateT&& value) {
110 m_createdDateHasBeenSet = true;
111 m_createdDate = std::forward<CreatedDateT>(value);
112 }
113 template <typename CreatedDateT = Aws::String>
115 SetCreatedDate(std::forward<CreatedDateT>(value));
116 return *this;
117 }
119
121
124 inline long long GetVersion() const { return m_version; }
125 inline void SetVersion(long long value) {
126 m_versionHasBeenSet = true;
127 m_version = value;
128 }
129 inline PublishLayerVersionResult& WithVersion(long long value) {
130 SetVersion(value);
131 return *this;
132 }
134
136
145 inline const Aws::Vector<Runtime>& GetCompatibleRuntimes() const { return m_compatibleRuntimes; }
146 template <typename CompatibleRuntimesT = Aws::Vector<Runtime>>
147 void SetCompatibleRuntimes(CompatibleRuntimesT&& value) {
148 m_compatibleRuntimesHasBeenSet = true;
149 m_compatibleRuntimes = std::forward<CompatibleRuntimesT>(value);
150 }
151 template <typename CompatibleRuntimesT = Aws::Vector<Runtime>>
152 PublishLayerVersionResult& WithCompatibleRuntimes(CompatibleRuntimesT&& value) {
153 SetCompatibleRuntimes(std::forward<CompatibleRuntimesT>(value));
154 return *this;
155 }
157 m_compatibleRuntimesHasBeenSet = true;
158 m_compatibleRuntimes.push_back(value);
159 return *this;
160 }
162
164
167 inline const Aws::String& GetLicenseInfo() const { return m_licenseInfo; }
168 template <typename LicenseInfoT = Aws::String>
169 void SetLicenseInfo(LicenseInfoT&& value) {
170 m_licenseInfoHasBeenSet = true;
171 m_licenseInfo = std::forward<LicenseInfoT>(value);
172 }
173 template <typename LicenseInfoT = Aws::String>
175 SetLicenseInfo(std::forward<LicenseInfoT>(value));
176 return *this;
177 }
179
181
186 inline const Aws::Vector<Architecture>& GetCompatibleArchitectures() const { return m_compatibleArchitectures; }
187 template <typename CompatibleArchitecturesT = Aws::Vector<Architecture>>
188 void SetCompatibleArchitectures(CompatibleArchitecturesT&& value) {
189 m_compatibleArchitecturesHasBeenSet = true;
190 m_compatibleArchitectures = std::forward<CompatibleArchitecturesT>(value);
191 }
192 template <typename CompatibleArchitecturesT = Aws::Vector<Architecture>>
193 PublishLayerVersionResult& WithCompatibleArchitectures(CompatibleArchitecturesT&& value) {
194 SetCompatibleArchitectures(std::forward<CompatibleArchitecturesT>(value));
195 return *this;
196 }
198 m_compatibleArchitecturesHasBeenSet = true;
199 m_compatibleArchitectures.push_back(value);
200 return *this;
201 }
203
205
206 inline const Aws::String& GetRequestId() const { return m_requestId; }
207 template <typename RequestIdT = Aws::String>
208 void SetRequestId(RequestIdT&& value) {
209 m_requestIdHasBeenSet = true;
210 m_requestId = std::forward<RequestIdT>(value);
211 }
212 template <typename RequestIdT = Aws::String>
214 SetRequestId(std::forward<RequestIdT>(value));
215 return *this;
216 }
218 private:
220
221 Aws::String m_layerArn;
222
223 Aws::String m_layerVersionArn;
224
225 Aws::String m_description;
226
227 Aws::String m_createdDate;
228
229 long long m_version{0};
230
231 Aws::Vector<Runtime> m_compatibleRuntimes;
232
233 Aws::String m_licenseInfo;
234
235 Aws::Vector<Architecture> m_compatibleArchitectures;
236
237 Aws::String m_requestId;
238 bool m_contentHasBeenSet = false;
239 bool m_layerArnHasBeenSet = false;
240 bool m_layerVersionArnHasBeenSet = false;
241 bool m_descriptionHasBeenSet = false;
242 bool m_createdDateHasBeenSet = false;
243 bool m_versionHasBeenSet = false;
244 bool m_compatibleRuntimesHasBeenSet = false;
245 bool m_licenseInfoHasBeenSet = false;
246 bool m_compatibleArchitecturesHasBeenSet = false;
247 bool m_requestIdHasBeenSet = false;
248};
249
250} // namespace Model
251} // namespace Lambda
252} // 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)
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