AWS SDK for C++  1.9.20
AWS SDK for C++
GetLayerVersionResult.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Json
22 {
23  class JsonValue;
24 } // namespace Json
25 } // namespace Utils
26 namespace Lambda
27 {
28 namespace Model
29 {
31  {
32  public:
36 
37 
41  inline const LayerVersionContentOutput& GetContent() const{ return m_content; }
42 
46  inline void SetContent(const LayerVersionContentOutput& value) { m_content = value; }
47 
51  inline void SetContent(LayerVersionContentOutput&& value) { m_content = std::move(value); }
52 
56  inline GetLayerVersionResult& WithContent(const LayerVersionContentOutput& value) { SetContent(value); return *this;}
57 
61  inline GetLayerVersionResult& WithContent(LayerVersionContentOutput&& value) { SetContent(std::move(value)); return *this;}
62 
63 
67  inline const Aws::String& GetLayerArn() const{ return m_layerArn; }
68 
72  inline void SetLayerArn(const Aws::String& value) { m_layerArn = value; }
73 
77  inline void SetLayerArn(Aws::String&& value) { m_layerArn = std::move(value); }
78 
82  inline void SetLayerArn(const char* value) { m_layerArn.assign(value); }
83 
87  inline GetLayerVersionResult& WithLayerArn(const Aws::String& value) { SetLayerArn(value); return *this;}
88 
92  inline GetLayerVersionResult& WithLayerArn(Aws::String&& value) { SetLayerArn(std::move(value)); return *this;}
93 
97  inline GetLayerVersionResult& WithLayerArn(const char* value) { SetLayerArn(value); return *this;}
98 
99 
103  inline const Aws::String& GetLayerVersionArn() const{ return m_layerVersionArn; }
104 
108  inline void SetLayerVersionArn(const Aws::String& value) { m_layerVersionArn = value; }
109 
113  inline void SetLayerVersionArn(Aws::String&& value) { m_layerVersionArn = std::move(value); }
114 
118  inline void SetLayerVersionArn(const char* value) { m_layerVersionArn.assign(value); }
119 
123  inline GetLayerVersionResult& WithLayerVersionArn(const Aws::String& value) { SetLayerVersionArn(value); return *this;}
124 
128  inline GetLayerVersionResult& WithLayerVersionArn(Aws::String&& value) { SetLayerVersionArn(std::move(value)); return *this;}
129 
133  inline GetLayerVersionResult& WithLayerVersionArn(const char* value) { SetLayerVersionArn(value); return *this;}
134 
135 
139  inline const Aws::String& GetDescription() const{ return m_description; }
140 
144  inline void SetDescription(const Aws::String& value) { m_description = value; }
145 
149  inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
150 
154  inline void SetDescription(const char* value) { m_description.assign(value); }
155 
159  inline GetLayerVersionResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
160 
164  inline GetLayerVersionResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
165 
169  inline GetLayerVersionResult& WithDescription(const char* value) { SetDescription(value); return *this;}
170 
171 
177  inline const Aws::String& GetCreatedDate() const{ return m_createdDate; }
178 
184  inline void SetCreatedDate(const Aws::String& value) { m_createdDate = value; }
185 
191  inline void SetCreatedDate(Aws::String&& value) { m_createdDate = std::move(value); }
192 
198  inline void SetCreatedDate(const char* value) { m_createdDate.assign(value); }
199 
205  inline GetLayerVersionResult& WithCreatedDate(const Aws::String& value) { SetCreatedDate(value); return *this;}
206 
212  inline GetLayerVersionResult& WithCreatedDate(Aws::String&& value) { SetCreatedDate(std::move(value)); return *this;}
213 
219  inline GetLayerVersionResult& WithCreatedDate(const char* value) { SetCreatedDate(value); return *this;}
220 
221 
225  inline long long GetVersion() const{ return m_version; }
226 
230  inline void SetVersion(long long value) { m_version = value; }
231 
235  inline GetLayerVersionResult& WithVersion(long long value) { SetVersion(value); return *this;}
236 
237 
241  inline const Aws::Vector<Runtime>& GetCompatibleRuntimes() const{ return m_compatibleRuntimes; }
242 
246  inline void SetCompatibleRuntimes(const Aws::Vector<Runtime>& value) { m_compatibleRuntimes = value; }
247 
251  inline void SetCompatibleRuntimes(Aws::Vector<Runtime>&& value) { m_compatibleRuntimes = std::move(value); }
252 
256  inline GetLayerVersionResult& WithCompatibleRuntimes(const Aws::Vector<Runtime>& value) { SetCompatibleRuntimes(value); return *this;}
257 
261  inline GetLayerVersionResult& WithCompatibleRuntimes(Aws::Vector<Runtime>&& value) { SetCompatibleRuntimes(std::move(value)); return *this;}
262 
266  inline GetLayerVersionResult& AddCompatibleRuntimes(const Runtime& value) { m_compatibleRuntimes.push_back(value); return *this; }
267 
271  inline GetLayerVersionResult& AddCompatibleRuntimes(Runtime&& value) { m_compatibleRuntimes.push_back(std::move(value)); return *this; }
272 
273 
277  inline const Aws::String& GetLicenseInfo() const{ return m_licenseInfo; }
278 
282  inline void SetLicenseInfo(const Aws::String& value) { m_licenseInfo = value; }
283 
287  inline void SetLicenseInfo(Aws::String&& value) { m_licenseInfo = std::move(value); }
288 
292  inline void SetLicenseInfo(const char* value) { m_licenseInfo.assign(value); }
293 
297  inline GetLayerVersionResult& WithLicenseInfo(const Aws::String& value) { SetLicenseInfo(value); return *this;}
298 
302  inline GetLayerVersionResult& WithLicenseInfo(Aws::String&& value) { SetLicenseInfo(std::move(value)); return *this;}
303 
307  inline GetLayerVersionResult& WithLicenseInfo(const char* value) { SetLicenseInfo(value); return *this;}
308 
309  private:
310 
311  LayerVersionContentOutput m_content;
312 
313  Aws::String m_layerArn;
314 
315  Aws::String m_layerVersionArn;
316 
317  Aws::String m_description;
318 
319  Aws::String m_createdDate;
320 
321  long long m_version;
322 
323  Aws::Vector<Runtime> m_compatibleRuntimes;
324 
325  Aws::String m_licenseInfo;
326  };
327 
328 } // namespace Model
329 } // namespace Lambda
330 } // namespace Aws
Aws::Lambda::Model::GetLayerVersionResult::GetDescription
const Aws::String & GetDescription() const
Definition: GetLayerVersionResult.h:139
Aws::Lambda::Model::GetLayerVersionResult::WithCreatedDate
GetLayerVersionResult & WithCreatedDate(Aws::String &&value)
Definition: GetLayerVersionResult.h:212
Aws::Lambda::Model::GetLayerVersionResult::WithCompatibleRuntimes
GetLayerVersionResult & WithCompatibleRuntimes(const Aws::Vector< Runtime > &value)
Definition: GetLayerVersionResult.h:256
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Lambda::Model::GetLayerVersionResult::WithLayerVersionArn
GetLayerVersionResult & WithLayerVersionArn(const char *value)
Definition: GetLayerVersionResult.h:133
Aws::Lambda::Model::GetLayerVersionResult::SetLayerArn
void SetLayerArn(const char *value)
Definition: GetLayerVersionResult.h:82
Aws::Lambda::Model::GetLayerVersionResult::SetDescription
void SetDescription(const char *value)
Definition: GetLayerVersionResult.h:154
Aws::Lambda::Model::GetLayerVersionResult::WithContent
GetLayerVersionResult & WithContent(const LayerVersionContentOutput &value)
Definition: GetLayerVersionResult.h:56
Aws::Lambda::Model::GetLayerVersionResult::SetCreatedDate
void SetCreatedDate(const char *value)
Definition: GetLayerVersionResult.h:198
Aws::Lambda::Model::GetLayerVersionResult::GetLayerArn
const Aws::String & GetLayerArn() const
Definition: GetLayerVersionResult.h:67
Aws::Lambda::Model::GetLayerVersionResult::WithLayerVersionArn
GetLayerVersionResult & WithLayerVersionArn(Aws::String &&value)
Definition: GetLayerVersionResult.h:128
Aws::Lambda::Model::GetLayerVersionResult::SetLayerVersionArn
void SetLayerVersionArn(const Aws::String &value)
Definition: GetLayerVersionResult.h:108
Aws::Lambda::Model::GetLayerVersionResult::SetLayerArn
void SetLayerArn(const Aws::String &value)
Definition: GetLayerVersionResult.h:72
Aws::Lambda::Model::GetLayerVersionResult::WithLayerVersionArn
GetLayerVersionResult & WithLayerVersionArn(const Aws::String &value)
Definition: GetLayerVersionResult.h:123
Aws::Lambda::Model::GetLayerVersionResult::GetCreatedDate
const Aws::String & GetCreatedDate() const
Definition: GetLayerVersionResult.h:177
Aws::Lambda::Model::GetLayerVersionResult::WithVersion
GetLayerVersionResult & WithVersion(long long value)
Definition: GetLayerVersionResult.h:235
Aws::Lambda::Model::GetLayerVersionResult::operator=
GetLayerVersionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Lambda::Model::LayerVersionContentOutput
Definition: LayerVersionContentOutput.h:34
Aws::Lambda::Model::GetLayerVersionResult::SetCompatibleRuntimes
void SetCompatibleRuntimes(const Aws::Vector< Runtime > &value)
Definition: GetLayerVersionResult.h:246
Aws::Lambda::Model::GetLayerVersionResult::GetContent
const LayerVersionContentOutput & GetContent() const
Definition: GetLayerVersionResult.h:41
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Lambda::Model::GetLayerVersionResult::AddCompatibleRuntimes
GetLayerVersionResult & AddCompatibleRuntimes(Runtime &&value)
Definition: GetLayerVersionResult.h:271
Aws::Lambda::Model::GetLayerVersionResult::WithLayerArn
GetLayerVersionResult & WithLayerArn(const char *value)
Definition: GetLayerVersionResult.h:97
Aws::Lambda::Model::GetLayerVersionResult::WithLicenseInfo
GetLayerVersionResult & WithLicenseInfo(const Aws::String &value)
Definition: GetLayerVersionResult.h:297
AWSVector.h
Aws::Lambda::Model::GetLayerVersionResult::WithCreatedDate
GetLayerVersionResult & WithCreatedDate(const char *value)
Definition: GetLayerVersionResult.h:219
Aws::Lambda::Model::Runtime
Runtime
Definition: Runtime.h:17
Aws::Lambda::Model::GetLayerVersionResult::WithDescription
GetLayerVersionResult & WithDescription(Aws::String &&value)
Definition: GetLayerVersionResult.h:164
AWS_LAMBDA_API
#define AWS_LAMBDA_API
Definition: Lambda_EXPORTS.h:28
Aws::Lambda::Model::GetLayerVersionResult::AddCompatibleRuntimes
GetLayerVersionResult & AddCompatibleRuntimes(const Runtime &value)
Definition: GetLayerVersionResult.h:266
Aws::Lambda::Model::GetLayerVersionResult::WithDescription
GetLayerVersionResult & WithDescription(const char *value)
Definition: GetLayerVersionResult.h:169
Aws::Lambda::Model::GetLayerVersionResult::WithCompatibleRuntimes
GetLayerVersionResult & WithCompatibleRuntimes(Aws::Vector< Runtime > &&value)
Definition: GetLayerVersionResult.h:261
Aws::Lambda::Model::GetLayerVersionResult::SetLayerArn
void SetLayerArn(Aws::String &&value)
Definition: GetLayerVersionResult.h:77
Aws::Lambda::Model::GetLayerVersionResult::WithDescription
GetLayerVersionResult & WithDescription(const Aws::String &value)
Definition: GetLayerVersionResult.h:159
Aws::Lambda::Model::GetLayerVersionResult::SetContent
void SetContent(LayerVersionContentOutput &&value)
Definition: GetLayerVersionResult.h:51
Aws::Lambda::Model::GetLayerVersionResult::SetCompatibleRuntimes
void SetCompatibleRuntimes(Aws::Vector< Runtime > &&value)
Definition: GetLayerVersionResult.h:251
AWSString.h
Aws::Lambda::Model::GetLayerVersionResult::WithContent
GetLayerVersionResult & WithContent(LayerVersionContentOutput &&value)
Definition: GetLayerVersionResult.h:61
Aws::Lambda::Model::GetLayerVersionResult
Definition: GetLayerVersionResult.h:31
Aws::Lambda::Model::GetLayerVersionResult::GetLayerVersionArn
const Aws::String & GetLayerVersionArn() const
Definition: GetLayerVersionResult.h:103
Aws::Lambda::Model::GetLayerVersionResult::SetDescription
void SetDescription(const Aws::String &value)
Definition: GetLayerVersionResult.h:144
Aws::Lambda::Model::GetLayerVersionResult::SetContent
void SetContent(const LayerVersionContentOutput &value)
Definition: GetLayerVersionResult.h:46
Aws::Lambda::Model::GetLayerVersionResult::WithLicenseInfo
GetLayerVersionResult & WithLicenseInfo(const char *value)
Definition: GetLayerVersionResult.h:307
Aws::Lambda::Model::GetLayerVersionResult::SetLicenseInfo
void SetLicenseInfo(Aws::String &&value)
Definition: GetLayerVersionResult.h:287
Aws::Lambda::Model::GetLayerVersionResult::WithLayerArn
GetLayerVersionResult & WithLayerArn(const Aws::String &value)
Definition: GetLayerVersionResult.h:87
Runtime.h
Aws::Lambda::Model::GetLayerVersionResult::GetLicenseInfo
const Aws::String & GetLicenseInfo() const
Definition: GetLayerVersionResult.h:277
Aws::Lambda::Model::GetLayerVersionResult::GetVersion
long long GetVersion() const
Definition: GetLayerVersionResult.h:225
Aws::Lambda::Model::GetLayerVersionResult::GetLayerVersionResult
GetLayerVersionResult()
Aws::Lambda::Model::GetLayerVersionResult::SetDescription
void SetDescription(Aws::String &&value)
Definition: GetLayerVersionResult.h:149
Aws::Lambda::Model::GetLayerVersionResult::SetLayerVersionArn
void SetLayerVersionArn(Aws::String &&value)
Definition: GetLayerVersionResult.h:113
Aws::Lambda::Model::GetLayerVersionResult::WithLicenseInfo
GetLayerVersionResult & WithLicenseInfo(Aws::String &&value)
Definition: GetLayerVersionResult.h:302
Aws::Lambda::Model::GetLayerVersionResult::SetCreatedDate
void SetCreatedDate(Aws::String &&value)
Definition: GetLayerVersionResult.h:191
Aws::CodePipeline::Model::ExecutorType::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Lambda::Model::GetLayerVersionResult::SetCreatedDate
void SetCreatedDate(const Aws::String &value)
Definition: GetLayerVersionResult.h:184
Aws::Lambda::Model::GetLayerVersionResult::SetLicenseInfo
void SetLicenseInfo(const Aws::String &value)
Definition: GetLayerVersionResult.h:282
Aws::Lambda::Model::GetLayerVersionResult::GetCompatibleRuntimes
const Aws::Vector< Runtime > & GetCompatibleRuntimes() const
Definition: GetLayerVersionResult.h:241
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lambda::Model::GetLayerVersionResult::WithCreatedDate
GetLayerVersionResult & WithCreatedDate(const Aws::String &value)
Definition: GetLayerVersionResult.h:205
Aws::Lambda::Model::GetLayerVersionResult::SetLicenseInfo
void SetLicenseInfo(const char *value)
Definition: GetLayerVersionResult.h:292
Aws::Lambda::Model::GetLayerVersionResult::SetLayerVersionArn
void SetLayerVersionArn(const char *value)
Definition: GetLayerVersionResult.h:118
Aws::Lambda::Model::GetLayerVersionResult::GetLayerVersionResult
GetLayerVersionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Lambda::Model::GetLayerVersionResult::SetVersion
void SetVersion(long long value)
Definition: GetLayerVersionResult.h:230
Lambda_EXPORTS.h
LayerVersionContentOutput.h
Aws::Lambda::Model::GetLayerVersionResult::WithLayerArn
GetLayerVersionResult & WithLayerArn(Aws::String &&value)
Definition: GetLayerVersionResult.h:92