AWS SDK for C++  1.9.155
AWS SDK for C++
UpdateFunctionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace AppSync
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "UpdateFunction"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
39  inline const Aws::String& GetApiId() const{ return m_apiId; }
40 
44  inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
45 
49  inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; }
50 
54  inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); }
55 
59  inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); }
60 
64  inline UpdateFunctionRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
65 
69  inline UpdateFunctionRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
70 
74  inline UpdateFunctionRequest& WithApiId(const char* value) { SetApiId(value); return *this;}
75 
76 
80  inline const Aws::String& GetName() const{ return m_name; }
81 
85  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
86 
90  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
91 
95  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
96 
100  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
101 
105  inline UpdateFunctionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
106 
110  inline UpdateFunctionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
111 
115  inline UpdateFunctionRequest& WithName(const char* value) { SetName(value); return *this;}
116 
117 
121  inline const Aws::String& GetDescription() const{ return m_description; }
122 
126  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
127 
131  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
132 
136  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
137 
141  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
142 
146  inline UpdateFunctionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
147 
151  inline UpdateFunctionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
152 
156  inline UpdateFunctionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
157 
158 
162  inline const Aws::String& GetFunctionId() const{ return m_functionId; }
163 
167  inline bool FunctionIdHasBeenSet() const { return m_functionIdHasBeenSet; }
168 
172  inline void SetFunctionId(const Aws::String& value) { m_functionIdHasBeenSet = true; m_functionId = value; }
173 
177  inline void SetFunctionId(Aws::String&& value) { m_functionIdHasBeenSet = true; m_functionId = std::move(value); }
178 
182  inline void SetFunctionId(const char* value) { m_functionIdHasBeenSet = true; m_functionId.assign(value); }
183 
187  inline UpdateFunctionRequest& WithFunctionId(const Aws::String& value) { SetFunctionId(value); return *this;}
188 
192  inline UpdateFunctionRequest& WithFunctionId(Aws::String&& value) { SetFunctionId(std::move(value)); return *this;}
193 
197  inline UpdateFunctionRequest& WithFunctionId(const char* value) { SetFunctionId(value); return *this;}
198 
199 
203  inline const Aws::String& GetDataSourceName() const{ return m_dataSourceName; }
204 
208  inline bool DataSourceNameHasBeenSet() const { return m_dataSourceNameHasBeenSet; }
209 
213  inline void SetDataSourceName(const Aws::String& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = value; }
214 
218  inline void SetDataSourceName(Aws::String&& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = std::move(value); }
219 
223  inline void SetDataSourceName(const char* value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName.assign(value); }
224 
228  inline UpdateFunctionRequest& WithDataSourceName(const Aws::String& value) { SetDataSourceName(value); return *this;}
229 
233  inline UpdateFunctionRequest& WithDataSourceName(Aws::String&& value) { SetDataSourceName(std::move(value)); return *this;}
234 
238  inline UpdateFunctionRequest& WithDataSourceName(const char* value) { SetDataSourceName(value); return *this;}
239 
240 
245  inline const Aws::String& GetRequestMappingTemplate() const{ return m_requestMappingTemplate; }
246 
251  inline bool RequestMappingTemplateHasBeenSet() const { return m_requestMappingTemplateHasBeenSet; }
252 
257  inline void SetRequestMappingTemplate(const Aws::String& value) { m_requestMappingTemplateHasBeenSet = true; m_requestMappingTemplate = value; }
258 
263  inline void SetRequestMappingTemplate(Aws::String&& value) { m_requestMappingTemplateHasBeenSet = true; m_requestMappingTemplate = std::move(value); }
264 
269  inline void SetRequestMappingTemplate(const char* value) { m_requestMappingTemplateHasBeenSet = true; m_requestMappingTemplate.assign(value); }
270 
275  inline UpdateFunctionRequest& WithRequestMappingTemplate(const Aws::String& value) { SetRequestMappingTemplate(value); return *this;}
276 
281  inline UpdateFunctionRequest& WithRequestMappingTemplate(Aws::String&& value) { SetRequestMappingTemplate(std::move(value)); return *this;}
282 
287  inline UpdateFunctionRequest& WithRequestMappingTemplate(const char* value) { SetRequestMappingTemplate(value); return *this;}
288 
289 
293  inline const Aws::String& GetResponseMappingTemplate() const{ return m_responseMappingTemplate; }
294 
298  inline bool ResponseMappingTemplateHasBeenSet() const { return m_responseMappingTemplateHasBeenSet; }
299 
303  inline void SetResponseMappingTemplate(const Aws::String& value) { m_responseMappingTemplateHasBeenSet = true; m_responseMappingTemplate = value; }
304 
308  inline void SetResponseMappingTemplate(Aws::String&& value) { m_responseMappingTemplateHasBeenSet = true; m_responseMappingTemplate = std::move(value); }
309 
313  inline void SetResponseMappingTemplate(const char* value) { m_responseMappingTemplateHasBeenSet = true; m_responseMappingTemplate.assign(value); }
314 
318  inline UpdateFunctionRequest& WithResponseMappingTemplate(const Aws::String& value) { SetResponseMappingTemplate(value); return *this;}
319 
323  inline UpdateFunctionRequest& WithResponseMappingTemplate(Aws::String&& value) { SetResponseMappingTemplate(std::move(value)); return *this;}
324 
328  inline UpdateFunctionRequest& WithResponseMappingTemplate(const char* value) { SetResponseMappingTemplate(value); return *this;}
329 
330 
335  inline const Aws::String& GetFunctionVersion() const{ return m_functionVersion; }
336 
341  inline bool FunctionVersionHasBeenSet() const { return m_functionVersionHasBeenSet; }
342 
347  inline void SetFunctionVersion(const Aws::String& value) { m_functionVersionHasBeenSet = true; m_functionVersion = value; }
348 
353  inline void SetFunctionVersion(Aws::String&& value) { m_functionVersionHasBeenSet = true; m_functionVersion = std::move(value); }
354 
359  inline void SetFunctionVersion(const char* value) { m_functionVersionHasBeenSet = true; m_functionVersion.assign(value); }
360 
365  inline UpdateFunctionRequest& WithFunctionVersion(const Aws::String& value) { SetFunctionVersion(value); return *this;}
366 
371  inline UpdateFunctionRequest& WithFunctionVersion(Aws::String&& value) { SetFunctionVersion(std::move(value)); return *this;}
372 
377  inline UpdateFunctionRequest& WithFunctionVersion(const char* value) { SetFunctionVersion(value); return *this;}
378 
379 
380 
381  inline const SyncConfig& GetSyncConfig() const{ return m_syncConfig; }
382 
383 
384  inline bool SyncConfigHasBeenSet() const { return m_syncConfigHasBeenSet; }
385 
386 
387  inline void SetSyncConfig(const SyncConfig& value) { m_syncConfigHasBeenSet = true; m_syncConfig = value; }
388 
389 
390  inline void SetSyncConfig(SyncConfig&& value) { m_syncConfigHasBeenSet = true; m_syncConfig = std::move(value); }
391 
392 
393  inline UpdateFunctionRequest& WithSyncConfig(const SyncConfig& value) { SetSyncConfig(value); return *this;}
394 
395 
396  inline UpdateFunctionRequest& WithSyncConfig(SyncConfig&& value) { SetSyncConfig(std::move(value)); return *this;}
397 
398  private:
399 
400  Aws::String m_apiId;
401  bool m_apiIdHasBeenSet;
402 
403  Aws::String m_name;
404  bool m_nameHasBeenSet;
405 
406  Aws::String m_description;
407  bool m_descriptionHasBeenSet;
408 
409  Aws::String m_functionId;
410  bool m_functionIdHasBeenSet;
411 
412  Aws::String m_dataSourceName;
413  bool m_dataSourceNameHasBeenSet;
414 
415  Aws::String m_requestMappingTemplate;
416  bool m_requestMappingTemplateHasBeenSet;
417 
418  Aws::String m_responseMappingTemplate;
419  bool m_responseMappingTemplateHasBeenSet;
420 
421  Aws::String m_functionVersion;
422  bool m_functionVersionHasBeenSet;
423 
424  SyncConfig m_syncConfig;
425  bool m_syncConfigHasBeenSet;
426  };
427 
428 } // namespace Model
429 } // namespace AppSync
430 } // namespace Aws
Aws::AppSync::Model::UpdateFunctionRequest::DataSourceNameHasBeenSet
bool DataSourceNameHasBeenSet() const
Definition: UpdateFunctionRequest.h:208
Aws::AppSync::AppSyncRequest
Definition: AppSyncRequest.h:17
Aws::AppSync::Model::UpdateFunctionRequest::GetResponseMappingTemplate
const Aws::String & GetResponseMappingTemplate() const
Definition: UpdateFunctionRequest.h:293
Aws::AppSync::Model::UpdateFunctionRequest::SetName
void SetName(Aws::String &&value)
Definition: UpdateFunctionRequest.h:95
Aws::AppSync::Model::UpdateFunctionRequest::SetFunctionId
void SetFunctionId(const Aws::String &value)
Definition: UpdateFunctionRequest.h:172
Aws::AppSync::Model::UpdateFunctionRequest::WithApiId
UpdateFunctionRequest & WithApiId(const char *value)
Definition: UpdateFunctionRequest.h:74
Aws::AppSync::Model::UpdateFunctionRequest::ResponseMappingTemplateHasBeenSet
bool ResponseMappingTemplateHasBeenSet() const
Definition: UpdateFunctionRequest.h:298
Aws::AppSync::Model::UpdateFunctionRequest::SetFunctionVersion
void SetFunctionVersion(const Aws::String &value)
Definition: UpdateFunctionRequest.h:347
Aws::AppSync::Model::UpdateFunctionRequest::GetRequestMappingTemplate
const Aws::String & GetRequestMappingTemplate() const
Definition: UpdateFunctionRequest.h:245
Aws::AppSync::Model::UpdateFunctionRequest::WithDescription
UpdateFunctionRequest & WithDescription(Aws::String &&value)
Definition: UpdateFunctionRequest.h:151
Aws::AppSync::Model::UpdateFunctionRequest::GetFunctionId
const Aws::String & GetFunctionId() const
Definition: UpdateFunctionRequest.h:162
Aws::AppSync::Model::UpdateFunctionRequest::SetRequestMappingTemplate
void SetRequestMappingTemplate(const char *value)
Definition: UpdateFunctionRequest.h:269
Aws::AppSync::Model::UpdateFunctionRequest::FunctionVersionHasBeenSet
bool FunctionVersionHasBeenSet() const
Definition: UpdateFunctionRequest.h:341
Aws::AppSync::Model::UpdateFunctionRequest::GetDataSourceName
const Aws::String & GetDataSourceName() const
Definition: UpdateFunctionRequest.h:203
Aws::AppSync::Model::UpdateFunctionRequest::SetApiId
void SetApiId(const char *value)
Definition: UpdateFunctionRequest.h:59
Aws::AppSync::Model::UpdateFunctionRequest::SetResponseMappingTemplate
void SetResponseMappingTemplate(Aws::String &&value)
Definition: UpdateFunctionRequest.h:308
Aws::AppSync::Model::UpdateFunctionRequest::WithSyncConfig
UpdateFunctionRequest & WithSyncConfig(SyncConfig &&value)
Definition: UpdateFunctionRequest.h:396
Aws::AppSync::Model::UpdateFunctionRequest::WithApiId
UpdateFunctionRequest & WithApiId(Aws::String &&value)
Definition: UpdateFunctionRequest.h:69
Aws::AppSync::Model::UpdateFunctionRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: UpdateFunctionRequest.h:85
AppSync_EXPORTS.h
Aws::AppSync::Model::UpdateFunctionRequest::WithFunctionId
UpdateFunctionRequest & WithFunctionId(const char *value)
Definition: UpdateFunctionRequest.h:197
Aws::AppSync::Model::UpdateFunctionRequest::GetDescription
const Aws::String & GetDescription() const
Definition: UpdateFunctionRequest.h:121
Aws::AppSync::Model::UpdateFunctionRequest
Definition: UpdateFunctionRequest.h:23
Aws::AppSync::Model::UpdateFunctionRequest::WithRequestMappingTemplate
UpdateFunctionRequest & WithRequestMappingTemplate(const Aws::String &value)
Definition: UpdateFunctionRequest.h:275
Aws::AppSync::Model::UpdateFunctionRequest::WithFunctionId
UpdateFunctionRequest & WithFunctionId(const Aws::String &value)
Definition: UpdateFunctionRequest.h:187
Aws::AppSync::Model::UpdateFunctionRequest::SetDataSourceName
void SetDataSourceName(Aws::String &&value)
Definition: UpdateFunctionRequest.h:218
Aws::AppSync::Model::UpdateFunctionRequest::WithSyncConfig
UpdateFunctionRequest & WithSyncConfig(const SyncConfig &value)
Definition: UpdateFunctionRequest.h:393
Aws::AppSync::Model::UpdateFunctionRequest::WithFunctionVersion
UpdateFunctionRequest & WithFunctionVersion(Aws::String &&value)
Definition: UpdateFunctionRequest.h:371
Aws::AppSync::Model::UpdateFunctionRequest::UpdateFunctionRequest
UpdateFunctionRequest()
Aws::AppSync::Model::UpdateFunctionRequest::WithFunctionVersion
UpdateFunctionRequest & WithFunctionVersion(const Aws::String &value)
Definition: UpdateFunctionRequest.h:365
Aws::AppSync::Model::UpdateFunctionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateFunctionRequest.h:31
Aws::AppSync::Model::UpdateFunctionRequest::WithDescription
UpdateFunctionRequest & WithDescription(const char *value)
Definition: UpdateFunctionRequest.h:156
Aws::AppSync::Model::UpdateFunctionRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: UpdateFunctionRequest.h:136
Aws::AppSync::Model::UpdateFunctionRequest::ApiIdHasBeenSet
bool ApiIdHasBeenSet() const
Definition: UpdateFunctionRequest.h:44
Aws::AppSync::Model::UpdateFunctionRequest::SetFunctionVersion
void SetFunctionVersion(Aws::String &&value)
Definition: UpdateFunctionRequest.h:353
Aws::AppSync::Model::UpdateFunctionRequest::SetSyncConfig
void SetSyncConfig(SyncConfig &&value)
Definition: UpdateFunctionRequest.h:390
Aws::AppSync::Model::UpdateFunctionRequest::WithName
UpdateFunctionRequest & WithName(const char *value)
Definition: UpdateFunctionRequest.h:115
Aws::AppSync::Model::UpdateFunctionRequest::WithFunctionVersion
UpdateFunctionRequest & WithFunctionVersion(const char *value)
Definition: UpdateFunctionRequest.h:377
Aws::AppSync::Model::UpdateFunctionRequest::SetApiId
void SetApiId(Aws::String &&value)
Definition: UpdateFunctionRequest.h:54
Aws::AppSync::Model::UpdateFunctionRequest::WithDescription
UpdateFunctionRequest & WithDescription(const Aws::String &value)
Definition: UpdateFunctionRequest.h:146
Aws::AppSync::Model::UpdateFunctionRequest::WithResponseMappingTemplate
UpdateFunctionRequest & WithResponseMappingTemplate(const char *value)
Definition: UpdateFunctionRequest.h:328
Aws::AppSync::Model::UpdateFunctionRequest::GetFunctionVersion
const Aws::String & GetFunctionVersion() const
Definition: UpdateFunctionRequest.h:335
SyncConfig.h
Aws::AppSync::Model::UpdateFunctionRequest::SetDescription
void SetDescription(const char *value)
Definition: UpdateFunctionRequest.h:141
Aws::AppSync::Model::UpdateFunctionRequest::SetApiId
void SetApiId(const Aws::String &value)
Definition: UpdateFunctionRequest.h:49
Aws::AppSync::Model::UpdateFunctionRequest::WithRequestMappingTemplate
UpdateFunctionRequest & WithRequestMappingTemplate(Aws::String &&value)
Definition: UpdateFunctionRequest.h:281
Aws::AppSync::Model::UpdateFunctionRequest::SetResponseMappingTemplate
void SetResponseMappingTemplate(const char *value)
Definition: UpdateFunctionRequest.h:313
Aws::AppSync::Model::UpdateFunctionRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: UpdateFunctionRequest.h:131
AWSString.h
Aws::AppSync::Model::UpdateFunctionRequest::WithFunctionId
UpdateFunctionRequest & WithFunctionId(Aws::String &&value)
Definition: UpdateFunctionRequest.h:192
Aws::AppSync::Model::UpdateFunctionRequest::WithResponseMappingTemplate
UpdateFunctionRequest & WithResponseMappingTemplate(Aws::String &&value)
Definition: UpdateFunctionRequest.h:323
Aws::AppSync::Model::UpdateFunctionRequest::RequestMappingTemplateHasBeenSet
bool RequestMappingTemplateHasBeenSet() const
Definition: UpdateFunctionRequest.h:251
Aws::AppSync::Model::UpdateFunctionRequest::SetRequestMappingTemplate
void SetRequestMappingTemplate(const Aws::String &value)
Definition: UpdateFunctionRequest.h:257
Aws::AppSync::Model::UpdateFunctionRequest::SetRequestMappingTemplate
void SetRequestMappingTemplate(Aws::String &&value)
Definition: UpdateFunctionRequest.h:263
Aws::AppSync::Model::UpdateFunctionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AppSync::Model::UpdateFunctionRequest::SetFunctionId
void SetFunctionId(const char *value)
Definition: UpdateFunctionRequest.h:182
Aws::AppSync::Model::UpdateFunctionRequest::WithName
UpdateFunctionRequest & WithName(const Aws::String &value)
Definition: UpdateFunctionRequest.h:105
Aws::AppSync::Model::UpdateFunctionRequest::WithDataSourceName
UpdateFunctionRequest & WithDataSourceName(const char *value)
Definition: UpdateFunctionRequest.h:238
Aws::AppSync::Model::UpdateFunctionRequest::FunctionIdHasBeenSet
bool FunctionIdHasBeenSet() const
Definition: UpdateFunctionRequest.h:167
Aws::AppSync::Model::UpdateFunctionRequest::WithApiId
UpdateFunctionRequest & WithApiId(const Aws::String &value)
Definition: UpdateFunctionRequest.h:64
Aws::AppSync::Model::UpdateFunctionRequest::SetName
void SetName(const Aws::String &value)
Definition: UpdateFunctionRequest.h:90
Aws::AppSync::Model::UpdateFunctionRequest::GetName
const Aws::String & GetName() const
Definition: UpdateFunctionRequest.h:80
Aws::AppSync::Model::UpdateFunctionRequest::WithDataSourceName
UpdateFunctionRequest & WithDataSourceName(const Aws::String &value)
Definition: UpdateFunctionRequest.h:228
AppSyncRequest.h
Aws::AppSync::Model::UpdateFunctionRequest::GetApiId
const Aws::String & GetApiId() const
Definition: UpdateFunctionRequest.h:39
Aws
Definition: AccessManagementClient.h:15
Aws::AppSync::Model::UpdateFunctionRequest::WithRequestMappingTemplate
UpdateFunctionRequest & WithRequestMappingTemplate(const char *value)
Definition: UpdateFunctionRequest.h:287
Aws::AppSync::Model::UpdateFunctionRequest::SetResponseMappingTemplate
void SetResponseMappingTemplate(const Aws::String &value)
Definition: UpdateFunctionRequest.h:303
Aws::AppSync::Model::UpdateFunctionRequest::SetName
void SetName(const char *value)
Definition: UpdateFunctionRequest.h:100
Aws::AppSync::Model::UpdateFunctionRequest::WithDataSourceName
UpdateFunctionRequest & WithDataSourceName(Aws::String &&value)
Definition: UpdateFunctionRequest.h:233
Aws::AppSync::Model::UpdateFunctionRequest::WithResponseMappingTemplate
UpdateFunctionRequest & WithResponseMappingTemplate(const Aws::String &value)
Definition: UpdateFunctionRequest.h:318
Aws::AppSync::Model::UpdateFunctionRequest::SetDataSourceName
void SetDataSourceName(const Aws::String &value)
Definition: UpdateFunctionRequest.h:213
Aws::AppSync::Model::UpdateFunctionRequest::WithName
UpdateFunctionRequest & WithName(Aws::String &&value)
Definition: UpdateFunctionRequest.h:110
Aws::AppSync::Model::UpdateFunctionRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: UpdateFunctionRequest.h:126
AWS_APPSYNC_API
#define AWS_APPSYNC_API
Definition: AppSync_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppSync::Model::UpdateFunctionRequest::SetDataSourceName
void SetDataSourceName(const char *value)
Definition: UpdateFunctionRequest.h:223
Aws::AppSync::Model::UpdateFunctionRequest::GetSyncConfig
const SyncConfig & GetSyncConfig() const
Definition: UpdateFunctionRequest.h:381
Aws::AppSync::Model::UpdateFunctionRequest::SetSyncConfig
void SetSyncConfig(const SyncConfig &value)
Definition: UpdateFunctionRequest.h:387
Aws::AppSync::Model::UpdateFunctionRequest::SetFunctionId
void SetFunctionId(Aws::String &&value)
Definition: UpdateFunctionRequest.h:177
Aws::AppSync::Model::UpdateFunctionRequest::SyncConfigHasBeenSet
bool SyncConfigHasBeenSet() const
Definition: UpdateFunctionRequest.h:384
Aws::AppSync::Model::UpdateFunctionRequest::SetFunctionVersion
void SetFunctionVersion(const char *value)
Definition: UpdateFunctionRequest.h:359
Aws::AppSync::Model::SyncConfig
Definition: SyncConfig.h:36