AWS SDK for C++

AWS SDK for C++ Version 1.11.914

Loading...
Searching...
No Matches
GetWebFunctionRevisionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/lambda-web/LambdaWeb_EXPORTS.h>
12#include <aws/lambda-web/model/BuildConfig.h>
13#include <aws/lambda-web/model/RevisionError.h>
14#include <aws/lambda-web/model/RevisionState.h>
15#include <aws/lambda-web/model/ServiceConfig.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace LambdaWeb {
29namespace Model {
37 public:
38 AWS_LAMBDAWEB_API GetWebFunctionRevisionResult() = default;
41
43
46 inline const Aws::String& GetFunctionArn() const { return m_functionArn; }
47 template <typename FunctionArnT = Aws::String>
48 void SetFunctionArn(FunctionArnT&& value) {
49 m_functionArnHasBeenSet = true;
50 m_functionArn = std::forward<FunctionArnT>(value);
51 }
52 template <typename FunctionArnT = Aws::String>
54 SetFunctionArn(std::forward<FunctionArnT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetRevisionArn() const { return m_revisionArn; }
64 template <typename RevisionArnT = Aws::String>
65 void SetRevisionArn(RevisionArnT&& value) {
66 m_revisionArnHasBeenSet = true;
67 m_revisionArn = std::forward<RevisionArnT>(value);
68 }
69 template <typename RevisionArnT = Aws::String>
71 SetRevisionArn(std::forward<RevisionArnT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
81 template <typename RevisionIdT = Aws::String>
82 void SetRevisionId(RevisionIdT&& value) {
83 m_revisionIdHasBeenSet = true;
84 m_revisionId = std::forward<RevisionIdT>(value);
85 }
86 template <typename RevisionIdT = Aws::String>
88 SetRevisionId(std::forward<RevisionIdT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetDescription() const { return m_description; }
98 template <typename DescriptionT = Aws::String>
99 void SetDescription(DescriptionT&& value) {
100 m_descriptionHasBeenSet = true;
101 m_description = std::forward<DescriptionT>(value);
102 }
103 template <typename DescriptionT = Aws::String>
105 SetDescription(std::forward<DescriptionT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
116 template <typename KmsKeyArnT = Aws::String>
117 void SetKmsKeyArn(KmsKeyArnT&& value) {
118 m_kmsKeyArnHasBeenSet = true;
119 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
120 }
121 template <typename KmsKeyArnT = Aws::String>
123 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
124 return *this;
125 }
127
129
130 inline const BuildConfig& GetBuildConfig() const { return m_buildConfig; }
131 template <typename BuildConfigT = BuildConfig>
132 void SetBuildConfig(BuildConfigT&& value) {
133 m_buildConfigHasBeenSet = true;
134 m_buildConfig = std::forward<BuildConfigT>(value);
135 }
136 template <typename BuildConfigT = BuildConfig>
138 SetBuildConfig(std::forward<BuildConfigT>(value));
139 return *this;
140 }
142
144
145 inline const ServiceConfig& GetServiceConfig() const { return m_serviceConfig; }
146 template <typename ServiceConfigT = ServiceConfig>
147 void SetServiceConfig(ServiceConfigT&& value) {
148 m_serviceConfigHasBeenSet = true;
149 m_serviceConfig = std::forward<ServiceConfigT>(value);
150 }
151 template <typename ServiceConfigT = ServiceConfig>
153 SetServiceConfig(std::forward<ServiceConfigT>(value));
154 return *this;
155 }
157
159
162 inline RevisionState GetState() const { return m_state; }
163 inline void SetState(RevisionState value) {
164 m_stateHasBeenSet = true;
165 m_state = value;
166 }
168 SetState(value);
169 return *this;
170 }
172
174
177 inline const Aws::String& GetStateReason() const { return m_stateReason; }
178 template <typename StateReasonT = Aws::String>
179 void SetStateReason(StateReasonT&& value) {
180 m_stateReasonHasBeenSet = true;
181 m_stateReason = std::forward<StateReasonT>(value);
182 }
183 template <typename StateReasonT = Aws::String>
185 SetStateReason(std::forward<StateReasonT>(value));
186 return *this;
187 }
189
191
195 inline const Aws::Vector<RevisionError>& GetErrors() const { return m_errors; }
196 template <typename ErrorsT = Aws::Vector<RevisionError>>
197 void SetErrors(ErrorsT&& value) {
198 m_errorsHasBeenSet = true;
199 m_errors = std::forward<ErrorsT>(value);
200 }
201 template <typename ErrorsT = Aws::Vector<RevisionError>>
203 SetErrors(std::forward<ErrorsT>(value));
204 return *this;
205 }
206 template <typename ErrorsT = RevisionError>
208 m_errorsHasBeenSet = true;
209 m_errors.emplace_back(std::forward<ErrorsT>(value));
210 return *this;
211 }
213
215
218 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
219 template <typename CreatedAtT = Aws::Utils::DateTime>
220 void SetCreatedAt(CreatedAtT&& value) {
221 m_createdAtHasBeenSet = true;
222 m_createdAt = std::forward<CreatedAtT>(value);
223 }
224 template <typename CreatedAtT = Aws::Utils::DateTime>
226 SetCreatedAt(std::forward<CreatedAtT>(value));
227 return *this;
228 }
230
232
233 inline const Aws::String& GetRequestId() const { return m_requestId; }
234 template <typename RequestIdT = Aws::String>
235 void SetRequestId(RequestIdT&& value) {
236 m_requestIdHasBeenSet = true;
237 m_requestId = std::forward<RequestIdT>(value);
238 }
239 template <typename RequestIdT = Aws::String>
241 SetRequestId(std::forward<RequestIdT>(value));
242 return *this;
243 }
245 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
246
247 private:
248 Aws::String m_functionArn;
249
250 Aws::String m_revisionArn;
251
252 Aws::String m_revisionId;
253
254 Aws::String m_description;
255
256 Aws::String m_kmsKeyArn;
257
258 BuildConfig m_buildConfig;
259
260 ServiceConfig m_serviceConfig;
261
263
264 Aws::String m_stateReason;
265
267
268 Aws::Utils::DateTime m_createdAt{};
269
270 Aws::String m_requestId;
271 Aws::Http::HttpResponseCode m_HttpResponseCode;
272 bool m_functionArnHasBeenSet = false;
273 bool m_revisionArnHasBeenSet = false;
274 bool m_revisionIdHasBeenSet = false;
275 bool m_descriptionHasBeenSet = false;
276 bool m_kmsKeyArnHasBeenSet = false;
277 bool m_buildConfigHasBeenSet = false;
278 bool m_serviceConfigHasBeenSet = false;
279 bool m_stateHasBeenSet = false;
280 bool m_stateReasonHasBeenSet = false;
281 bool m_errorsHasBeenSet = false;
282 bool m_createdAtHasBeenSet = false;
283 bool m_requestIdHasBeenSet = false;
284};
285
286} // namespace Model
287} // namespace LambdaWeb
288} // namespace Aws
GetWebFunctionRevisionResult & WithRevisionArn(RevisionArnT &&value)
GetWebFunctionRevisionResult & WithStateReason(StateReasonT &&value)
GetWebFunctionRevisionResult & WithRequestId(RequestIdT &&value)
GetWebFunctionRevisionResult & WithFunctionArn(FunctionArnT &&value)
GetWebFunctionRevisionResult & AddErrors(ErrorsT &&value)
GetWebFunctionRevisionResult & WithKmsKeyArn(KmsKeyArnT &&value)
GetWebFunctionRevisionResult & WithCreatedAt(CreatedAtT &&value)
GetWebFunctionRevisionResult & WithServiceConfig(ServiceConfigT &&value)
AWS_LAMBDAWEB_API GetWebFunctionRevisionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< RevisionError > & GetErrors() const
AWS_LAMBDAWEB_API GetWebFunctionRevisionResult()=default
GetWebFunctionRevisionResult & WithBuildConfig(BuildConfigT &&value)
AWS_LAMBDAWEB_API GetWebFunctionRevisionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetWebFunctionRevisionResult & WithRevisionId(RevisionIdT &&value)
GetWebFunctionRevisionResult & WithErrors(ErrorsT &&value)
GetWebFunctionRevisionResult & WithState(RevisionState value)
GetWebFunctionRevisionResult & WithDescription(DescriptionT &&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