AWS SDK for C++  1.9.157
AWS SDK for C++
CreateFunctionRequest.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 "CreateFunction"; }
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 CreateFunctionRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
65 
69  inline CreateFunctionRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
70 
74  inline CreateFunctionRequest& WithApiId(const char* value) { SetApiId(value); return *this;}
75 
76 
81  inline const Aws::String& GetName() const{ return m_name; }
82 
87  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
88 
93  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
94 
99  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
100 
105  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
106 
111  inline CreateFunctionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
112 
117  inline CreateFunctionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
118 
123  inline CreateFunctionRequest& WithName(const char* value) { SetName(value); return *this;}
124 
125 
129  inline const Aws::String& GetDescription() const{ return m_description; }
130 
134  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
135 
139  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
140 
144  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
145 
149  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
150 
154  inline CreateFunctionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
155 
159  inline CreateFunctionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
160 
164  inline CreateFunctionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
165 
166 
170  inline const Aws::String& GetDataSourceName() const{ return m_dataSourceName; }
171 
175  inline bool DataSourceNameHasBeenSet() const { return m_dataSourceNameHasBeenSet; }
176 
180  inline void SetDataSourceName(const Aws::String& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = value; }
181 
185  inline void SetDataSourceName(Aws::String&& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = std::move(value); }
186 
190  inline void SetDataSourceName(const char* value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName.assign(value); }
191 
195  inline CreateFunctionRequest& WithDataSourceName(const Aws::String& value) { SetDataSourceName(value); return *this;}
196 
200  inline CreateFunctionRequest& WithDataSourceName(Aws::String&& value) { SetDataSourceName(std::move(value)); return *this;}
201 
205  inline CreateFunctionRequest& WithDataSourceName(const char* value) { SetDataSourceName(value); return *this;}
206 
207 
212  inline const Aws::String& GetRequestMappingTemplate() const{ return m_requestMappingTemplate; }
213 
218  inline bool RequestMappingTemplateHasBeenSet() const { return m_requestMappingTemplateHasBeenSet; }
219 
224  inline void SetRequestMappingTemplate(const Aws::String& value) { m_requestMappingTemplateHasBeenSet = true; m_requestMappingTemplate = value; }
225 
230  inline void SetRequestMappingTemplate(Aws::String&& value) { m_requestMappingTemplateHasBeenSet = true; m_requestMappingTemplate = std::move(value); }
231 
236  inline void SetRequestMappingTemplate(const char* value) { m_requestMappingTemplateHasBeenSet = true; m_requestMappingTemplate.assign(value); }
237 
242  inline CreateFunctionRequest& WithRequestMappingTemplate(const Aws::String& value) { SetRequestMappingTemplate(value); return *this;}
243 
248  inline CreateFunctionRequest& WithRequestMappingTemplate(Aws::String&& value) { SetRequestMappingTemplate(std::move(value)); return *this;}
249 
254  inline CreateFunctionRequest& WithRequestMappingTemplate(const char* value) { SetRequestMappingTemplate(value); return *this;}
255 
256 
260  inline const Aws::String& GetResponseMappingTemplate() const{ return m_responseMappingTemplate; }
261 
265  inline bool ResponseMappingTemplateHasBeenSet() const { return m_responseMappingTemplateHasBeenSet; }
266 
270  inline void SetResponseMappingTemplate(const Aws::String& value) { m_responseMappingTemplateHasBeenSet = true; m_responseMappingTemplate = value; }
271 
275  inline void SetResponseMappingTemplate(Aws::String&& value) { m_responseMappingTemplateHasBeenSet = true; m_responseMappingTemplate = std::move(value); }
276 
280  inline void SetResponseMappingTemplate(const char* value) { m_responseMappingTemplateHasBeenSet = true; m_responseMappingTemplate.assign(value); }
281 
285  inline CreateFunctionRequest& WithResponseMappingTemplate(const Aws::String& value) { SetResponseMappingTemplate(value); return *this;}
286 
290  inline CreateFunctionRequest& WithResponseMappingTemplate(Aws::String&& value) { SetResponseMappingTemplate(std::move(value)); return *this;}
291 
295  inline CreateFunctionRequest& WithResponseMappingTemplate(const char* value) { SetResponseMappingTemplate(value); return *this;}
296 
297 
302  inline const Aws::String& GetFunctionVersion() const{ return m_functionVersion; }
303 
308  inline bool FunctionVersionHasBeenSet() const { return m_functionVersionHasBeenSet; }
309 
314  inline void SetFunctionVersion(const Aws::String& value) { m_functionVersionHasBeenSet = true; m_functionVersion = value; }
315 
320  inline void SetFunctionVersion(Aws::String&& value) { m_functionVersionHasBeenSet = true; m_functionVersion = std::move(value); }
321 
326  inline void SetFunctionVersion(const char* value) { m_functionVersionHasBeenSet = true; m_functionVersion.assign(value); }
327 
332  inline CreateFunctionRequest& WithFunctionVersion(const Aws::String& value) { SetFunctionVersion(value); return *this;}
333 
338  inline CreateFunctionRequest& WithFunctionVersion(Aws::String&& value) { SetFunctionVersion(std::move(value)); return *this;}
339 
344  inline CreateFunctionRequest& WithFunctionVersion(const char* value) { SetFunctionVersion(value); return *this;}
345 
346 
347 
348  inline const SyncConfig& GetSyncConfig() const{ return m_syncConfig; }
349 
350 
351  inline bool SyncConfigHasBeenSet() const { return m_syncConfigHasBeenSet; }
352 
353 
354  inline void SetSyncConfig(const SyncConfig& value) { m_syncConfigHasBeenSet = true; m_syncConfig = value; }
355 
356 
357  inline void SetSyncConfig(SyncConfig&& value) { m_syncConfigHasBeenSet = true; m_syncConfig = std::move(value); }
358 
359 
360  inline CreateFunctionRequest& WithSyncConfig(const SyncConfig& value) { SetSyncConfig(value); return *this;}
361 
362 
363  inline CreateFunctionRequest& WithSyncConfig(SyncConfig&& value) { SetSyncConfig(std::move(value)); return *this;}
364 
365  private:
366 
367  Aws::String m_apiId;
368  bool m_apiIdHasBeenSet;
369 
370  Aws::String m_name;
371  bool m_nameHasBeenSet;
372 
373  Aws::String m_description;
374  bool m_descriptionHasBeenSet;
375 
376  Aws::String m_dataSourceName;
377  bool m_dataSourceNameHasBeenSet;
378 
379  Aws::String m_requestMappingTemplate;
380  bool m_requestMappingTemplateHasBeenSet;
381 
382  Aws::String m_responseMappingTemplate;
383  bool m_responseMappingTemplateHasBeenSet;
384 
385  Aws::String m_functionVersion;
386  bool m_functionVersionHasBeenSet;
387 
388  SyncConfig m_syncConfig;
389  bool m_syncConfigHasBeenSet;
390  };
391 
392 } // namespace Model
393 } // namespace AppSync
394 } // namespace Aws
Aws::AppSync::Model::CreateFunctionRequest::SetName
void SetName(const char *value)
Definition: CreateFunctionRequest.h:105
Aws::AppSync::Model::CreateFunctionRequest::SetDataSourceName
void SetDataSourceName(const Aws::String &value)
Definition: CreateFunctionRequest.h:180
Aws::AppSync::Model::CreateFunctionRequest::SyncConfigHasBeenSet
bool SyncConfigHasBeenSet() const
Definition: CreateFunctionRequest.h:351
Aws::AppSync::AppSyncRequest
Definition: AppSyncRequest.h:17
Aws::AppSync::Model::CreateFunctionRequest::WithResponseMappingTemplate
CreateFunctionRequest & WithResponseMappingTemplate(const Aws::String &value)
Definition: CreateFunctionRequest.h:285
Aws::AppSync::Model::CreateFunctionRequest::WithApiId
CreateFunctionRequest & WithApiId(const Aws::String &value)
Definition: CreateFunctionRequest.h:64
Aws::AppSync::Model::CreateFunctionRequest::SetApiId
void SetApiId(const Aws::String &value)
Definition: CreateFunctionRequest.h:49
Aws::AppSync::Model::CreateFunctionRequest::GetApiId
const Aws::String & GetApiId() const
Definition: CreateFunctionRequest.h:39
Aws::AppSync::Model::CreateFunctionRequest::WithName
CreateFunctionRequest & WithName(const Aws::String &value)
Definition: CreateFunctionRequest.h:111
Aws::AppSync::Model::CreateFunctionRequest::GetFunctionVersion
const Aws::String & GetFunctionVersion() const
Definition: CreateFunctionRequest.h:302
Aws::AppSync::Model::CreateFunctionRequest::WithDescription
CreateFunctionRequest & WithDescription(const Aws::String &value)
Definition: CreateFunctionRequest.h:154
Aws::AppSync::Model::CreateFunctionRequest::WithApiId
CreateFunctionRequest & WithApiId(Aws::String &&value)
Definition: CreateFunctionRequest.h:69
Aws::AppSync::Model::CreateFunctionRequest::SetRequestMappingTemplate
void SetRequestMappingTemplate(const char *value)
Definition: CreateFunctionRequest.h:236
Aws::AppSync::Model::CreateFunctionRequest::SetFunctionVersion
void SetFunctionVersion(const Aws::String &value)
Definition: CreateFunctionRequest.h:314
Aws::AppSync::Model::CreateFunctionRequest::DataSourceNameHasBeenSet
bool DataSourceNameHasBeenSet() const
Definition: CreateFunctionRequest.h:175
Aws::AppSync::Model::CreateFunctionRequest::CreateFunctionRequest
CreateFunctionRequest()
Aws::AppSync::Model::CreateFunctionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AppSync::Model::CreateFunctionRequest::WithDataSourceName
CreateFunctionRequest & WithDataSourceName(const char *value)
Definition: CreateFunctionRequest.h:205
Aws::AppSync::Model::CreateFunctionRequest::SetResponseMappingTemplate
void SetResponseMappingTemplate(const char *value)
Definition: CreateFunctionRequest.h:280
Aws::AppSync::Model::CreateFunctionRequest::WithDescription
CreateFunctionRequest & WithDescription(Aws::String &&value)
Definition: CreateFunctionRequest.h:159
AppSync_EXPORTS.h
Aws::AppSync::Model::CreateFunctionRequest::GetName
const Aws::String & GetName() const
Definition: CreateFunctionRequest.h:81
Aws::AppSync::Model::CreateFunctionRequest::SetSyncConfig
void SetSyncConfig(SyncConfig &&value)
Definition: CreateFunctionRequest.h:357
Aws::AppSync::Model::CreateFunctionRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateFunctionRequest.h:149
Aws::AppSync::Model::CreateFunctionRequest::GetRequestMappingTemplate
const Aws::String & GetRequestMappingTemplate() const
Definition: CreateFunctionRequest.h:212
Aws::AppSync::Model::CreateFunctionRequest::WithRequestMappingTemplate
CreateFunctionRequest & WithRequestMappingTemplate(Aws::String &&value)
Definition: CreateFunctionRequest.h:248
Aws::AppSync::Model::CreateFunctionRequest::GetDataSourceName
const Aws::String & GetDataSourceName() const
Definition: CreateFunctionRequest.h:170
Aws::AppSync::Model::CreateFunctionRequest::GetResponseMappingTemplate
const Aws::String & GetResponseMappingTemplate() const
Definition: CreateFunctionRequest.h:260
Aws::AppSync::Model::CreateFunctionRequest::SetRequestMappingTemplate
void SetRequestMappingTemplate(Aws::String &&value)
Definition: CreateFunctionRequest.h:230
Aws::AppSync::Model::CreateFunctionRequest::WithRequestMappingTemplate
CreateFunctionRequest & WithRequestMappingTemplate(const Aws::String &value)
Definition: CreateFunctionRequest.h:242
Aws::AppSync::Model::CreateFunctionRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateFunctionRequest.h:139
Aws::AppSync::Model::CreateFunctionRequest::SetDataSourceName
void SetDataSourceName(Aws::String &&value)
Definition: CreateFunctionRequest.h:185
Aws::AppSync::Model::CreateFunctionRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateFunctionRequest.h:129
Aws::AppSync::Model::CreateFunctionRequest::WithName
CreateFunctionRequest & WithName(const char *value)
Definition: CreateFunctionRequest.h:123
Aws::AppSync::Model::CreateFunctionRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateFunctionRequest.h:87
Aws::AppSync::Model::CreateFunctionRequest::WithFunctionVersion
CreateFunctionRequest & WithFunctionVersion(const Aws::String &value)
Definition: CreateFunctionRequest.h:332
Aws::AppSync::Model::CreateFunctionRequest::SetResponseMappingTemplate
void SetResponseMappingTemplate(Aws::String &&value)
Definition: CreateFunctionRequest.h:275
Aws::AppSync::Model::CreateFunctionRequest::WithName
CreateFunctionRequest & WithName(Aws::String &&value)
Definition: CreateFunctionRequest.h:117
Aws::AppSync::Model::CreateFunctionRequest::WithDataSourceName
CreateFunctionRequest & WithDataSourceName(const Aws::String &value)
Definition: CreateFunctionRequest.h:195
SyncConfig.h
Aws::AppSync::Model::CreateFunctionRequest::WithResponseMappingTemplate
CreateFunctionRequest & WithResponseMappingTemplate(const char *value)
Definition: CreateFunctionRequest.h:295
Aws::AppSync::Model::CreateFunctionRequest::WithFunctionVersion
CreateFunctionRequest & WithFunctionVersion(const char *value)
Definition: CreateFunctionRequest.h:344
Aws::AppSync::Model::CreateFunctionRequest::WithSyncConfig
CreateFunctionRequest & WithSyncConfig(const SyncConfig &value)
Definition: CreateFunctionRequest.h:360
Aws::AppSync::Model::CreateFunctionRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateFunctionRequest.h:99
AWSString.h
Aws::AppSync::Model::CreateFunctionRequest::WithRequestMappingTemplate
CreateFunctionRequest & WithRequestMappingTemplate(const char *value)
Definition: CreateFunctionRequest.h:254
Aws::AppSync::Model::CreateFunctionRequest::SetFunctionVersion
void SetFunctionVersion(Aws::String &&value)
Definition: CreateFunctionRequest.h:320
Aws::AppSync::Model::CreateFunctionRequest::SetApiId
void SetApiId(const char *value)
Definition: CreateFunctionRequest.h:59
Aws::AppSync::Model::CreateFunctionRequest::WithResponseMappingTemplate
CreateFunctionRequest & WithResponseMappingTemplate(Aws::String &&value)
Definition: CreateFunctionRequest.h:290
Aws::AppSync::Model::CreateFunctionRequest::SetDataSourceName
void SetDataSourceName(const char *value)
Definition: CreateFunctionRequest.h:190
Aws::AppSync::Model::CreateFunctionRequest::WithFunctionVersion
CreateFunctionRequest & WithFunctionVersion(Aws::String &&value)
Definition: CreateFunctionRequest.h:338
Aws::AppSync::Model::CreateFunctionRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateFunctionRequest.h:93
Aws::AppSync::Model::CreateFunctionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateFunctionRequest.h:31
Aws::AppSync::Model::CreateFunctionRequest::FunctionVersionHasBeenSet
bool FunctionVersionHasBeenSet() const
Definition: CreateFunctionRequest.h:308
Aws::AppSync::Model::CreateFunctionRequest::SetFunctionVersion
void SetFunctionVersion(const char *value)
Definition: CreateFunctionRequest.h:326
Aws::AppSync::Model::CreateFunctionRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateFunctionRequest.h:134
AppSyncRequest.h
Aws::AppSync::Model::CreateFunctionRequest::ApiIdHasBeenSet
bool ApiIdHasBeenSet() const
Definition: CreateFunctionRequest.h:44
Aws
Definition: AccessManagementClient.h:15
Aws::AppSync::Model::CreateFunctionRequest::SetSyncConfig
void SetSyncConfig(const SyncConfig &value)
Definition: CreateFunctionRequest.h:354
Aws::AppSync::Model::CreateFunctionRequest::ResponseMappingTemplateHasBeenSet
bool ResponseMappingTemplateHasBeenSet() const
Definition: CreateFunctionRequest.h:265
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::CreateFunctionRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateFunctionRequest.h:144
Aws::AppSync::Model::CreateFunctionRequest::GetSyncConfig
const SyncConfig & GetSyncConfig() const
Definition: CreateFunctionRequest.h:348
Aws::AppSync::Model::CreateFunctionRequest::SetResponseMappingTemplate
void SetResponseMappingTemplate(const Aws::String &value)
Definition: CreateFunctionRequest.h:270
Aws::AppSync::Model::CreateFunctionRequest::WithSyncConfig
CreateFunctionRequest & WithSyncConfig(SyncConfig &&value)
Definition: CreateFunctionRequest.h:363
Aws::AppSync::Model::CreateFunctionRequest::SetApiId
void SetApiId(Aws::String &&value)
Definition: CreateFunctionRequest.h:54
Aws::AppSync::Model::CreateFunctionRequest::RequestMappingTemplateHasBeenSet
bool RequestMappingTemplateHasBeenSet() const
Definition: CreateFunctionRequest.h:218
Aws::AppSync::Model::CreateFunctionRequest::WithDataSourceName
CreateFunctionRequest & WithDataSourceName(Aws::String &&value)
Definition: CreateFunctionRequest.h:200
Aws::AppSync::Model::CreateFunctionRequest::SetRequestMappingTemplate
void SetRequestMappingTemplate(const Aws::String &value)
Definition: CreateFunctionRequest.h:224
Aws::AppSync::Model::CreateFunctionRequest::WithApiId
CreateFunctionRequest & WithApiId(const char *value)
Definition: CreateFunctionRequest.h:74
Aws::AppSync::Model::SyncConfig
Definition: SyncConfig.h:36
Aws::AppSync::Model::CreateFunctionRequest::WithDescription
CreateFunctionRequest & WithDescription(const char *value)
Definition: CreateFunctionRequest.h:164
Aws::AppSync::Model::CreateFunctionRequest
Definition: CreateFunctionRequest.h:23