AWS SDK for C++

AWS SDK for C++ Version 1.11.915

Loading...
Searching...
No Matches
CreateWebFunctionResult.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/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/lambda-web/LambdaWeb_EXPORTS.h>
12#include <aws/lambda-web/model/FunctionEndpointSummary.h>
13#include <aws/lambda-web/model/FunctionRevisionSummary.h>
14#include <aws/lambda-web/model/FunctionState.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace LambdaWeb {
28namespace Model {
36 public:
37 AWS_LAMBDAWEB_API CreateWebFunctionResult() = default;
40
42
45 inline const Aws::String& GetFunctionName() const { return m_functionName; }
46 template <typename FunctionNameT = Aws::String>
47 void SetFunctionName(FunctionNameT&& value) {
48 m_functionNameHasBeenSet = true;
49 m_functionName = std::forward<FunctionNameT>(value);
50 }
51 template <typename FunctionNameT = Aws::String>
52 CreateWebFunctionResult& WithFunctionName(FunctionNameT&& value) {
53 SetFunctionName(std::forward<FunctionNameT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetFunctionArn() const { return m_functionArn; }
63 template <typename FunctionArnT = Aws::String>
64 void SetFunctionArn(FunctionArnT&& value) {
65 m_functionArnHasBeenSet = true;
66 m_functionArn = std::forward<FunctionArnT>(value);
67 }
68 template <typename FunctionArnT = Aws::String>
70 SetFunctionArn(std::forward<FunctionArnT>(value));
71 return *this;
72 }
74
76
79 inline FunctionState GetState() const { return m_state; }
80 inline void SetState(FunctionState value) {
81 m_stateHasBeenSet = true;
82 m_state = value;
83 }
85 SetState(value);
86 return *this;
87 }
89
91
94 inline const Aws::String& GetStateReason() const { return m_stateReason; }
95 template <typename StateReasonT = Aws::String>
96 void SetStateReason(StateReasonT&& value) {
97 m_stateReasonHasBeenSet = true;
98 m_stateReason = std::forward<StateReasonT>(value);
99 }
100 template <typename StateReasonT = Aws::String>
102 SetStateReason(std::forward<StateReasonT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
112 template <typename CreatedAtT = Aws::Utils::DateTime>
113 void SetCreatedAt(CreatedAtT&& value) {
114 m_createdAtHasBeenSet = true;
115 m_createdAt = std::forward<CreatedAtT>(value);
116 }
117 template <typename CreatedAtT = Aws::Utils::DateTime>
119 SetCreatedAt(std::forward<CreatedAtT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
129 template <typename UpdatedAtT = Aws::Utils::DateTime>
130 void SetUpdatedAt(UpdatedAtT&& value) {
131 m_updatedAtHasBeenSet = true;
132 m_updatedAt = std::forward<UpdatedAtT>(value);
133 }
134 template <typename UpdatedAtT = Aws::Utils::DateTime>
136 SetUpdatedAt(std::forward<UpdatedAtT>(value));
137 return *this;
138 }
140
142
145 inline const FunctionRevisionSummary& GetRevision() const { return m_revision; }
146 template <typename RevisionT = FunctionRevisionSummary>
147 void SetRevision(RevisionT&& value) {
148 m_revisionHasBeenSet = true;
149 m_revision = std::forward<RevisionT>(value);
150 }
151 template <typename RevisionT = FunctionRevisionSummary>
153 SetRevision(std::forward<RevisionT>(value));
154 return *this;
155 }
157
159
162 inline const FunctionEndpointSummary& GetEndpoint() const { return m_endpoint; }
163 template <typename EndpointT = FunctionEndpointSummary>
164 void SetEndpoint(EndpointT&& value) {
165 m_endpointHasBeenSet = true;
166 m_endpoint = std::forward<EndpointT>(value);
167 }
168 template <typename EndpointT = FunctionEndpointSummary>
170 SetEndpoint(std::forward<EndpointT>(value));
171 return *this;
172 }
174
176
179 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
180 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
181 void SetTags(TagsT&& value) {
182 m_tagsHasBeenSet = true;
183 m_tags = std::forward<TagsT>(value);
184 }
185 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
187 SetTags(std::forward<TagsT>(value));
188 return *this;
189 }
190 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
191 CreateWebFunctionResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
192 m_tagsHasBeenSet = true;
193 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
194 return *this;
195 }
197
199
200 inline const Aws::String& GetRequestId() const { return m_requestId; }
201 template <typename RequestIdT = Aws::String>
202 void SetRequestId(RequestIdT&& value) {
203 m_requestIdHasBeenSet = true;
204 m_requestId = std::forward<RequestIdT>(value);
205 }
206 template <typename RequestIdT = Aws::String>
208 SetRequestId(std::forward<RequestIdT>(value));
209 return *this;
210 }
212 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
213
214 private:
215 Aws::String m_functionName;
216
217 Aws::String m_functionArn;
218
220
221 Aws::String m_stateReason;
222
223 Aws::Utils::DateTime m_createdAt{};
224
225 Aws::Utils::DateTime m_updatedAt{};
226
227 FunctionRevisionSummary m_revision;
228
229 FunctionEndpointSummary m_endpoint;
230
232
233 Aws::String m_requestId;
234 Aws::Http::HttpResponseCode m_HttpResponseCode;
235 bool m_functionNameHasBeenSet = false;
236 bool m_functionArnHasBeenSet = false;
237 bool m_stateHasBeenSet = false;
238 bool m_stateReasonHasBeenSet = false;
239 bool m_createdAtHasBeenSet = false;
240 bool m_updatedAtHasBeenSet = false;
241 bool m_revisionHasBeenSet = false;
242 bool m_endpointHasBeenSet = false;
243 bool m_tagsHasBeenSet = false;
244 bool m_requestIdHasBeenSet = false;
245};
246
247} // namespace Model
248} // namespace LambdaWeb
249} // namespace Aws
CreateWebFunctionResult & WithRevision(RevisionT &&value)
CreateWebFunctionResult & WithTags(TagsT &&value)
AWS_LAMBDAWEB_API CreateWebFunctionResult()=default
AWS_LAMBDAWEB_API CreateWebFunctionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateWebFunctionResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const FunctionRevisionSummary & GetRevision() const
CreateWebFunctionResult & WithUpdatedAt(UpdatedAtT &&value)
CreateWebFunctionResult & WithEndpoint(EndpointT &&value)
CreateWebFunctionResult & WithState(FunctionState value)
const FunctionEndpointSummary & GetEndpoint() const
CreateWebFunctionResult & WithRequestId(RequestIdT &&value)
CreateWebFunctionResult & WithStateReason(StateReasonT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_LAMBDAWEB_API CreateWebFunctionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetUpdatedAt() const
CreateWebFunctionResult & WithFunctionArn(FunctionArnT &&value)
CreateWebFunctionResult & WithCreatedAt(CreatedAtT &&value)
CreateWebFunctionResult & WithFunctionName(FunctionNameT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue