AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateFunctionRequest.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 UpdateFunctionRequest() = 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 "UpdateFunction"; }
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 UpdateFunctionRequest& WithApiId(ApiIdT&& value) { SetApiId(std::forward<ApiIdT>(value)); return *this;}
48
50
53 inline const Aws::String& GetName() const { return m_name; }
54 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 template<typename NameT = Aws::String>
56 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
57 template<typename NameT = Aws::String>
58 UpdateFunctionRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
60
62
65 inline const Aws::String& GetDescription() const { return m_description; }
66 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
67 template<typename DescriptionT = Aws::String>
68 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
69 template<typename DescriptionT = Aws::String>
70 UpdateFunctionRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
72
74
77 inline const Aws::String& GetFunctionId() const { return m_functionId; }
78 inline bool FunctionIdHasBeenSet() const { return m_functionIdHasBeenSet; }
79 template<typename FunctionIdT = Aws::String>
80 void SetFunctionId(FunctionIdT&& value) { m_functionIdHasBeenSet = true; m_functionId = std::forward<FunctionIdT>(value); }
81 template<typename FunctionIdT = Aws::String>
82 UpdateFunctionRequest& WithFunctionId(FunctionIdT&& value) { SetFunctionId(std::forward<FunctionIdT>(value)); return *this;}
84
86
89 inline const Aws::String& GetDataSourceName() const { return m_dataSourceName; }
90 inline bool DataSourceNameHasBeenSet() const { return m_dataSourceNameHasBeenSet; }
91 template<typename DataSourceNameT = Aws::String>
92 void SetDataSourceName(DataSourceNameT&& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = std::forward<DataSourceNameT>(value); }
93 template<typename DataSourceNameT = Aws::String>
94 UpdateFunctionRequest& WithDataSourceName(DataSourceNameT&& value) { SetDataSourceName(std::forward<DataSourceNameT>(value)); return *this;}
96
98
102 inline const Aws::String& GetRequestMappingTemplate() const { return m_requestMappingTemplate; }
103 inline bool RequestMappingTemplateHasBeenSet() const { return m_requestMappingTemplateHasBeenSet; }
104 template<typename RequestMappingTemplateT = Aws::String>
105 void SetRequestMappingTemplate(RequestMappingTemplateT&& value) { m_requestMappingTemplateHasBeenSet = true; m_requestMappingTemplate = std::forward<RequestMappingTemplateT>(value); }
106 template<typename RequestMappingTemplateT = Aws::String>
107 UpdateFunctionRequest& WithRequestMappingTemplate(RequestMappingTemplateT&& value) { SetRequestMappingTemplate(std::forward<RequestMappingTemplateT>(value)); return *this;}
109
111
114 inline const Aws::String& GetResponseMappingTemplate() const { return m_responseMappingTemplate; }
115 inline bool ResponseMappingTemplateHasBeenSet() const { return m_responseMappingTemplateHasBeenSet; }
116 template<typename ResponseMappingTemplateT = Aws::String>
117 void SetResponseMappingTemplate(ResponseMappingTemplateT&& value) { m_responseMappingTemplateHasBeenSet = true; m_responseMappingTemplate = std::forward<ResponseMappingTemplateT>(value); }
118 template<typename ResponseMappingTemplateT = Aws::String>
119 UpdateFunctionRequest& WithResponseMappingTemplate(ResponseMappingTemplateT&& value) { SetResponseMappingTemplate(std::forward<ResponseMappingTemplateT>(value)); return *this;}
121
123
128 inline const Aws::String& GetFunctionVersion() const { return m_functionVersion; }
129 inline bool FunctionVersionHasBeenSet() const { return m_functionVersionHasBeenSet; }
130 template<typename FunctionVersionT = Aws::String>
131 void SetFunctionVersion(FunctionVersionT&& value) { m_functionVersionHasBeenSet = true; m_functionVersion = std::forward<FunctionVersionT>(value); }
132 template<typename FunctionVersionT = Aws::String>
133 UpdateFunctionRequest& WithFunctionVersion(FunctionVersionT&& value) { SetFunctionVersion(std::forward<FunctionVersionT>(value)); return *this;}
135
137
138 inline const SyncConfig& GetSyncConfig() const { return m_syncConfig; }
139 inline bool SyncConfigHasBeenSet() const { return m_syncConfigHasBeenSet; }
140 template<typename SyncConfigT = SyncConfig>
141 void SetSyncConfig(SyncConfigT&& value) { m_syncConfigHasBeenSet = true; m_syncConfig = std::forward<SyncConfigT>(value); }
142 template<typename SyncConfigT = SyncConfig>
143 UpdateFunctionRequest& WithSyncConfig(SyncConfigT&& value) { SetSyncConfig(std::forward<SyncConfigT>(value)); return *this;}
145
147
150 inline int GetMaxBatchSize() const { return m_maxBatchSize; }
151 inline bool MaxBatchSizeHasBeenSet() const { return m_maxBatchSizeHasBeenSet; }
152 inline void SetMaxBatchSize(int value) { m_maxBatchSizeHasBeenSet = true; m_maxBatchSize = value; }
153 inline UpdateFunctionRequest& WithMaxBatchSize(int value) { SetMaxBatchSize(value); return *this;}
155
157
158 inline const AppSyncRuntime& GetRuntime() const { return m_runtime; }
159 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
160 template<typename RuntimeT = AppSyncRuntime>
161 void SetRuntime(RuntimeT&& value) { m_runtimeHasBeenSet = true; m_runtime = std::forward<RuntimeT>(value); }
162 template<typename RuntimeT = AppSyncRuntime>
163 UpdateFunctionRequest& WithRuntime(RuntimeT&& value) { SetRuntime(std::forward<RuntimeT>(value)); return *this;}
165
167
172 inline const Aws::String& GetCode() const { return m_code; }
173 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
174 template<typename CodeT = Aws::String>
175 void SetCode(CodeT&& value) { m_codeHasBeenSet = true; m_code = std::forward<CodeT>(value); }
176 template<typename CodeT = Aws::String>
177 UpdateFunctionRequest& WithCode(CodeT&& value) { SetCode(std::forward<CodeT>(value)); return *this;}
179 private:
180
181 Aws::String m_apiId;
182 bool m_apiIdHasBeenSet = false;
183
184 Aws::String m_name;
185 bool m_nameHasBeenSet = false;
186
187 Aws::String m_description;
188 bool m_descriptionHasBeenSet = false;
189
190 Aws::String m_functionId;
191 bool m_functionIdHasBeenSet = false;
192
193 Aws::String m_dataSourceName;
194 bool m_dataSourceNameHasBeenSet = false;
195
196 Aws::String m_requestMappingTemplate;
197 bool m_requestMappingTemplateHasBeenSet = false;
198
199 Aws::String m_responseMappingTemplate;
200 bool m_responseMappingTemplateHasBeenSet = false;
201
202 Aws::String m_functionVersion;
203 bool m_functionVersionHasBeenSet = false;
204
205 SyncConfig m_syncConfig;
206 bool m_syncConfigHasBeenSet = false;
207
208 int m_maxBatchSize{0};
209 bool m_maxBatchSizeHasBeenSet = false;
210
211 AppSyncRuntime m_runtime;
212 bool m_runtimeHasBeenSet = false;
213
214 Aws::String m_code;
215 bool m_codeHasBeenSet = false;
216 };
217
218} // namespace Model
219} // namespace AppSync
220} // namespace Aws
AWS_APPSYNC_API Aws::String SerializePayload() const override
UpdateFunctionRequest & WithDescription(DescriptionT &&value)
UpdateFunctionRequest & WithApiId(ApiIdT &&value)
UpdateFunctionRequest & WithFunctionVersion(FunctionVersionT &&value)
UpdateFunctionRequest & WithFunctionId(FunctionIdT &&value)
const Aws::String & GetRequestMappingTemplate() const
AWS_APPSYNC_API UpdateFunctionRequest()=default
void SetResponseMappingTemplate(ResponseMappingTemplateT &&value)
void SetDataSourceName(DataSourceNameT &&value)
UpdateFunctionRequest & WithName(NameT &&value)
UpdateFunctionRequest & WithRequestMappingTemplate(RequestMappingTemplateT &&value)
virtual const char * GetServiceRequestName() const override
void SetRequestMappingTemplate(RequestMappingTemplateT &&value)
const Aws::String & GetResponseMappingTemplate() const
UpdateFunctionRequest & WithMaxBatchSize(int value)
UpdateFunctionRequest & WithCode(CodeT &&value)
UpdateFunctionRequest & WithSyncConfig(SyncConfigT &&value)
UpdateFunctionRequest & WithDataSourceName(DataSourceNameT &&value)
void SetFunctionVersion(FunctionVersionT &&value)
UpdateFunctionRequest & WithRuntime(RuntimeT &&value)
UpdateFunctionRequest & WithResponseMappingTemplate(ResponseMappingTemplateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String