AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
CreateFunctionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/elementalinference/ElementalInferenceRequest.h>
10#include <aws/elementalinference/ElementalInference_EXPORTS.h>
11#include <aws/elementalinference/model/EventBridgeDeliveryMode.h>
12#include <aws/elementalinference/model/FunctionTarget.h>
13
14#include <utility>
15
16namespace Aws {
17namespace ElementalInference {
18namespace Model {
19
23 public:
24 AWS_ELEMENTALINFERENCE_API CreateFunctionRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateFunction"; }
31
32 AWS_ELEMENTALINFERENCE_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
56 inline const FunctionTarget& GetTarget() const { return m_target; }
57 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
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>
65 SetTarget(std::forward<TargetT>(value));
66 return *this;
67 }
69
71
82 inline const Aws::String& GetRequestExpression() const { return m_requestExpression; }
83 inline bool RequestExpressionHasBeenSet() const { return m_requestExpressionHasBeenSet; }
84 template <typename RequestExpressionT = Aws::String>
85 void SetRequestExpression(RequestExpressionT&& value) {
86 m_requestExpressionHasBeenSet = true;
87 m_requestExpression = std::forward<RequestExpressionT>(value);
88 }
89 template <typename RequestExpressionT = Aws::String>
90 CreateFunctionRequest& WithRequestExpression(RequestExpressionT&& value) {
91 SetRequestExpression(std::forward<RequestExpressionT>(value));
92 return *this;
93 }
95
97
107 inline const Aws::String& GetResponseExpression() const { return m_responseExpression; }
108 inline bool ResponseExpressionHasBeenSet() const { return m_responseExpressionHasBeenSet; }
109 template <typename ResponseExpressionT = Aws::String>
110 void SetResponseExpression(ResponseExpressionT&& value) {
111 m_responseExpressionHasBeenSet = true;
112 m_responseExpression = std::forward<ResponseExpressionT>(value);
113 }
114 template <typename ResponseExpressionT = Aws::String>
115 CreateFunctionRequest& WithResponseExpression(ResponseExpressionT&& value) {
116 SetResponseExpression(std::forward<ResponseExpressionT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::String& GetDescription() const { return m_description; }
126 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
127 template <typename DescriptionT = Aws::String>
128 void SetDescription(DescriptionT&& value) {
129 m_descriptionHasBeenSet = true;
130 m_description = std::forward<DescriptionT>(value);
131 }
132 template <typename DescriptionT = Aws::String>
133 CreateFunctionRequest& WithDescription(DescriptionT&& value) {
134 SetDescription(std::forward<DescriptionT>(value));
135 return *this;
136 }
138
140
155 inline EventBridgeDeliveryMode GetEventBridgeDelivery() const { return m_eventBridgeDelivery; }
156 inline bool EventBridgeDeliveryHasBeenSet() const { return m_eventBridgeDeliveryHasBeenSet; }
158 m_eventBridgeDeliveryHasBeenSet = true;
159 m_eventBridgeDelivery = value;
160 }
166
168
171 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
172 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
173 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
174 void SetTags(TagsT&& value) {
175 m_tagsHasBeenSet = true;
176 m_tags = std::forward<TagsT>(value);
177 }
178 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
180 SetTags(std::forward<TagsT>(value));
181 return *this;
182 }
183 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
184 CreateFunctionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
185 m_tagsHasBeenSet = true;
186 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
187 return *this;
188 }
190 private:
191 Aws::String m_name;
192
193 FunctionTarget m_target;
194
195 Aws::String m_requestExpression;
196
197 Aws::String m_responseExpression;
198
199 Aws::String m_description;
200
202
204 bool m_nameHasBeenSet = false;
205 bool m_targetHasBeenSet = false;
206 bool m_requestExpressionHasBeenSet = false;
207 bool m_responseExpressionHasBeenSet = false;
208 bool m_descriptionHasBeenSet = false;
209 bool m_eventBridgeDeliveryHasBeenSet = false;
210 bool m_tagsHasBeenSet = false;
211};
212
213} // namespace Model
214} // namespace ElementalInference
215} // namespace Aws
CreateFunctionRequest & WithResponseExpression(ResponseExpressionT &&value)
CreateFunctionRequest & WithDescription(DescriptionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateFunctionRequest & WithTarget(TargetT &&value)
AWS_ELEMENTALINFERENCE_API CreateFunctionRequest()=default
CreateFunctionRequest & WithEventBridgeDelivery(EventBridgeDeliveryMode value)
virtual const char * GetServiceRequestName() const override
CreateFunctionRequest & WithRequestExpression(RequestExpressionT &&value)
CreateFunctionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_ELEMENTALINFERENCE_API Aws::String SerializePayload() const override
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