AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
UpdateFunctionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/elementalinference/ElementalInferenceRequest.h>
9#include <aws/elementalinference/ElementalInference_EXPORTS.h>
10#include <aws/elementalinference/model/EventBridgeDeliveryMode.h>
11#include <aws/elementalinference/model/FunctionTarget.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ElementalInference {
17namespace Model {
18
22 public:
23 AWS_ELEMENTALINFERENCE_API UpdateFunctionRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateFunction"; }
30
31 AWS_ELEMENTALINFERENCE_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetId() const { return m_id; }
38 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
39 template <typename IdT = Aws::String>
40 void SetId(IdT&& value) {
41 m_idHasBeenSet = true;
42 m_id = std::forward<IdT>(value);
43 }
44 template <typename IdT = Aws::String>
46 SetId(std::forward<IdT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template <typename NameT = Aws::String>
59 void SetName(NameT&& value) {
60 m_nameHasBeenSet = true;
61 m_name = std::forward<NameT>(value);
62 }
63 template <typename NameT = Aws::String>
65 SetName(std::forward<NameT>(value));
66 return *this;
67 }
69
71
75 inline const FunctionTarget& GetTarget() const { return m_target; }
76 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
77 template <typename TargetT = FunctionTarget>
78 void SetTarget(TargetT&& value) {
79 m_targetHasBeenSet = true;
80 m_target = std::forward<TargetT>(value);
81 }
82 template <typename TargetT = FunctionTarget>
84 SetTarget(std::forward<TargetT>(value));
85 return *this;
86 }
88
90
96 inline const Aws::String& GetRequestExpression() const { return m_requestExpression; }
97 inline bool RequestExpressionHasBeenSet() const { return m_requestExpressionHasBeenSet; }
98 template <typename RequestExpressionT = Aws::String>
99 void SetRequestExpression(RequestExpressionT&& value) {
100 m_requestExpressionHasBeenSet = true;
101 m_requestExpression = std::forward<RequestExpressionT>(value);
102 }
103 template <typename RequestExpressionT = Aws::String>
104 UpdateFunctionRequest& WithRequestExpression(RequestExpressionT&& value) {
105 SetRequestExpression(std::forward<RequestExpressionT>(value));
106 return *this;
107 }
109
111
116 inline const Aws::String& GetResponseExpression() const { return m_responseExpression; }
117 inline bool ResponseExpressionHasBeenSet() const { return m_responseExpressionHasBeenSet; }
118 template <typename ResponseExpressionT = Aws::String>
119 void SetResponseExpression(ResponseExpressionT&& value) {
120 m_responseExpressionHasBeenSet = true;
121 m_responseExpression = std::forward<ResponseExpressionT>(value);
122 }
123 template <typename ResponseExpressionT = Aws::String>
124 UpdateFunctionRequest& WithResponseExpression(ResponseExpressionT&& value) {
125 SetResponseExpression(std::forward<ResponseExpressionT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::String& GetDescription() const { return m_description; }
135 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
136 template <typename DescriptionT = Aws::String>
137 void SetDescription(DescriptionT&& value) {
138 m_descriptionHasBeenSet = true;
139 m_description = std::forward<DescriptionT>(value);
140 }
141 template <typename DescriptionT = Aws::String>
142 UpdateFunctionRequest& WithDescription(DescriptionT&& value) {
143 SetDescription(std::forward<DescriptionT>(value));
144 return *this;
145 }
147
149
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 private:
167 Aws::String m_id;
168
169 Aws::String m_name;
170
171 FunctionTarget m_target;
172
173 Aws::String m_requestExpression;
174
175 Aws::String m_responseExpression;
176
177 Aws::String m_description;
178
180 bool m_idHasBeenSet = false;
181 bool m_nameHasBeenSet = false;
182 bool m_targetHasBeenSet = false;
183 bool m_requestExpressionHasBeenSet = false;
184 bool m_responseExpressionHasBeenSet = false;
185 bool m_descriptionHasBeenSet = false;
186 bool m_eventBridgeDeliveryHasBeenSet = false;
187};
188
189} // namespace Model
190} // namespace ElementalInference
191} // namespace Aws
UpdateFunctionRequest & WithDescription(DescriptionT &&value)
UpdateFunctionRequest & WithResponseExpression(ResponseExpressionT &&value)
UpdateFunctionRequest & WithRequestExpression(RequestExpressionT &&value)
UpdateFunctionRequest & WithTarget(TargetT &&value)
UpdateFunctionRequest & WithEventBridgeDelivery(EventBridgeDeliveryMode value)
virtual const char * GetServiceRequestName() const override
AWS_ELEMENTALINFERENCE_API Aws::String SerializePayload() const override
AWS_ELEMENTALINFERENCE_API UpdateFunctionRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String