AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ApiIdT = Aws::String>
44 void SetApiId(ApiIdT&& value) { m_apiIdHasBeenSet = true; m_apiId = std::forward<ApiIdT>(value); }
45 template<typename ApiIdT = Aws::String>
46 CreateFunctionRequest& WithApiId(ApiIdT&& value) { SetApiId(std::forward<ApiIdT>(value)); return *this;}
48
50
54 inline const Aws::String& GetName() const { return m_name; }
55 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 template<typename NameT = Aws::String>
57 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
58 template<typename NameT = Aws::String>
59 CreateFunctionRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
61
63
66 inline const Aws::String& GetDescription() const { return m_description; }
67 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
68 template<typename DescriptionT = Aws::String>
69 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
70 template<typename DescriptionT = Aws::String>
71 CreateFunctionRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
73
75
78 inline const Aws::String& GetDataSourceName() const { return m_dataSourceName; }
79 inline bool DataSourceNameHasBeenSet() const { return m_dataSourceNameHasBeenSet; }
80 template<typename DataSourceNameT = Aws::String>
81 void SetDataSourceName(DataSourceNameT&& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = std::forward<DataSourceNameT>(value); }
82 template<typename DataSourceNameT = Aws::String>
83 CreateFunctionRequest& WithDataSourceName(DataSourceNameT&& value) { SetDataSourceName(std::forward<DataSourceNameT>(value)); return *this;}
85
87
91 inline const Aws::String& GetRequestMappingTemplate() const { return m_requestMappingTemplate; }
92 inline bool RequestMappingTemplateHasBeenSet() const { return m_requestMappingTemplateHasBeenSet; }
93 template<typename RequestMappingTemplateT = Aws::String>
94 void SetRequestMappingTemplate(RequestMappingTemplateT&& value) { m_requestMappingTemplateHasBeenSet = true; m_requestMappingTemplate = std::forward<RequestMappingTemplateT>(value); }
95 template<typename RequestMappingTemplateT = Aws::String>
96 CreateFunctionRequest& WithRequestMappingTemplate(RequestMappingTemplateT&& value) { SetRequestMappingTemplate(std::forward<RequestMappingTemplateT>(value)); return *this;}
98
100
103 inline const Aws::String& GetResponseMappingTemplate() const { return m_responseMappingTemplate; }
104 inline bool ResponseMappingTemplateHasBeenSet() const { return m_responseMappingTemplateHasBeenSet; }
105 template<typename ResponseMappingTemplateT = Aws::String>
106 void SetResponseMappingTemplate(ResponseMappingTemplateT&& value) { m_responseMappingTemplateHasBeenSet = true; m_responseMappingTemplate = std::forward<ResponseMappingTemplateT>(value); }
107 template<typename ResponseMappingTemplateT = Aws::String>
108 CreateFunctionRequest& WithResponseMappingTemplate(ResponseMappingTemplateT&& value) { SetResponseMappingTemplate(std::forward<ResponseMappingTemplateT>(value)); return *this;}
110
112
117 inline const Aws::String& GetFunctionVersion() const { return m_functionVersion; }
118 inline bool FunctionVersionHasBeenSet() const { return m_functionVersionHasBeenSet; }
119 template<typename FunctionVersionT = Aws::String>
120 void SetFunctionVersion(FunctionVersionT&& value) { m_functionVersionHasBeenSet = true; m_functionVersion = std::forward<FunctionVersionT>(value); }
121 template<typename FunctionVersionT = Aws::String>
122 CreateFunctionRequest& WithFunctionVersion(FunctionVersionT&& value) { SetFunctionVersion(std::forward<FunctionVersionT>(value)); return *this;}
124
126
127 inline const SyncConfig& GetSyncConfig() const { return m_syncConfig; }
128 inline bool SyncConfigHasBeenSet() const { return m_syncConfigHasBeenSet; }
129 template<typename SyncConfigT = SyncConfig>
130 void SetSyncConfig(SyncConfigT&& value) { m_syncConfigHasBeenSet = true; m_syncConfig = std::forward<SyncConfigT>(value); }
131 template<typename SyncConfigT = SyncConfig>
132 CreateFunctionRequest& WithSyncConfig(SyncConfigT&& value) { SetSyncConfig(std::forward<SyncConfigT>(value)); return *this;}
134
136
139 inline int GetMaxBatchSize() const { return m_maxBatchSize; }
140 inline bool MaxBatchSizeHasBeenSet() const { return m_maxBatchSizeHasBeenSet; }
141 inline void SetMaxBatchSize(int value) { m_maxBatchSizeHasBeenSet = true; m_maxBatchSize = value; }
142 inline CreateFunctionRequest& WithMaxBatchSize(int value) { SetMaxBatchSize(value); return *this;}
144
146
147 inline const AppSyncRuntime& GetRuntime() const { return m_runtime; }
148 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
149 template<typename RuntimeT = AppSyncRuntime>
150 void SetRuntime(RuntimeT&& value) { m_runtimeHasBeenSet = true; m_runtime = std::forward<RuntimeT>(value); }
151 template<typename RuntimeT = AppSyncRuntime>
152 CreateFunctionRequest& WithRuntime(RuntimeT&& value) { SetRuntime(std::forward<RuntimeT>(value)); return *this;}
154
156
161 inline const Aws::String& GetCode() const { return m_code; }
162 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
163 template<typename CodeT = Aws::String>
164 void SetCode(CodeT&& value) { m_codeHasBeenSet = true; m_code = std::forward<CodeT>(value); }
165 template<typename CodeT = Aws::String>
166 CreateFunctionRequest& WithCode(CodeT&& value) { SetCode(std::forward<CodeT>(value)); return *this;}
168 private:
169
170 Aws::String m_apiId;
171 bool m_apiIdHasBeenSet = false;
172
173 Aws::String m_name;
174 bool m_nameHasBeenSet = false;
175
176 Aws::String m_description;
177 bool m_descriptionHasBeenSet = false;
178
179 Aws::String m_dataSourceName;
180 bool m_dataSourceNameHasBeenSet = false;
181
182 Aws::String m_requestMappingTemplate;
183 bool m_requestMappingTemplateHasBeenSet = false;
184
185 Aws::String m_responseMappingTemplate;
186 bool m_responseMappingTemplateHasBeenSet = false;
187
188 Aws::String m_functionVersion;
189 bool m_functionVersionHasBeenSet = false;
190
191 SyncConfig m_syncConfig;
192 bool m_syncConfigHasBeenSet = false;
193
194 int m_maxBatchSize{0};
195 bool m_maxBatchSizeHasBeenSet = false;
196
197 AppSyncRuntime m_runtime;
198 bool m_runtimeHasBeenSet = false;
199
200 Aws::String m_code;
201 bool m_codeHasBeenSet = false;
202 };
203
204} // namespace Model
205} // namespace AppSync
206} // 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