AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
CreateFunctionResult.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 CreateFunctionResult() = 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 CreateFunctionResult& 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 CreateFunctionResult& 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 CreateFunctionResult& 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 CreateFunctionResult& 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
185 inline FunctionStatus GetStatus() const { return m_status; }
186 inline void SetStatus(FunctionStatus value) {
187 m_statusHasBeenSet = true;
188 m_status = value;
189 }
191 SetStatus(value);
192 return *this;
193 }
195
197
202 inline const Aws::Vector<Aws::String>& GetReferences() const { return m_references; }
203 template <typename ReferencesT = Aws::Vector<Aws::String>>
204 void SetReferences(ReferencesT&& value) {
205 m_referencesHasBeenSet = true;
206 m_references = std::forward<ReferencesT>(value);
207 }
208 template <typename ReferencesT = Aws::Vector<Aws::String>>
209 CreateFunctionResult& WithReferences(ReferencesT&& value) {
210 SetReferences(std::forward<ReferencesT>(value));
211 return *this;
212 }
213 template <typename ReferencesT = Aws::String>
214 CreateFunctionResult& AddReferences(ReferencesT&& value) {
215 m_referencesHasBeenSet = true;
216 m_references.emplace_back(std::forward<ReferencesT>(value));
217 return *this;
218 }
220
222
228 inline const Aws::Vector<ContextType>& GetContextTypes() const { return m_contextTypes; }
229 template <typename ContextTypesT = Aws::Vector<ContextType>>
230 void SetContextTypes(ContextTypesT&& value) {
231 m_contextTypesHasBeenSet = true;
232 m_contextTypes = std::forward<ContextTypesT>(value);
233 }
234 template <typename ContextTypesT = Aws::Vector<ContextType>>
235 CreateFunctionResult& WithContextTypes(ContextTypesT&& value) {
236 SetContextTypes(std::forward<ContextTypesT>(value));
237 return *this;
238 }
240 m_contextTypesHasBeenSet = true;
241 m_contextTypes.push_back(value);
242 return *this;
243 }
245
247
250 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
251 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
252 void SetTags(TagsT&& value) {
253 m_tagsHasBeenSet = true;
254 m_tags = std::forward<TagsT>(value);
255 }
256 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
258 SetTags(std::forward<TagsT>(value));
259 return *this;
260 }
261 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
262 CreateFunctionResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
263 m_tagsHasBeenSet = true;
264 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
265 return *this;
266 }
268
270
271 inline const Aws::String& GetRequestId() const { return m_requestId; }
272 template <typename RequestIdT = Aws::String>
273 void SetRequestId(RequestIdT&& value) {
274 m_requestIdHasBeenSet = true;
275 m_requestId = std::forward<RequestIdT>(value);
276 }
277 template <typename RequestIdT = Aws::String>
278 CreateFunctionResult& WithRequestId(RequestIdT&& value) {
279 SetRequestId(std::forward<RequestIdT>(value));
280 return *this;
281 }
283 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
284
285 private:
286 Aws::String m_name;
287
288 FunctionTarget m_target;
289
290 Aws::String m_requestExpression;
291
292 Aws::String m_responseExpression;
293
294 Aws::String m_description;
295
297
298 Aws::String m_arn;
299
300 Aws::String m_id;
301
303
304 Aws::Vector<Aws::String> m_references;
305
306 Aws::Vector<ContextType> m_contextTypes;
307
309
310 Aws::String m_requestId;
311 Aws::Http::HttpResponseCode m_HttpResponseCode;
312 bool m_nameHasBeenSet = false;
313 bool m_targetHasBeenSet = false;
314 bool m_requestExpressionHasBeenSet = false;
315 bool m_responseExpressionHasBeenSet = false;
316 bool m_descriptionHasBeenSet = false;
317 bool m_eventBridgeDeliveryHasBeenSet = false;
318 bool m_arnHasBeenSet = false;
319 bool m_idHasBeenSet = false;
320 bool m_statusHasBeenSet = false;
321 bool m_referencesHasBeenSet = false;
322 bool m_contextTypesHasBeenSet = false;
323 bool m_tagsHasBeenSet = false;
324 bool m_requestIdHasBeenSet = false;
325};
326
327} // namespace Model
328} // namespace ElementalInference
329} // namespace Aws
CreateFunctionResult & WithRequestExpression(RequestExpressionT &&value)
const Aws::Vector< ContextType > & GetContextTypes() const
AWS_ELEMENTALINFERENCE_API CreateFunctionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateFunctionResult & AddReferences(ReferencesT &&value)
CreateFunctionResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateFunctionResult & WithTarget(TargetT &&value)
AWS_ELEMENTALINFERENCE_API CreateFunctionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateFunctionResult & WithDescription(DescriptionT &&value)
const Aws::Vector< Aws::String > & GetReferences() const
AWS_ELEMENTALINFERENCE_API CreateFunctionResult()=default
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CreateFunctionResult & WithStatus(FunctionStatus value)
CreateFunctionResult & WithRequestId(RequestIdT &&value)
void SetEventBridgeDelivery(EventBridgeDeliveryMode value)
CreateFunctionResult & WithResponseExpression(ResponseExpressionT &&value)
CreateFunctionResult & WithReferences(ReferencesT &&value)
CreateFunctionResult & AddContextTypes(ContextType value)
CreateFunctionResult & WithContextTypes(ContextTypesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateFunctionResult & WithEventBridgeDelivery(EventBridgeDeliveryMode 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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue