AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateFunctionRequest.h
1
6#pragma once
7#include <aws/appsync/AppSyncRequest.h>
8#include <aws/appsync/AppSync_EXPORTS.h>
9#include <aws/appsync/model/AppSyncRuntime.h>
10#include <aws/appsync/model/SyncConfig.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace AppSync {
17namespace Model {
18
22 public:
23 AWS_APPSYNC_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_APPSYNC_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetApiId() const { return m_apiId; }
38 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
39 template <typename ApiIdT = Aws::String>
40 void SetApiId(ApiIdT&& value) {
41 m_apiIdHasBeenSet = true;
42 m_apiId = std::forward<ApiIdT>(value);
43 }
44 template <typename ApiIdT = Aws::String>
46 SetApiId(std::forward<ApiIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetName() const { return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 template <typename NameT = Aws::String>
58 void SetName(NameT&& value) {
59 m_nameHasBeenSet = true;
60 m_name = std::forward<NameT>(value);
61 }
62 template <typename NameT = Aws::String>
64 SetName(std::forward<NameT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetDescription() const { return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 template <typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) {
77 m_descriptionHasBeenSet = true;
78 m_description = std::forward<DescriptionT>(value);
79 }
80 template <typename DescriptionT = Aws::String>
81 UpdateFunctionRequest& WithDescription(DescriptionT&& value) {
82 SetDescription(std::forward<DescriptionT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetFunctionId() const { return m_functionId; }
92 inline bool FunctionIdHasBeenSet() const { return m_functionIdHasBeenSet; }
93 template <typename FunctionIdT = Aws::String>
94 void SetFunctionId(FunctionIdT&& value) {
95 m_functionIdHasBeenSet = true;
96 m_functionId = std::forward<FunctionIdT>(value);
97 }
98 template <typename FunctionIdT = Aws::String>
99 UpdateFunctionRequest& WithFunctionId(FunctionIdT&& value) {
100 SetFunctionId(std::forward<FunctionIdT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetDataSourceName() const { return m_dataSourceName; }
110 inline bool DataSourceNameHasBeenSet() const { return m_dataSourceNameHasBeenSet; }
111 template <typename DataSourceNameT = Aws::String>
112 void SetDataSourceName(DataSourceNameT&& value) {
113 m_dataSourceNameHasBeenSet = true;
114 m_dataSourceName = std::forward<DataSourceNameT>(value);
115 }
116 template <typename DataSourceNameT = Aws::String>
117 UpdateFunctionRequest& WithDataSourceName(DataSourceNameT&& value) {
118 SetDataSourceName(std::forward<DataSourceNameT>(value));
119 return *this;
120 }
122
124
128 inline const Aws::String& GetRequestMappingTemplate() const { return m_requestMappingTemplate; }
129 inline bool RequestMappingTemplateHasBeenSet() const { return m_requestMappingTemplateHasBeenSet; }
130 template <typename RequestMappingTemplateT = Aws::String>
131 void SetRequestMappingTemplate(RequestMappingTemplateT&& value) {
132 m_requestMappingTemplateHasBeenSet = true;
133 m_requestMappingTemplate = std::forward<RequestMappingTemplateT>(value);
134 }
135 template <typename RequestMappingTemplateT = Aws::String>
136 UpdateFunctionRequest& WithRequestMappingTemplate(RequestMappingTemplateT&& value) {
137 SetRequestMappingTemplate(std::forward<RequestMappingTemplateT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::String& GetResponseMappingTemplate() const { return m_responseMappingTemplate; }
147 inline bool ResponseMappingTemplateHasBeenSet() const { return m_responseMappingTemplateHasBeenSet; }
148 template <typename ResponseMappingTemplateT = Aws::String>
149 void SetResponseMappingTemplate(ResponseMappingTemplateT&& value) {
150 m_responseMappingTemplateHasBeenSet = true;
151 m_responseMappingTemplate = std::forward<ResponseMappingTemplateT>(value);
152 }
153 template <typename ResponseMappingTemplateT = Aws::String>
154 UpdateFunctionRequest& WithResponseMappingTemplate(ResponseMappingTemplateT&& value) {
155 SetResponseMappingTemplate(std::forward<ResponseMappingTemplateT>(value));
156 return *this;
157 }
159
161
166 inline const Aws::String& GetFunctionVersion() const { return m_functionVersion; }
167 inline bool FunctionVersionHasBeenSet() const { return m_functionVersionHasBeenSet; }
168 template <typename FunctionVersionT = Aws::String>
169 void SetFunctionVersion(FunctionVersionT&& value) {
170 m_functionVersionHasBeenSet = true;
171 m_functionVersion = std::forward<FunctionVersionT>(value);
172 }
173 template <typename FunctionVersionT = Aws::String>
174 UpdateFunctionRequest& WithFunctionVersion(FunctionVersionT&& value) {
175 SetFunctionVersion(std::forward<FunctionVersionT>(value));
176 return *this;
177 }
179
181
182 inline const SyncConfig& GetSyncConfig() const { return m_syncConfig; }
183 inline bool SyncConfigHasBeenSet() const { return m_syncConfigHasBeenSet; }
184 template <typename SyncConfigT = SyncConfig>
185 void SetSyncConfig(SyncConfigT&& value) {
186 m_syncConfigHasBeenSet = true;
187 m_syncConfig = std::forward<SyncConfigT>(value);
188 }
189 template <typename SyncConfigT = SyncConfig>
190 UpdateFunctionRequest& WithSyncConfig(SyncConfigT&& value) {
191 SetSyncConfig(std::forward<SyncConfigT>(value));
192 return *this;
193 }
195
197
200 inline int GetMaxBatchSize() const { return m_maxBatchSize; }
201 inline bool MaxBatchSizeHasBeenSet() const { return m_maxBatchSizeHasBeenSet; }
202 inline void SetMaxBatchSize(int value) {
203 m_maxBatchSizeHasBeenSet = true;
204 m_maxBatchSize = value;
205 }
207 SetMaxBatchSize(value);
208 return *this;
209 }
211
213
214 inline const AppSyncRuntime& GetRuntime() const { return m_runtime; }
215 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
216 template <typename RuntimeT = AppSyncRuntime>
217 void SetRuntime(RuntimeT&& value) {
218 m_runtimeHasBeenSet = true;
219 m_runtime = std::forward<RuntimeT>(value);
220 }
221 template <typename RuntimeT = AppSyncRuntime>
223 SetRuntime(std::forward<RuntimeT>(value));
224 return *this;
225 }
227
229
234 inline const Aws::String& GetCode() const { return m_code; }
235 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
236 template <typename CodeT = Aws::String>
237 void SetCode(CodeT&& value) {
238 m_codeHasBeenSet = true;
239 m_code = std::forward<CodeT>(value);
240 }
241 template <typename CodeT = Aws::String>
243 SetCode(std::forward<CodeT>(value));
244 return *this;
245 }
247 private:
248 Aws::String m_apiId;
249
250 Aws::String m_name;
251
252 Aws::String m_description;
253
254 Aws::String m_functionId;
255
256 Aws::String m_dataSourceName;
257
258 Aws::String m_requestMappingTemplate;
259
260 Aws::String m_responseMappingTemplate;
261
262 Aws::String m_functionVersion;
263
264 SyncConfig m_syncConfig;
265
266 int m_maxBatchSize{0};
267
268 AppSyncRuntime m_runtime;
269
270 Aws::String m_code;
271 bool m_apiIdHasBeenSet = false;
272 bool m_nameHasBeenSet = false;
273 bool m_descriptionHasBeenSet = false;
274 bool m_functionIdHasBeenSet = false;
275 bool m_dataSourceNameHasBeenSet = false;
276 bool m_requestMappingTemplateHasBeenSet = false;
277 bool m_responseMappingTemplateHasBeenSet = false;
278 bool m_functionVersionHasBeenSet = false;
279 bool m_syncConfigHasBeenSet = false;
280 bool m_maxBatchSizeHasBeenSet = false;
281 bool m_runtimeHasBeenSet = false;
282 bool m_codeHasBeenSet = false;
283};
284
285} // namespace Model
286} // namespace AppSync
287} // namespace Aws
AWS_APPSYNC_API Aws::String SerializePayload() const override
UpdateFunctionRequest & WithDescription(DescriptionT &&value)
UpdateFunctionRequest & WithApiId(ApiIdT &&value)
UpdateFunctionRequest & WithFunctionVersion(FunctionVersionT &&value)
UpdateFunctionRequest & WithFunctionId(FunctionIdT &&value)
const Aws::String & GetRequestMappingTemplate() const
AWS_APPSYNC_API UpdateFunctionRequest()=default
void SetResponseMappingTemplate(ResponseMappingTemplateT &&value)
UpdateFunctionRequest & WithName(NameT &&value)
UpdateFunctionRequest & WithRequestMappingTemplate(RequestMappingTemplateT &&value)
virtual const char * GetServiceRequestName() const override
void SetRequestMappingTemplate(RequestMappingTemplateT &&value)
const Aws::String & GetResponseMappingTemplate() const
UpdateFunctionRequest & WithMaxBatchSize(int value)
UpdateFunctionRequest & WithCode(CodeT &&value)
UpdateFunctionRequest & WithSyncConfig(SyncConfigT &&value)
UpdateFunctionRequest & WithDataSourceName(DataSourceNameT &&value)
void SetFunctionVersion(FunctionVersionT &&value)
UpdateFunctionRequest & WithRuntime(RuntimeT &&value)
UpdateFunctionRequest & WithResponseMappingTemplate(ResponseMappingTemplateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String