AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetLayerVersionResult.h
1
6#pragma once
7#include <aws/lambda/Lambda_EXPORTS.h>
8#include <aws/lambda/model/LayerVersionContentOutput.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/lambda/model/Runtime.h>
12#include <aws/lambda/model/Architecture.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace Lambda
28{
29namespace Model
30{
32 {
33 public:
34 AWS_LAMBDA_API GetLayerVersionResult() = default;
37
38
40
43 inline const LayerVersionContentOutput& GetContent() const { return m_content; }
44 template<typename ContentT = LayerVersionContentOutput>
45 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
46 template<typename ContentT = LayerVersionContentOutput>
47 GetLayerVersionResult& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
49
51
54 inline const Aws::String& GetLayerArn() const { return m_layerArn; }
55 template<typename LayerArnT = Aws::String>
56 void SetLayerArn(LayerArnT&& value) { m_layerArnHasBeenSet = true; m_layerArn = std::forward<LayerArnT>(value); }
57 template<typename LayerArnT = Aws::String>
58 GetLayerVersionResult& WithLayerArn(LayerArnT&& value) { SetLayerArn(std::forward<LayerArnT>(value)); return *this;}
60
62
65 inline const Aws::String& GetLayerVersionArn() const { return m_layerVersionArn; }
66 template<typename LayerVersionArnT = Aws::String>
67 void SetLayerVersionArn(LayerVersionArnT&& value) { m_layerVersionArnHasBeenSet = true; m_layerVersionArn = std::forward<LayerVersionArnT>(value); }
68 template<typename LayerVersionArnT = Aws::String>
69 GetLayerVersionResult& WithLayerVersionArn(LayerVersionArnT&& value) { SetLayerVersionArn(std::forward<LayerVersionArnT>(value)); return *this;}
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 template<typename DescriptionT = Aws::String>
78 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
79 template<typename DescriptionT = Aws::String>
80 GetLayerVersionResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
82
84
89 inline const Aws::String& GetCreatedDate() const { return m_createdDate; }
90 template<typename CreatedDateT = Aws::String>
91 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
92 template<typename CreatedDateT = Aws::String>
93 GetLayerVersionResult& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
95
97
100 inline long long GetVersion() const { return m_version; }
101 inline void SetVersion(long long value) { m_versionHasBeenSet = true; m_version = value; }
102 inline GetLayerVersionResult& WithVersion(long long value) { SetVersion(value); return *this;}
104
106
115 inline const Aws::Vector<Runtime>& GetCompatibleRuntimes() const { return m_compatibleRuntimes; }
116 template<typename CompatibleRuntimesT = Aws::Vector<Runtime>>
117 void SetCompatibleRuntimes(CompatibleRuntimesT&& value) { m_compatibleRuntimesHasBeenSet = true; m_compatibleRuntimes = std::forward<CompatibleRuntimesT>(value); }
118 template<typename CompatibleRuntimesT = Aws::Vector<Runtime>>
119 GetLayerVersionResult& WithCompatibleRuntimes(CompatibleRuntimesT&& value) { SetCompatibleRuntimes(std::forward<CompatibleRuntimesT>(value)); return *this;}
120 inline GetLayerVersionResult& AddCompatibleRuntimes(Runtime value) { m_compatibleRuntimesHasBeenSet = true; m_compatibleRuntimes.push_back(value); return *this; }
122
124
127 inline const Aws::String& GetLicenseInfo() const { return m_licenseInfo; }
128 template<typename LicenseInfoT = Aws::String>
129 void SetLicenseInfo(LicenseInfoT&& value) { m_licenseInfoHasBeenSet = true; m_licenseInfo = std::forward<LicenseInfoT>(value); }
130 template<typename LicenseInfoT = Aws::String>
131 GetLayerVersionResult& WithLicenseInfo(LicenseInfoT&& value) { SetLicenseInfo(std::forward<LicenseInfoT>(value)); return *this;}
133
135
140 inline const Aws::Vector<Architecture>& GetCompatibleArchitectures() const { return m_compatibleArchitectures; }
141 template<typename CompatibleArchitecturesT = Aws::Vector<Architecture>>
142 void SetCompatibleArchitectures(CompatibleArchitecturesT&& value) { m_compatibleArchitecturesHasBeenSet = true; m_compatibleArchitectures = std::forward<CompatibleArchitecturesT>(value); }
143 template<typename CompatibleArchitecturesT = Aws::Vector<Architecture>>
144 GetLayerVersionResult& WithCompatibleArchitectures(CompatibleArchitecturesT&& value) { SetCompatibleArchitectures(std::forward<CompatibleArchitecturesT>(value)); return *this;}
145 inline GetLayerVersionResult& AddCompatibleArchitectures(Architecture value) { m_compatibleArchitecturesHasBeenSet = true; m_compatibleArchitectures.push_back(value); return *this; }
147
149
150 inline const Aws::String& GetRequestId() const { return m_requestId; }
151 template<typename RequestIdT = Aws::String>
152 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
153 template<typename RequestIdT = Aws::String>
154 GetLayerVersionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
156 private:
157
159 bool m_contentHasBeenSet = false;
160
161 Aws::String m_layerArn;
162 bool m_layerArnHasBeenSet = false;
163
164 Aws::String m_layerVersionArn;
165 bool m_layerVersionArnHasBeenSet = false;
166
167 Aws::String m_description;
168 bool m_descriptionHasBeenSet = false;
169
170 Aws::String m_createdDate;
171 bool m_createdDateHasBeenSet = false;
172
173 long long m_version{0};
174 bool m_versionHasBeenSet = false;
175
176 Aws::Vector<Runtime> m_compatibleRuntimes;
177 bool m_compatibleRuntimesHasBeenSet = false;
178
179 Aws::String m_licenseInfo;
180 bool m_licenseInfoHasBeenSet = false;
181
182 Aws::Vector<Architecture> m_compatibleArchitectures;
183 bool m_compatibleArchitecturesHasBeenSet = false;
184
185 Aws::String m_requestId;
186 bool m_requestIdHasBeenSet = false;
187 };
188
189} // namespace Model
190} // namespace Lambda
191} // namespace Aws
GetLayerVersionResult & WithDescription(DescriptionT &&value)
GetLayerVersionResult & WithLicenseInfo(LicenseInfoT &&value)
AWS_LAMBDA_API GetLayerVersionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetLayerVersionResult & WithVersion(long long value)
const LayerVersionContentOutput & GetContent() const
GetLayerVersionResult & AddCompatibleRuntimes(Runtime value)
AWS_LAMBDA_API GetLayerVersionResult()=default
GetLayerVersionResult & AddCompatibleArchitectures(Architecture value)
const Aws::Vector< Runtime > & GetCompatibleRuntimes() const
void SetCompatibleArchitectures(CompatibleArchitecturesT &&value)
GetLayerVersionResult & WithCompatibleRuntimes(CompatibleRuntimesT &&value)
GetLayerVersionResult & WithContent(ContentT &&value)
GetLayerVersionResult & WithCompatibleArchitectures(CompatibleArchitecturesT &&value)
GetLayerVersionResult & WithRequestId(RequestIdT &&value)
GetLayerVersionResult & WithLayerArn(LayerArnT &&value)
const Aws::Vector< Architecture > & GetCompatibleArchitectures() const
GetLayerVersionResult & WithCreatedDate(CreatedDateT &&value)
void SetCompatibleRuntimes(CompatibleRuntimesT &&value)
void SetLayerVersionArn(LayerVersionArnT &&value)
GetLayerVersionResult & WithLayerVersionArn(LayerVersionArnT &&value)
AWS_LAMBDA_API GetLayerVersionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue