AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateFunctionRequest.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/appsync/AppSyncRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/appsync/model/SyncConfig.h>
11#include <aws/appsync/model/AppSyncRuntime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace AppSync
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_APPSYNC_API CreateFunctionRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateFunction"; }
33
34 AWS_APPSYNC_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetApiId() const{ return m_apiId; }
42 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
43 inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; }
44 inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); }
45 inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); }
46 inline CreateFunctionRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
47 inline CreateFunctionRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
48 inline CreateFunctionRequest& WithApiId(const char* value) { SetApiId(value); return *this;}
50
52
56 inline const Aws::String& GetName() const{ return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
59 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
61 inline CreateFunctionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
62 inline CreateFunctionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
63 inline CreateFunctionRequest& WithName(const char* value) { SetName(value); return *this;}
65
67
70 inline const Aws::String& GetDescription() const{ return m_description; }
71 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
72 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
73 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
74 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
75 inline CreateFunctionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
76 inline CreateFunctionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
77 inline CreateFunctionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
79
81
84 inline const Aws::String& GetDataSourceName() const{ return m_dataSourceName; }
85 inline bool DataSourceNameHasBeenSet() const { return m_dataSourceNameHasBeenSet; }
86 inline void SetDataSourceName(const Aws::String& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = value; }
87 inline void SetDataSourceName(Aws::String&& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = std::move(value); }
88 inline void SetDataSourceName(const char* value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName.assign(value); }
89 inline CreateFunctionRequest& WithDataSourceName(const Aws::String& value) { SetDataSourceName(value); return *this;}
90 inline CreateFunctionRequest& WithDataSourceName(Aws::String&& value) { SetDataSourceName(std::move(value)); return *this;}
91 inline CreateFunctionRequest& WithDataSourceName(const char* value) { SetDataSourceName(value); return *this;}
93
95
99 inline const Aws::String& GetRequestMappingTemplate() const{ return m_requestMappingTemplate; }
100 inline bool RequestMappingTemplateHasBeenSet() const { return m_requestMappingTemplateHasBeenSet; }
101 inline void SetRequestMappingTemplate(const Aws::String& value) { m_requestMappingTemplateHasBeenSet = true; m_requestMappingTemplate = value; }
102 inline void SetRequestMappingTemplate(Aws::String&& value) { m_requestMappingTemplateHasBeenSet = true; m_requestMappingTemplate = std::move(value); }
103 inline void SetRequestMappingTemplate(const char* value) { m_requestMappingTemplateHasBeenSet = true; m_requestMappingTemplate.assign(value); }
106 inline CreateFunctionRequest& WithRequestMappingTemplate(const char* value) { SetRequestMappingTemplate(value); return *this;}
108
110
113 inline const Aws::String& GetResponseMappingTemplate() const{ return m_responseMappingTemplate; }
114 inline bool ResponseMappingTemplateHasBeenSet() const { return m_responseMappingTemplateHasBeenSet; }
115 inline void SetResponseMappingTemplate(const Aws::String& value) { m_responseMappingTemplateHasBeenSet = true; m_responseMappingTemplate = value; }
116 inline void SetResponseMappingTemplate(Aws::String&& value) { m_responseMappingTemplateHasBeenSet = true; m_responseMappingTemplate = std::move(value); }
117 inline void SetResponseMappingTemplate(const char* value) { m_responseMappingTemplateHasBeenSet = true; m_responseMappingTemplate.assign(value); }
120 inline CreateFunctionRequest& WithResponseMappingTemplate(const char* value) { SetResponseMappingTemplate(value); return *this;}
122
124
129 inline const Aws::String& GetFunctionVersion() const{ return m_functionVersion; }
130 inline bool FunctionVersionHasBeenSet() const { return m_functionVersionHasBeenSet; }
131 inline void SetFunctionVersion(const Aws::String& value) { m_functionVersionHasBeenSet = true; m_functionVersion = value; }
132 inline void SetFunctionVersion(Aws::String&& value) { m_functionVersionHasBeenSet = true; m_functionVersion = std::move(value); }
133 inline void SetFunctionVersion(const char* value) { m_functionVersionHasBeenSet = true; m_functionVersion.assign(value); }
134 inline CreateFunctionRequest& WithFunctionVersion(const Aws::String& value) { SetFunctionVersion(value); return *this;}
135 inline CreateFunctionRequest& WithFunctionVersion(Aws::String&& value) { SetFunctionVersion(std::move(value)); return *this;}
136 inline CreateFunctionRequest& WithFunctionVersion(const char* value) { SetFunctionVersion(value); return *this;}
138
140
141 inline const SyncConfig& GetSyncConfig() const{ return m_syncConfig; }
142 inline bool SyncConfigHasBeenSet() const { return m_syncConfigHasBeenSet; }
143 inline void SetSyncConfig(const SyncConfig& value) { m_syncConfigHasBeenSet = true; m_syncConfig = value; }
144 inline void SetSyncConfig(SyncConfig&& value) { m_syncConfigHasBeenSet = true; m_syncConfig = std::move(value); }
145 inline CreateFunctionRequest& WithSyncConfig(const SyncConfig& value) { SetSyncConfig(value); return *this;}
146 inline CreateFunctionRequest& WithSyncConfig(SyncConfig&& value) { SetSyncConfig(std::move(value)); return *this;}
148
150
153 inline int GetMaxBatchSize() const{ return m_maxBatchSize; }
154 inline bool MaxBatchSizeHasBeenSet() const { return m_maxBatchSizeHasBeenSet; }
155 inline void SetMaxBatchSize(int value) { m_maxBatchSizeHasBeenSet = true; m_maxBatchSize = value; }
156 inline CreateFunctionRequest& WithMaxBatchSize(int value) { SetMaxBatchSize(value); return *this;}
158
160
161 inline const AppSyncRuntime& GetRuntime() const{ return m_runtime; }
162 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
163 inline void SetRuntime(const AppSyncRuntime& value) { m_runtimeHasBeenSet = true; m_runtime = value; }
164 inline void SetRuntime(AppSyncRuntime&& value) { m_runtimeHasBeenSet = true; m_runtime = std::move(value); }
165 inline CreateFunctionRequest& WithRuntime(const AppSyncRuntime& value) { SetRuntime(value); return *this;}
166 inline CreateFunctionRequest& WithRuntime(AppSyncRuntime&& value) { SetRuntime(std::move(value)); return *this;}
168
170
175 inline const Aws::String& GetCode() const{ return m_code; }
176 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
177 inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
178 inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
179 inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
180 inline CreateFunctionRequest& WithCode(const Aws::String& value) { SetCode(value); return *this;}
181 inline CreateFunctionRequest& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
182 inline CreateFunctionRequest& WithCode(const char* value) { SetCode(value); return *this;}
184 private:
185
186 Aws::String m_apiId;
187 bool m_apiIdHasBeenSet = false;
188
189 Aws::String m_name;
190 bool m_nameHasBeenSet = false;
191
192 Aws::String m_description;
193 bool m_descriptionHasBeenSet = false;
194
195 Aws::String m_dataSourceName;
196 bool m_dataSourceNameHasBeenSet = false;
197
198 Aws::String m_requestMappingTemplate;
199 bool m_requestMappingTemplateHasBeenSet = false;
200
201 Aws::String m_responseMappingTemplate;
202 bool m_responseMappingTemplateHasBeenSet = false;
203
204 Aws::String m_functionVersion;
205 bool m_functionVersionHasBeenSet = false;
206
207 SyncConfig m_syncConfig;
208 bool m_syncConfigHasBeenSet = false;
209
210 int m_maxBatchSize;
211 bool m_maxBatchSizeHasBeenSet = false;
212
213 AppSyncRuntime m_runtime;
214 bool m_runtimeHasBeenSet = false;
215
216 Aws::String m_code;
217 bool m_codeHasBeenSet = false;
218 };
219
220} // namespace Model
221} // namespace AppSync
222} // namespace Aws
const Aws::String & GetRequestMappingTemplate() const
CreateFunctionRequest & WithRequestMappingTemplate(const char *value)
CreateFunctionRequest & WithRequestMappingTemplate(const Aws::String &value)
CreateFunctionRequest & WithName(const Aws::String &value)
CreateFunctionRequest & WithCode(Aws::String &&value)
CreateFunctionRequest & WithName(const char *value)
void SetDescription(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateFunctionRequest & WithDataSourceName(const Aws::String &value)
CreateFunctionRequest & WithDataSourceName(Aws::String &&value)
CreateFunctionRequest & WithDescription(Aws::String &&value)
CreateFunctionRequest & WithFunctionVersion(const Aws::String &value)
void SetRuntime(const AppSyncRuntime &value)
void SetDataSourceName(const Aws::String &value)
CreateFunctionRequest & WithSyncConfig(SyncConfig &&value)
CreateFunctionRequest & WithFunctionVersion(const char *value)
CreateFunctionRequest & WithRequestMappingTemplate(Aws::String &&value)
void SetRequestMappingTemplate(const Aws::String &value)
CreateFunctionRequest & WithApiId(Aws::String &&value)
CreateFunctionRequest & WithRuntime(const AppSyncRuntime &value)
CreateFunctionRequest & WithDescription(const Aws::String &value)
CreateFunctionRequest & WithFunctionVersion(Aws::String &&value)
CreateFunctionRequest & WithResponseMappingTemplate(Aws::String &&value)
CreateFunctionRequest & WithSyncConfig(const SyncConfig &value)
CreateFunctionRequest & WithName(Aws::String &&value)
void SetResponseMappingTemplate(const Aws::String &value)
CreateFunctionRequest & WithCode(const char *value)
CreateFunctionRequest & WithDescription(const char *value)
CreateFunctionRequest & WithResponseMappingTemplate(const Aws::String &value)
CreateFunctionRequest & WithApiId(const char *value)
CreateFunctionRequest & WithDataSourceName(const char *value)
CreateFunctionRequest & WithApiId(const Aws::String &value)
void SetFunctionVersion(const Aws::String &value)
CreateFunctionRequest & WithMaxBatchSize(int value)
CreateFunctionRequest & WithResponseMappingTemplate(const char *value)
CreateFunctionRequest & WithCode(const Aws::String &value)
AWS_APPSYNC_API Aws::String SerializePayload() const override
const Aws::String & GetResponseMappingTemplate() const
CreateFunctionRequest & WithRuntime(AppSyncRuntime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String