AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
UpdateFunctionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elementalinference/ElementalInference_EXPORTS.h>
12#include <aws/elementalinference/model/ContextType.h>
13#include <aws/elementalinference/model/EventBridgeDeliveryMode.h>
14#include <aws/elementalinference/model/FunctionStatus.h>
15#include <aws/elementalinference/model/FunctionTarget.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 ElementalInference {
29namespace Model {
31 public:
32 AWS_ELEMENTALINFERENCE_API UpdateFunctionResult() = default;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
57 inline const FunctionTarget& GetTarget() const { return m_target; }
58 template <typename TargetT = FunctionTarget>
59 void SetTarget(TargetT&& value) {
60 m_targetHasBeenSet = true;
61 m_target = std::forward<TargetT>(value);
62 }
63 template <typename TargetT = FunctionTarget>
64 UpdateFunctionResult& WithTarget(TargetT&& value) {
65 SetTarget(std::forward<TargetT>(value));
66 return *this;
67 }
69
71
76 inline const Aws::String& GetRequestExpression() const { return m_requestExpression; }
77 template <typename RequestExpressionT = Aws::String>
78 void SetRequestExpression(RequestExpressionT&& value) {
79 m_requestExpressionHasBeenSet = true;
80 m_requestExpression = std::forward<RequestExpressionT>(value);
81 }
82 template <typename RequestExpressionT = Aws::String>
83 UpdateFunctionResult& WithRequestExpression(RequestExpressionT&& value) {
84 SetRequestExpression(std::forward<RequestExpressionT>(value));
85 return *this;
86 }
88
90
97 inline const Aws::String& GetResponseExpression() const { return m_responseExpression; }
98 template <typename ResponseExpressionT = Aws::String>
99 void SetResponseExpression(ResponseExpressionT&& value) {
100 m_responseExpressionHasBeenSet = true;
101 m_responseExpression = std::forward<ResponseExpressionT>(value);
102 }
103 template <typename ResponseExpressionT = Aws::String>
104 UpdateFunctionResult& WithResponseExpression(ResponseExpressionT&& value) {
105 SetResponseExpression(std::forward<ResponseExpressionT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetDescription() const { return m_description; }
115 template <typename DescriptionT = Aws::String>
116 void SetDescription(DescriptionT&& value) {
117 m_descriptionHasBeenSet = true;
118 m_description = std::forward<DescriptionT>(value);
119 }
120 template <typename DescriptionT = Aws::String>
121 UpdateFunctionResult& WithDescription(DescriptionT&& value) {
122 SetDescription(std::forward<DescriptionT>(value));
123 return *this;
124 }
126
128
135 inline EventBridgeDeliveryMode GetEventBridgeDelivery() const { return m_eventBridgeDelivery; }
137 m_eventBridgeDeliveryHasBeenSet = true;
138 m_eventBridgeDelivery = value;
139 }
145
147
150 inline const Aws::String& GetArn() const { return m_arn; }
151 template <typename ArnT = Aws::String>
152 void SetArn(ArnT&& value) {
153 m_arnHasBeenSet = true;
154 m_arn = std::forward<ArnT>(value);
155 }
156 template <typename ArnT = Aws::String>
158 SetArn(std::forward<ArnT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::String& GetId() const { return m_id; }
168 template <typename IdT = Aws::String>
169 void SetId(IdT&& value) {
170 m_idHasBeenSet = true;
171 m_id = std::forward<IdT>(value);
172 }
173 template <typename IdT = Aws::String>
175 SetId(std::forward<IdT>(value));
176 return *this;
177 }
179
181
184 inline FunctionStatus GetStatus() const { return m_status; }
185 inline void SetStatus(FunctionStatus value) {
186 m_statusHasBeenSet = true;
187 m_status = value;
188 }
190 SetStatus(value);
191 return *this;
192 }
194
196
201 inline const Aws::Vector<Aws::String>& GetReferences() const { return m_references; }
202 template <typename ReferencesT = Aws::Vector<Aws::String>>
203 void SetReferences(ReferencesT&& value) {
204 m_referencesHasBeenSet = true;
205 m_references = std::forward<ReferencesT>(value);
206 }
207 template <typename ReferencesT = Aws::Vector<Aws::String>>
208 UpdateFunctionResult& WithReferences(ReferencesT&& value) {
209 SetReferences(std::forward<ReferencesT>(value));
210 return *this;
211 }
212 template <typename ReferencesT = Aws::String>
213 UpdateFunctionResult& AddReferences(ReferencesT&& value) {
214 m_referencesHasBeenSet = true;
215 m_references.emplace_back(std::forward<ReferencesT>(value));
216 return *this;
217 }
219
221
227 inline const Aws::Vector<ContextType>& GetContextTypes() const { return m_contextTypes; }
228 template <typename ContextTypesT = Aws::Vector<ContextType>>
229 void SetContextTypes(ContextTypesT&& value) {
230 m_contextTypesHasBeenSet = true;
231 m_contextTypes = std::forward<ContextTypesT>(value);
232 }
233 template <typename ContextTypesT = Aws::Vector<ContextType>>
234 UpdateFunctionResult& WithContextTypes(ContextTypesT&& value) {
235 SetContextTypes(std::forward<ContextTypesT>(value));
236 return *this;
237 }
239 m_contextTypesHasBeenSet = true;
240 m_contextTypes.push_back(value);
241 return *this;
242 }
244
246
249 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
250 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
251 void SetTags(TagsT&& value) {
252 m_tagsHasBeenSet = true;
253 m_tags = std::forward<TagsT>(value);
254 }
255 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
257 SetTags(std::forward<TagsT>(value));
258 return *this;
259 }
260 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
261 UpdateFunctionResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
262 m_tagsHasBeenSet = true;
263 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
264 return *this;
265 }
267
269
270 inline const Aws::String& GetRequestId() const { return m_requestId; }
271 template <typename RequestIdT = Aws::String>
272 void SetRequestId(RequestIdT&& value) {
273 m_requestIdHasBeenSet = true;
274 m_requestId = std::forward<RequestIdT>(value);
275 }
276 template <typename RequestIdT = Aws::String>
277 UpdateFunctionResult& WithRequestId(RequestIdT&& value) {
278 SetRequestId(std::forward<RequestIdT>(value));
279 return *this;
280 }
282 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
283
284 private:
285 Aws::String m_name;
286
287 FunctionTarget m_target;
288
289 Aws::String m_requestExpression;
290
291 Aws::String m_responseExpression;
292
293 Aws::String m_description;
294
296
297 Aws::String m_arn;
298
299 Aws::String m_id;
300
302
303 Aws::Vector<Aws::String> m_references;
304
305 Aws::Vector<ContextType> m_contextTypes;
306
308
309 Aws::String m_requestId;
310 Aws::Http::HttpResponseCode m_HttpResponseCode;
311 bool m_nameHasBeenSet = false;
312 bool m_targetHasBeenSet = false;
313 bool m_requestExpressionHasBeenSet = false;
314 bool m_responseExpressionHasBeenSet = false;
315 bool m_descriptionHasBeenSet = false;
316 bool m_eventBridgeDeliveryHasBeenSet = false;
317 bool m_arnHasBeenSet = false;
318 bool m_idHasBeenSet = false;
319 bool m_statusHasBeenSet = false;
320 bool m_referencesHasBeenSet = false;
321 bool m_contextTypesHasBeenSet = false;
322 bool m_tagsHasBeenSet = false;
323 bool m_requestIdHasBeenSet = false;
324};
325
326} // namespace Model
327} // namespace ElementalInference
328} // namespace Aws
const Aws::Vector< Aws::String > & GetReferences() const
UpdateFunctionResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
UpdateFunctionResult & WithResponseExpression(ResponseExpressionT &&value)
const Aws::Vector< ContextType > & GetContextTypes() const
UpdateFunctionResult & AddContextTypes(ContextType value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
UpdateFunctionResult & WithRequestExpression(RequestExpressionT &&value)
UpdateFunctionResult & WithStatus(FunctionStatus value)
AWS_ELEMENTALINFERENCE_API UpdateFunctionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateFunctionResult & WithReferences(ReferencesT &&value)
UpdateFunctionResult & WithDescription(DescriptionT &&value)
UpdateFunctionResult & WithTarget(TargetT &&value)
UpdateFunctionResult & WithRequestId(RequestIdT &&value)
UpdateFunctionResult & AddReferences(ReferencesT &&value)
AWS_ELEMENTALINFERENCE_API UpdateFunctionResult()=default
UpdateFunctionResult & WithContextTypes(ContextTypesT &&value)
UpdateFunctionResult & WithEventBridgeDelivery(EventBridgeDeliveryMode value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetEventBridgeDelivery(EventBridgeDeliveryMode value)
AWS_ELEMENTALINFERENCE_API UpdateFunctionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue