AWS SDK for C++

AWS SDK for C++ Version 1.11.912

Loading...
Searching...
No Matches
CreateWebFunctionRevisionResult.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 {
36 public:
37 AWS_LAMBDAWEB_API CreateWebFunctionRevisionResult() = default;
40
42
45 inline const Aws::String& GetFunctionArn() const { return m_functionArn; }
46 template <typename FunctionArnT = Aws::String>
47 void SetFunctionArn(FunctionArnT&& value) {
48 m_functionArnHasBeenSet = true;
49 m_functionArn = std::forward<FunctionArnT>(value);
50 }
51 template <typename FunctionArnT = Aws::String>
53 SetFunctionArn(std::forward<FunctionArnT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetRevisionArn() const { return m_revisionArn; }
63 template <typename RevisionArnT = Aws::String>
64 void SetRevisionArn(RevisionArnT&& value) {
65 m_revisionArnHasBeenSet = true;
66 m_revisionArn = std::forward<RevisionArnT>(value);
67 }
68 template <typename RevisionArnT = Aws::String>
70 SetRevisionArn(std::forward<RevisionArnT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
80 template <typename RevisionIdT = Aws::String>
81 void SetRevisionId(RevisionIdT&& value) {
82 m_revisionIdHasBeenSet = true;
83 m_revisionId = std::forward<RevisionIdT>(value);
84 }
85 template <typename RevisionIdT = Aws::String>
87 SetRevisionId(std::forward<RevisionIdT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetDescription() const { return m_description; }
97 template <typename DescriptionT = Aws::String>
98 void SetDescription(DescriptionT&& value) {
99 m_descriptionHasBeenSet = true;
100 m_description = std::forward<DescriptionT>(value);
101 }
102 template <typename DescriptionT = Aws::String>
104 SetDescription(std::forward<DescriptionT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
115 template <typename KmsKeyArnT = Aws::String>
116 void SetKmsKeyArn(KmsKeyArnT&& value) {
117 m_kmsKeyArnHasBeenSet = true;
118 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
119 }
120 template <typename KmsKeyArnT = Aws::String>
122 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
123 return *this;
124 }
126
128
129 inline const BuildConfig& GetBuildConfig() const { return m_buildConfig; }
130 template <typename BuildConfigT = BuildConfig>
131 void SetBuildConfig(BuildConfigT&& value) {
132 m_buildConfigHasBeenSet = true;
133 m_buildConfig = std::forward<BuildConfigT>(value);
134 }
135 template <typename BuildConfigT = BuildConfig>
137 SetBuildConfig(std::forward<BuildConfigT>(value));
138 return *this;
139 }
141
143
144 inline const ServiceConfig& GetServiceConfig() const { return m_serviceConfig; }
145 template <typename ServiceConfigT = ServiceConfig>
146 void SetServiceConfig(ServiceConfigT&& value) {
147 m_serviceConfigHasBeenSet = true;
148 m_serviceConfig = std::forward<ServiceConfigT>(value);
149 }
150 template <typename ServiceConfigT = ServiceConfig>
152 SetServiceConfig(std::forward<ServiceConfigT>(value));
153 return *this;
154 }
156
158
161 inline RevisionState GetState() const { return m_state; }
162 inline void SetState(RevisionState value) {
163 m_stateHasBeenSet = true;
164 m_state = value;
165 }
167 SetState(value);
168 return *this;
169 }
171
173
176 inline const Aws::String& GetStateReason() const { return m_stateReason; }
177 template <typename StateReasonT = Aws::String>
178 void SetStateReason(StateReasonT&& value) {
179 m_stateReasonHasBeenSet = true;
180 m_stateReason = std::forward<StateReasonT>(value);
181 }
182 template <typename StateReasonT = Aws::String>
184 SetStateReason(std::forward<StateReasonT>(value));
185 return *this;
186 }
188
190
194 inline const Aws::Vector<RevisionError>& GetErrors() const { return m_errors; }
195 template <typename ErrorsT = Aws::Vector<RevisionError>>
196 void SetErrors(ErrorsT&& value) {
197 m_errorsHasBeenSet = true;
198 m_errors = std::forward<ErrorsT>(value);
199 }
200 template <typename ErrorsT = Aws::Vector<RevisionError>>
202 SetErrors(std::forward<ErrorsT>(value));
203 return *this;
204 }
205 template <typename ErrorsT = RevisionError>
207 m_errorsHasBeenSet = true;
208 m_errors.emplace_back(std::forward<ErrorsT>(value));
209 return *this;
210 }
212
214
217 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
218 template <typename CreatedAtT = Aws::Utils::DateTime>
219 void SetCreatedAt(CreatedAtT&& value) {
220 m_createdAtHasBeenSet = true;
221 m_createdAt = std::forward<CreatedAtT>(value);
222 }
223 template <typename CreatedAtT = Aws::Utils::DateTime>
225 SetCreatedAt(std::forward<CreatedAtT>(value));
226 return *this;
227 }
229
231
232 inline const Aws::String& GetRequestId() const { return m_requestId; }
233 template <typename RequestIdT = Aws::String>
234 void SetRequestId(RequestIdT&& value) {
235 m_requestIdHasBeenSet = true;
236 m_requestId = std::forward<RequestIdT>(value);
237 }
238 template <typename RequestIdT = Aws::String>
240 SetRequestId(std::forward<RequestIdT>(value));
241 return *this;
242 }
244 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
245
246 private:
247 Aws::String m_functionArn;
248
249 Aws::String m_revisionArn;
250
251 Aws::String m_revisionId;
252
253 Aws::String m_description;
254
255 Aws::String m_kmsKeyArn;
256
257 BuildConfig m_buildConfig;
258
259 ServiceConfig m_serviceConfig;
260
262
263 Aws::String m_stateReason;
264
266
267 Aws::Utils::DateTime m_createdAt{};
268
269 Aws::String m_requestId;
270 Aws::Http::HttpResponseCode m_HttpResponseCode;
271 bool m_functionArnHasBeenSet = false;
272 bool m_revisionArnHasBeenSet = false;
273 bool m_revisionIdHasBeenSet = false;
274 bool m_descriptionHasBeenSet = false;
275 bool m_kmsKeyArnHasBeenSet = false;
276 bool m_buildConfigHasBeenSet = false;
277 bool m_serviceConfigHasBeenSet = false;
278 bool m_stateHasBeenSet = false;
279 bool m_stateReasonHasBeenSet = false;
280 bool m_errorsHasBeenSet = false;
281 bool m_createdAtHasBeenSet = false;
282 bool m_requestIdHasBeenSet = false;
283};
284
285} // namespace Model
286} // namespace LambdaWeb
287} // namespace Aws
CreateWebFunctionRevisionResult & WithRevisionArn(RevisionArnT &&value)
CreateWebFunctionRevisionResult & WithBuildConfig(BuildConfigT &&value)
CreateWebFunctionRevisionResult & WithRevisionId(RevisionIdT &&value)
CreateWebFunctionRevisionResult & WithKmsKeyArn(KmsKeyArnT &&value)
CreateWebFunctionRevisionResult & AddErrors(ErrorsT &&value)
AWS_LAMBDAWEB_API CreateWebFunctionRevisionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateWebFunctionRevisionResult & WithErrors(ErrorsT &&value)
CreateWebFunctionRevisionResult & WithServiceConfig(ServiceConfigT &&value)
CreateWebFunctionRevisionResult & WithState(RevisionState value)
AWS_LAMBDAWEB_API CreateWebFunctionRevisionResult()=default
CreateWebFunctionRevisionResult & WithCreatedAt(CreatedAtT &&value)
CreateWebFunctionRevisionResult & WithDescription(DescriptionT &&value)
CreateWebFunctionRevisionResult & WithFunctionArn(FunctionArnT &&value)
CreateWebFunctionRevisionResult & WithRequestId(RequestIdT &&value)
CreateWebFunctionRevisionResult & WithStateReason(StateReasonT &&value)
AWS_LAMBDAWEB_API CreateWebFunctionRevisionResult & operator=(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