AWS SDK for C++  1.9.154
AWS SDK for C++
FunctionConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace AppSync
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetFunctionId() const{ return m_functionId; }
46 
50  inline bool FunctionIdHasBeenSet() const { return m_functionIdHasBeenSet; }
51 
55  inline void SetFunctionId(const Aws::String& value) { m_functionIdHasBeenSet = true; m_functionId = value; }
56 
60  inline void SetFunctionId(Aws::String&& value) { m_functionIdHasBeenSet = true; m_functionId = std::move(value); }
61 
65  inline void SetFunctionId(const char* value) { m_functionIdHasBeenSet = true; m_functionId.assign(value); }
66 
70  inline FunctionConfiguration& WithFunctionId(const Aws::String& value) { SetFunctionId(value); return *this;}
71 
75  inline FunctionConfiguration& WithFunctionId(Aws::String&& value) { SetFunctionId(std::move(value)); return *this;}
76 
80  inline FunctionConfiguration& WithFunctionId(const char* value) { SetFunctionId(value); return *this;}
81 
82 
86  inline const Aws::String& GetFunctionArn() const{ return m_functionArn; }
87 
91  inline bool FunctionArnHasBeenSet() const { return m_functionArnHasBeenSet; }
92 
96  inline void SetFunctionArn(const Aws::String& value) { m_functionArnHasBeenSet = true; m_functionArn = value; }
97 
101  inline void SetFunctionArn(Aws::String&& value) { m_functionArnHasBeenSet = true; m_functionArn = std::move(value); }
102 
106  inline void SetFunctionArn(const char* value) { m_functionArnHasBeenSet = true; m_functionArn.assign(value); }
107 
111  inline FunctionConfiguration& WithFunctionArn(const Aws::String& value) { SetFunctionArn(value); return *this;}
112 
116  inline FunctionConfiguration& WithFunctionArn(Aws::String&& value) { SetFunctionArn(std::move(value)); return *this;}
117 
121  inline FunctionConfiguration& WithFunctionArn(const char* value) { SetFunctionArn(value); return *this;}
122 
123 
127  inline const Aws::String& GetName() const{ return m_name; }
128 
132  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
133 
137  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
138 
142  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
143 
147  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
148 
152  inline FunctionConfiguration& WithName(const Aws::String& value) { SetName(value); return *this;}
153 
157  inline FunctionConfiguration& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
158 
162  inline FunctionConfiguration& WithName(const char* value) { SetName(value); return *this;}
163 
164 
168  inline const Aws::String& GetDescription() const{ return m_description; }
169 
173  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
174 
178  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
179 
183  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
184 
188  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
189 
193  inline FunctionConfiguration& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
194 
198  inline FunctionConfiguration& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
199 
203  inline FunctionConfiguration& WithDescription(const char* value) { SetDescription(value); return *this;}
204 
205 
209  inline const Aws::String& GetDataSourceName() const{ return m_dataSourceName; }
210 
214  inline bool DataSourceNameHasBeenSet() const { return m_dataSourceNameHasBeenSet; }
215 
219  inline void SetDataSourceName(const Aws::String& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = value; }
220 
224  inline void SetDataSourceName(Aws::String&& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = std::move(value); }
225 
229  inline void SetDataSourceName(const char* value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName.assign(value); }
230 
234  inline FunctionConfiguration& WithDataSourceName(const Aws::String& value) { SetDataSourceName(value); return *this;}
235 
239  inline FunctionConfiguration& WithDataSourceName(Aws::String&& value) { SetDataSourceName(std::move(value)); return *this;}
240 
244  inline FunctionConfiguration& WithDataSourceName(const char* value) { SetDataSourceName(value); return *this;}
245 
246 
251  inline const Aws::String& GetRequestMappingTemplate() const{ return m_requestMappingTemplate; }
252 
257  inline bool RequestMappingTemplateHasBeenSet() const { return m_requestMappingTemplateHasBeenSet; }
258 
263  inline void SetRequestMappingTemplate(const Aws::String& value) { m_requestMappingTemplateHasBeenSet = true; m_requestMappingTemplate = value; }
264 
269  inline void SetRequestMappingTemplate(Aws::String&& value) { m_requestMappingTemplateHasBeenSet = true; m_requestMappingTemplate = std::move(value); }
270 
275  inline void SetRequestMappingTemplate(const char* value) { m_requestMappingTemplateHasBeenSet = true; m_requestMappingTemplate.assign(value); }
276 
281  inline FunctionConfiguration& WithRequestMappingTemplate(const Aws::String& value) { SetRequestMappingTemplate(value); return *this;}
282 
287  inline FunctionConfiguration& WithRequestMappingTemplate(Aws::String&& value) { SetRequestMappingTemplate(std::move(value)); return *this;}
288 
293  inline FunctionConfiguration& WithRequestMappingTemplate(const char* value) { SetRequestMappingTemplate(value); return *this;}
294 
295 
299  inline const Aws::String& GetResponseMappingTemplate() const{ return m_responseMappingTemplate; }
300 
304  inline bool ResponseMappingTemplateHasBeenSet() const { return m_responseMappingTemplateHasBeenSet; }
305 
309  inline void SetResponseMappingTemplate(const Aws::String& value) { m_responseMappingTemplateHasBeenSet = true; m_responseMappingTemplate = value; }
310 
314  inline void SetResponseMappingTemplate(Aws::String&& value) { m_responseMappingTemplateHasBeenSet = true; m_responseMappingTemplate = std::move(value); }
315 
319  inline void SetResponseMappingTemplate(const char* value) { m_responseMappingTemplateHasBeenSet = true; m_responseMappingTemplate.assign(value); }
320 
324  inline FunctionConfiguration& WithResponseMappingTemplate(const Aws::String& value) { SetResponseMappingTemplate(value); return *this;}
325 
329  inline FunctionConfiguration& WithResponseMappingTemplate(Aws::String&& value) { SetResponseMappingTemplate(std::move(value)); return *this;}
330 
334  inline FunctionConfiguration& WithResponseMappingTemplate(const char* value) { SetResponseMappingTemplate(value); return *this;}
335 
336 
341  inline const Aws::String& GetFunctionVersion() const{ return m_functionVersion; }
342 
347  inline bool FunctionVersionHasBeenSet() const { return m_functionVersionHasBeenSet; }
348 
353  inline void SetFunctionVersion(const Aws::String& value) { m_functionVersionHasBeenSet = true; m_functionVersion = value; }
354 
359  inline void SetFunctionVersion(Aws::String&& value) { m_functionVersionHasBeenSet = true; m_functionVersion = std::move(value); }
360 
365  inline void SetFunctionVersion(const char* value) { m_functionVersionHasBeenSet = true; m_functionVersion.assign(value); }
366 
371  inline FunctionConfiguration& WithFunctionVersion(const Aws::String& value) { SetFunctionVersion(value); return *this;}
372 
377  inline FunctionConfiguration& WithFunctionVersion(Aws::String&& value) { SetFunctionVersion(std::move(value)); return *this;}
378 
383  inline FunctionConfiguration& WithFunctionVersion(const char* value) { SetFunctionVersion(value); return *this;}
384 
385 
386 
387  inline const SyncConfig& GetSyncConfig() const{ return m_syncConfig; }
388 
389 
390  inline bool SyncConfigHasBeenSet() const { return m_syncConfigHasBeenSet; }
391 
392 
393  inline void SetSyncConfig(const SyncConfig& value) { m_syncConfigHasBeenSet = true; m_syncConfig = value; }
394 
395 
396  inline void SetSyncConfig(SyncConfig&& value) { m_syncConfigHasBeenSet = true; m_syncConfig = std::move(value); }
397 
398 
399  inline FunctionConfiguration& WithSyncConfig(const SyncConfig& value) { SetSyncConfig(value); return *this;}
400 
401 
402  inline FunctionConfiguration& WithSyncConfig(SyncConfig&& value) { SetSyncConfig(std::move(value)); return *this;}
403 
404  private:
405 
406  Aws::String m_functionId;
407  bool m_functionIdHasBeenSet;
408 
409  Aws::String m_functionArn;
410  bool m_functionArnHasBeenSet;
411 
412  Aws::String m_name;
413  bool m_nameHasBeenSet;
414 
415  Aws::String m_description;
416  bool m_descriptionHasBeenSet;
417 
418  Aws::String m_dataSourceName;
419  bool m_dataSourceNameHasBeenSet;
420 
421  Aws::String m_requestMappingTemplate;
422  bool m_requestMappingTemplateHasBeenSet;
423 
424  Aws::String m_responseMappingTemplate;
425  bool m_responseMappingTemplateHasBeenSet;
426 
427  Aws::String m_functionVersion;
428  bool m_functionVersionHasBeenSet;
429 
430  SyncConfig m_syncConfig;
431  bool m_syncConfigHasBeenSet;
432  };
433 
434 } // namespace Model
435 } // namespace AppSync
436 } // namespace Aws
Aws::AppSync::Model::FunctionConfiguration::GetResponseMappingTemplate
const Aws::String & GetResponseMappingTemplate() const
Definition: FunctionConfiguration.h:299
Aws::AppSync::Model::FunctionConfiguration::WithDataSourceName
FunctionConfiguration & WithDataSourceName(const Aws::String &value)
Definition: FunctionConfiguration.h:234
Aws::AppSync::Model::FunctionConfiguration::GetRequestMappingTemplate
const Aws::String & GetRequestMappingTemplate() const
Definition: FunctionConfiguration.h:251
Aws::AppSync::Model::FunctionConfiguration::WithDescription
FunctionConfiguration & WithDescription(const char *value)
Definition: FunctionConfiguration.h:203
Aws::AppSync::Model::FunctionConfiguration::WithResponseMappingTemplate
FunctionConfiguration & WithResponseMappingTemplate(const Aws::String &value)
Definition: FunctionConfiguration.h:324
Aws::AppSync::Model::FunctionConfiguration::WithDataSourceName
FunctionConfiguration & WithDataSourceName(Aws::String &&value)
Definition: FunctionConfiguration.h:239
Aws::AppSync::Model::FunctionConfiguration::WithFunctionArn
FunctionConfiguration & WithFunctionArn(const char *value)
Definition: FunctionConfiguration.h:121
Aws::AppSync::Model::FunctionConfiguration::WithDescription
FunctionConfiguration & WithDescription(const Aws::String &value)
Definition: FunctionConfiguration.h:193
Aws::AppSync::Model::FunctionConfiguration::SetFunctionId
void SetFunctionId(Aws::String &&value)
Definition: FunctionConfiguration.h:60
Aws::AppSync::Model::FunctionConfiguration::SetResponseMappingTemplate
void SetResponseMappingTemplate(const Aws::String &value)
Definition: FunctionConfiguration.h:309
Aws::AppSync::Model::FunctionConfiguration::WithFunctionVersion
FunctionConfiguration & WithFunctionVersion(Aws::String &&value)
Definition: FunctionConfiguration.h:377
Aws::AppSync::Model::FunctionConfiguration::SetDataSourceName
void SetDataSourceName(const Aws::String &value)
Definition: FunctionConfiguration.h:219
Aws::AppSync::Model::FunctionConfiguration::WithSyncConfig
FunctionConfiguration & WithSyncConfig(SyncConfig &&value)
Definition: FunctionConfiguration.h:402
Aws::AppSync::Model::FunctionConfiguration::WithFunctionId
FunctionConfiguration & WithFunctionId(Aws::String &&value)
Definition: FunctionConfiguration.h:75
Aws::AppSync::Model::FunctionConfiguration::DataSourceNameHasBeenSet
bool DataSourceNameHasBeenSet() const
Definition: FunctionConfiguration.h:214
Aws::AppSync::Model::FunctionConfiguration::WithSyncConfig
FunctionConfiguration & WithSyncConfig(const SyncConfig &value)
Definition: FunctionConfiguration.h:399
Aws::AppSync::Model::FunctionConfiguration::GetDataSourceName
const Aws::String & GetDataSourceName() const
Definition: FunctionConfiguration.h:209
Aws::AppSync::Model::FunctionConfiguration::GetSyncConfig
const SyncConfig & GetSyncConfig() const
Definition: FunctionConfiguration.h:387
Aws::AppSync::Model::FunctionConfiguration::WithResponseMappingTemplate
FunctionConfiguration & WithResponseMappingTemplate(Aws::String &&value)
Definition: FunctionConfiguration.h:329
Aws::AppSync::Model::FunctionConfiguration::SetName
void SetName(const Aws::String &value)
Definition: FunctionConfiguration.h:137
Aws::AppSync::Model::FunctionConfiguration::WithFunctionId
FunctionConfiguration & WithFunctionId(const char *value)
Definition: FunctionConfiguration.h:80
Aws::AppSync::Model::FunctionConfiguration::GetDescription
const Aws::String & GetDescription() const
Definition: FunctionConfiguration.h:168
Aws::AppSync::Model::FunctionConfiguration::WithRequestMappingTemplate
FunctionConfiguration & WithRequestMappingTemplate(Aws::String &&value)
Definition: FunctionConfiguration.h:287
Aws::AppSync::Model::FunctionConfiguration::SetDataSourceName
void SetDataSourceName(const char *value)
Definition: FunctionConfiguration.h:229
AppSync_EXPORTS.h
Aws::AppSync::Model::FunctionConfiguration::SetName
void SetName(const char *value)
Definition: FunctionConfiguration.h:147
Aws::AppSync::Model::FunctionConfiguration::WithDescription
FunctionConfiguration & WithDescription(Aws::String &&value)
Definition: FunctionConfiguration.h:198
Aws::AppSync::Model::FunctionConfiguration::RequestMappingTemplateHasBeenSet
bool RequestMappingTemplateHasBeenSet() const
Definition: FunctionConfiguration.h:257
Aws::AppSync::Model::FunctionConfiguration::SetDescription
void SetDescription(const char *value)
Definition: FunctionConfiguration.h:188
Aws::AppSync::Model::FunctionConfiguration
Definition: FunctionConfiguration.h:34
Aws::AppSync::Model::FunctionConfiguration::WithFunctionId
FunctionConfiguration & WithFunctionId(const Aws::String &value)
Definition: FunctionConfiguration.h:70
Aws::AppSync::Model::FunctionConfiguration::SetName
void SetName(Aws::String &&value)
Definition: FunctionConfiguration.h:142
Aws::AppSync::Model::FunctionConfiguration::WithFunctionVersion
FunctionConfiguration & WithFunctionVersion(const char *value)
Definition: FunctionConfiguration.h:383
Aws::AppSync::Model::FunctionConfiguration::SetRequestMappingTemplate
void SetRequestMappingTemplate(const Aws::String &value)
Definition: FunctionConfiguration.h:263
Aws::AppSync::Model::FunctionConfiguration::FunctionVersionHasBeenSet
bool FunctionVersionHasBeenSet() const
Definition: FunctionConfiguration.h:347
SyncConfig.h
Aws::AppSync::Model::FunctionConfiguration::SetFunctionArn
void SetFunctionArn(const char *value)
Definition: FunctionConfiguration.h:106
Aws::AppSync::Model::FunctionConfiguration::SetDataSourceName
void SetDataSourceName(Aws::String &&value)
Definition: FunctionConfiguration.h:224
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::AppSync::Model::FunctionConfiguration::FunctionArnHasBeenSet
bool FunctionArnHasBeenSet() const
Definition: FunctionConfiguration.h:91
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AppSync::Model::FunctionConfiguration::SetResponseMappingTemplate
void SetResponseMappingTemplate(const char *value)
Definition: FunctionConfiguration.h:319
Aws::AppSync::Model::FunctionConfiguration::FunctionIdHasBeenSet
bool FunctionIdHasBeenSet() const
Definition: FunctionConfiguration.h:50
Aws::AppSync::Model::FunctionConfiguration::WithResponseMappingTemplate
FunctionConfiguration & WithResponseMappingTemplate(const char *value)
Definition: FunctionConfiguration.h:334
Aws::AppSync::Model::FunctionConfiguration::GetFunctionId
const Aws::String & GetFunctionId() const
Definition: FunctionConfiguration.h:45
Aws::AppSync::Model::FunctionConfiguration::WithName
FunctionConfiguration & WithName(Aws::String &&value)
Definition: FunctionConfiguration.h:157
Aws::AppSync::Model::FunctionConfiguration::SetFunctionVersion
void SetFunctionVersion(Aws::String &&value)
Definition: FunctionConfiguration.h:359
Aws::AppSync::Model::FunctionConfiguration::WithFunctionArn
FunctionConfiguration & WithFunctionArn(const Aws::String &value)
Definition: FunctionConfiguration.h:111
Aws::AppSync::Model::FunctionConfiguration::SetFunctionId
void SetFunctionId(const char *value)
Definition: FunctionConfiguration.h:65
Aws::AppSync::Model::FunctionConfiguration::SetFunctionVersion
void SetFunctionVersion(const char *value)
Definition: FunctionConfiguration.h:365
Aws::AppSync::Model::FunctionConfiguration::SetFunctionVersion
void SetFunctionVersion(const Aws::String &value)
Definition: FunctionConfiguration.h:353
Aws::AppSync::Model::FunctionConfiguration::SetSyncConfig
void SetSyncConfig(const SyncConfig &value)
Definition: FunctionConfiguration.h:393
Aws::AppSync::Model::FunctionConfiguration::FunctionConfiguration
FunctionConfiguration()
Aws::AppSync::Model::FunctionConfiguration::WithRequestMappingTemplate
FunctionConfiguration & WithRequestMappingTemplate(const char *value)
Definition: FunctionConfiguration.h:293
Aws::AppSync::Model::FunctionConfiguration::WithFunctionArn
FunctionConfiguration & WithFunctionArn(Aws::String &&value)
Definition: FunctionConfiguration.h:116
Aws::AppSync::Model::FunctionConfiguration::GetFunctionVersion
const Aws::String & GetFunctionVersion() const
Definition: FunctionConfiguration.h:341
Aws::AppSync::Model::FunctionConfiguration::GetName
const Aws::String & GetName() const
Definition: FunctionConfiguration.h:127
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::AppSync::Model::FunctionConfiguration::WithDataSourceName
FunctionConfiguration & WithDataSourceName(const char *value)
Definition: FunctionConfiguration.h:244
Aws
Definition: AccessManagementClient.h:15
Aws::AppSync::Model::FunctionConfiguration::operator=
FunctionConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppSync::Model::FunctionConfiguration::WithName
FunctionConfiguration & WithName(const char *value)
Definition: FunctionConfiguration.h:162
Aws::AppSync::Model::FunctionConfiguration::SetDescription
void SetDescription(Aws::String &&value)
Definition: FunctionConfiguration.h:183
Aws::AppSync::Model::FunctionConfiguration::SetSyncConfig
void SetSyncConfig(SyncConfig &&value)
Definition: FunctionConfiguration.h:396
Aws::AppSync::Model::FunctionConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
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::FunctionConfiguration::SetRequestMappingTemplate
void SetRequestMappingTemplate(const char *value)
Definition: FunctionConfiguration.h:275
Aws::AppSync::Model::FunctionConfiguration::NameHasBeenSet
bool NameHasBeenSet() const
Definition: FunctionConfiguration.h:132
Aws::AppSync::Model::FunctionConfiguration::SetFunctionArn
void SetFunctionArn(const Aws::String &value)
Definition: FunctionConfiguration.h:96
Aws::AppSync::Model::FunctionConfiguration::SetFunctionId
void SetFunctionId(const Aws::String &value)
Definition: FunctionConfiguration.h:55
Aws::AppSync::Model::FunctionConfiguration::WithName
FunctionConfiguration & WithName(const Aws::String &value)
Definition: FunctionConfiguration.h:152
Aws::AppSync::Model::FunctionConfiguration::SetDescription
void SetDescription(const Aws::String &value)
Definition: FunctionConfiguration.h:178
Aws::AppSync::Model::FunctionConfiguration::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: FunctionConfiguration.h:173
Aws::AppSync::Model::FunctionConfiguration::FunctionConfiguration
FunctionConfiguration(Aws::Utils::Json::JsonView jsonValue)
Aws::AppSync::Model::FunctionConfiguration::GetFunctionArn
const Aws::String & GetFunctionArn() const
Definition: FunctionConfiguration.h:86
Aws::AppSync::Model::FunctionConfiguration::WithFunctionVersion
FunctionConfiguration & WithFunctionVersion(const Aws::String &value)
Definition: FunctionConfiguration.h:371
Aws::AppSync::Model::FunctionConfiguration::SyncConfigHasBeenSet
bool SyncConfigHasBeenSet() const
Definition: FunctionConfiguration.h:390
Aws::AppSync::Model::FunctionConfiguration::WithRequestMappingTemplate
FunctionConfiguration & WithRequestMappingTemplate(const Aws::String &value)
Definition: FunctionConfiguration.h:281
Aws::AppSync::Model::FunctionConfiguration::ResponseMappingTemplateHasBeenSet
bool ResponseMappingTemplateHasBeenSet() const
Definition: FunctionConfiguration.h:304
Aws::AppSync::Model::SyncConfig
Definition: SyncConfig.h:36
Aws::AppSync::Model::FunctionConfiguration::SetFunctionArn
void SetFunctionArn(Aws::String &&value)
Definition: FunctionConfiguration.h:101
Aws::AppSync::Model::FunctionConfiguration::SetRequestMappingTemplate
void SetRequestMappingTemplate(Aws::String &&value)
Definition: FunctionConfiguration.h:269
Aws::AppSync::Model::FunctionConfiguration::SetResponseMappingTemplate
void SetResponseMappingTemplate(Aws::String &&value)
Definition: FunctionConfiguration.h:314