AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateFunctionRequest.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 CreateFunctionRequest() = 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 "CreateFunction"; }
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
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template <typename NameT = Aws::String>
59 void SetName(NameT&& value) {
60 m_nameHasBeenSet = true;
61 m_name = std::forward<NameT>(value);
62 }
63 template <typename NameT = Aws::String>
65 SetName(std::forward<NameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 template <typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) {
78 m_descriptionHasBeenSet = true;
79 m_description = std::forward<DescriptionT>(value);
80 }
81 template <typename DescriptionT = Aws::String>
82 CreateFunctionRequest& WithDescription(DescriptionT&& value) {
83 SetDescription(std::forward<DescriptionT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetDataSourceName() const { return m_dataSourceName; }
93 inline bool DataSourceNameHasBeenSet() const { return m_dataSourceNameHasBeenSet; }
94 template <typename DataSourceNameT = Aws::String>
95 void SetDataSourceName(DataSourceNameT&& value) {
96 m_dataSourceNameHasBeenSet = true;
97 m_dataSourceName = std::forward<DataSourceNameT>(value);
98 }
99 template <typename DataSourceNameT = Aws::String>
100 CreateFunctionRequest& WithDataSourceName(DataSourceNameT&& value) {
101 SetDataSourceName(std::forward<DataSourceNameT>(value));
102 return *this;
103 }
105
107
111 inline const Aws::String& GetRequestMappingTemplate() const { return m_requestMappingTemplate; }
112 inline bool RequestMappingTemplateHasBeenSet() const { return m_requestMappingTemplateHasBeenSet; }
113 template <typename RequestMappingTemplateT = Aws::String>
114 void SetRequestMappingTemplate(RequestMappingTemplateT&& value) {
115 m_requestMappingTemplateHasBeenSet = true;
116 m_requestMappingTemplate = std::forward<RequestMappingTemplateT>(value);
117 }
118 template <typename RequestMappingTemplateT = Aws::String>
119 CreateFunctionRequest& WithRequestMappingTemplate(RequestMappingTemplateT&& value) {
120 SetRequestMappingTemplate(std::forward<RequestMappingTemplateT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetResponseMappingTemplate() const { return m_responseMappingTemplate; }
130 inline bool ResponseMappingTemplateHasBeenSet() const { return m_responseMappingTemplateHasBeenSet; }
131 template <typename ResponseMappingTemplateT = Aws::String>
132 void SetResponseMappingTemplate(ResponseMappingTemplateT&& value) {
133 m_responseMappingTemplateHasBeenSet = true;
134 m_responseMappingTemplate = std::forward<ResponseMappingTemplateT>(value);
135 }
136 template <typename ResponseMappingTemplateT = Aws::String>
137 CreateFunctionRequest& WithResponseMappingTemplate(ResponseMappingTemplateT&& value) {
138 SetResponseMappingTemplate(std::forward<ResponseMappingTemplateT>(value));
139 return *this;
140 }
142
144
149 inline const Aws::String& GetFunctionVersion() const { return m_functionVersion; }
150 inline bool FunctionVersionHasBeenSet() const { return m_functionVersionHasBeenSet; }
151 template <typename FunctionVersionT = Aws::String>
152 void SetFunctionVersion(FunctionVersionT&& value) {
153 m_functionVersionHasBeenSet = true;
154 m_functionVersion = std::forward<FunctionVersionT>(value);
155 }
156 template <typename FunctionVersionT = Aws::String>
157 CreateFunctionRequest& WithFunctionVersion(FunctionVersionT&& value) {
158 SetFunctionVersion(std::forward<FunctionVersionT>(value));
159 return *this;
160 }
162
164
165 inline const SyncConfig& GetSyncConfig() const { return m_syncConfig; }
166 inline bool SyncConfigHasBeenSet() const { return m_syncConfigHasBeenSet; }
167 template <typename SyncConfigT = SyncConfig>
168 void SetSyncConfig(SyncConfigT&& value) {
169 m_syncConfigHasBeenSet = true;
170 m_syncConfig = std::forward<SyncConfigT>(value);
171 }
172 template <typename SyncConfigT = SyncConfig>
173 CreateFunctionRequest& WithSyncConfig(SyncConfigT&& value) {
174 SetSyncConfig(std::forward<SyncConfigT>(value));
175 return *this;
176 }
178
180
183 inline int GetMaxBatchSize() const { return m_maxBatchSize; }
184 inline bool MaxBatchSizeHasBeenSet() const { return m_maxBatchSizeHasBeenSet; }
185 inline void SetMaxBatchSize(int value) {
186 m_maxBatchSizeHasBeenSet = true;
187 m_maxBatchSize = value;
188 }
190 SetMaxBatchSize(value);
191 return *this;
192 }
194
196
197 inline const AppSyncRuntime& GetRuntime() const { return m_runtime; }
198 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
199 template <typename RuntimeT = AppSyncRuntime>
200 void SetRuntime(RuntimeT&& value) {
201 m_runtimeHasBeenSet = true;
202 m_runtime = std::forward<RuntimeT>(value);
203 }
204 template <typename RuntimeT = AppSyncRuntime>
206 SetRuntime(std::forward<RuntimeT>(value));
207 return *this;
208 }
210
212
217 inline const Aws::String& GetCode() const { return m_code; }
218 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
219 template <typename CodeT = Aws::String>
220 void SetCode(CodeT&& value) {
221 m_codeHasBeenSet = true;
222 m_code = std::forward<CodeT>(value);
223 }
224 template <typename CodeT = Aws::String>
226 SetCode(std::forward<CodeT>(value));
227 return *this;
228 }
230 private:
231 Aws::String m_apiId;
232
233 Aws::String m_name;
234
235 Aws::String m_description;
236
237 Aws::String m_dataSourceName;
238
239 Aws::String m_requestMappingTemplate;
240
241 Aws::String m_responseMappingTemplate;
242
243 Aws::String m_functionVersion;
244
245 SyncConfig m_syncConfig;
246
247 int m_maxBatchSize{0};
248
249 AppSyncRuntime m_runtime;
250
251 Aws::String m_code;
252 bool m_apiIdHasBeenSet = false;
253 bool m_nameHasBeenSet = false;
254 bool m_descriptionHasBeenSet = false;
255 bool m_dataSourceNameHasBeenSet = false;
256 bool m_requestMappingTemplateHasBeenSet = false;
257 bool m_responseMappingTemplateHasBeenSet = false;
258 bool m_functionVersionHasBeenSet = false;
259 bool m_syncConfigHasBeenSet = false;
260 bool m_maxBatchSizeHasBeenSet = false;
261 bool m_runtimeHasBeenSet = false;
262 bool m_codeHasBeenSet = false;
263};
264
265} // namespace Model
266} // namespace AppSync
267} // namespace Aws
const Aws::String & GetRequestMappingTemplate() const
AWS_APPSYNC_API CreateFunctionRequest()=default
CreateFunctionRequest & WithCode(CodeT &&value)
CreateFunctionRequest & WithDataSourceName(DataSourceNameT &&value)
void SetDataSourceName(DataSourceNameT &&value)
CreateFunctionRequest & WithResponseMappingTemplate(ResponseMappingTemplateT &&value)
CreateFunctionRequest & WithRuntime(RuntimeT &&value)
void SetResponseMappingTemplate(ResponseMappingTemplateT &&value)
virtual const char * GetServiceRequestName() const override
CreateFunctionRequest & WithFunctionVersion(FunctionVersionT &&value)
CreateFunctionRequest & WithRequestMappingTemplate(RequestMappingTemplateT &&value)
CreateFunctionRequest & WithName(NameT &&value)
void SetRequestMappingTemplate(RequestMappingTemplateT &&value)
CreateFunctionRequest & WithDescription(DescriptionT &&value)
void SetFunctionVersion(FunctionVersionT &&value)
CreateFunctionRequest & WithSyncConfig(SyncConfigT &&value)
CreateFunctionRequest & WithMaxBatchSize(int value)
CreateFunctionRequest & WithApiId(ApiIdT &&value)
AWS_APPSYNC_API Aws::String SerializePayload() const override
const Aws::String & GetResponseMappingTemplate() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String