AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 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 UpdateFunctionRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
47 inline UpdateFunctionRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
48 inline UpdateFunctionRequest& WithApiId(const char* value) { SetApiId(value); return *this;}
50
52
55 inline const Aws::String& GetName() const{ return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
58 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
59 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
60 inline UpdateFunctionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
61 inline UpdateFunctionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
62 inline UpdateFunctionRequest& WithName(const char* value) { SetName(value); return *this;}
64
66
69 inline const Aws::String& GetDescription() const{ return m_description; }
70 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
71 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
72 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
73 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
74 inline UpdateFunctionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
75 inline UpdateFunctionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
76 inline UpdateFunctionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
78
80
83 inline const Aws::String& GetFunctionId() const{ return m_functionId; }
84 inline bool FunctionIdHasBeenSet() const { return m_functionIdHasBeenSet; }
85 inline void SetFunctionId(const Aws::String& value) { m_functionIdHasBeenSet = true; m_functionId = value; }
86 inline void SetFunctionId(Aws::String&& value) { m_functionIdHasBeenSet = true; m_functionId = std::move(value); }
87 inline void SetFunctionId(const char* value) { m_functionIdHasBeenSet = true; m_functionId.assign(value); }
88 inline UpdateFunctionRequest& WithFunctionId(const Aws::String& value) { SetFunctionId(value); return *this;}
89 inline UpdateFunctionRequest& WithFunctionId(Aws::String&& value) { SetFunctionId(std::move(value)); return *this;}
90 inline UpdateFunctionRequest& WithFunctionId(const char* value) { SetFunctionId(value); return *this;}
92
94
97 inline const Aws::String& GetDataSourceName() const{ return m_dataSourceName; }
98 inline bool DataSourceNameHasBeenSet() const { return m_dataSourceNameHasBeenSet; }
99 inline void SetDataSourceName(const Aws::String& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = value; }
100 inline void SetDataSourceName(Aws::String&& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = std::move(value); }
101 inline void SetDataSourceName(const char* value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName.assign(value); }
102 inline UpdateFunctionRequest& WithDataSourceName(const Aws::String& value) { SetDataSourceName(value); return *this;}
103 inline UpdateFunctionRequest& WithDataSourceName(Aws::String&& value) { SetDataSourceName(std::move(value)); return *this;}
104 inline UpdateFunctionRequest& WithDataSourceName(const char* value) { SetDataSourceName(value); return *this;}
106
108
112 inline const Aws::String& GetRequestMappingTemplate() const{ return m_requestMappingTemplate; }
113 inline bool RequestMappingTemplateHasBeenSet() const { return m_requestMappingTemplateHasBeenSet; }
114 inline void SetRequestMappingTemplate(const Aws::String& value) { m_requestMappingTemplateHasBeenSet = true; m_requestMappingTemplate = value; }
115 inline void SetRequestMappingTemplate(Aws::String&& value) { m_requestMappingTemplateHasBeenSet = true; m_requestMappingTemplate = std::move(value); }
116 inline void SetRequestMappingTemplate(const char* value) { m_requestMappingTemplateHasBeenSet = true; m_requestMappingTemplate.assign(value); }
119 inline UpdateFunctionRequest& WithRequestMappingTemplate(const char* value) { SetRequestMappingTemplate(value); return *this;}
121
123
126 inline const Aws::String& GetResponseMappingTemplate() const{ return m_responseMappingTemplate; }
127 inline bool ResponseMappingTemplateHasBeenSet() const { return m_responseMappingTemplateHasBeenSet; }
128 inline void SetResponseMappingTemplate(const Aws::String& value) { m_responseMappingTemplateHasBeenSet = true; m_responseMappingTemplate = value; }
129 inline void SetResponseMappingTemplate(Aws::String&& value) { m_responseMappingTemplateHasBeenSet = true; m_responseMappingTemplate = std::move(value); }
130 inline void SetResponseMappingTemplate(const char* value) { m_responseMappingTemplateHasBeenSet = true; m_responseMappingTemplate.assign(value); }
133 inline UpdateFunctionRequest& WithResponseMappingTemplate(const char* value) { SetResponseMappingTemplate(value); return *this;}
135
137
142 inline const Aws::String& GetFunctionVersion() const{ return m_functionVersion; }
143 inline bool FunctionVersionHasBeenSet() const { return m_functionVersionHasBeenSet; }
144 inline void SetFunctionVersion(const Aws::String& value) { m_functionVersionHasBeenSet = true; m_functionVersion = value; }
145 inline void SetFunctionVersion(Aws::String&& value) { m_functionVersionHasBeenSet = true; m_functionVersion = std::move(value); }
146 inline void SetFunctionVersion(const char* value) { m_functionVersionHasBeenSet = true; m_functionVersion.assign(value); }
147 inline UpdateFunctionRequest& WithFunctionVersion(const Aws::String& value) { SetFunctionVersion(value); return *this;}
148 inline UpdateFunctionRequest& WithFunctionVersion(Aws::String&& value) { SetFunctionVersion(std::move(value)); return *this;}
149 inline UpdateFunctionRequest& WithFunctionVersion(const char* value) { SetFunctionVersion(value); return *this;}
151
153
154 inline const SyncConfig& GetSyncConfig() const{ return m_syncConfig; }
155 inline bool SyncConfigHasBeenSet() const { return m_syncConfigHasBeenSet; }
156 inline void SetSyncConfig(const SyncConfig& value) { m_syncConfigHasBeenSet = true; m_syncConfig = value; }
157 inline void SetSyncConfig(SyncConfig&& value) { m_syncConfigHasBeenSet = true; m_syncConfig = std::move(value); }
158 inline UpdateFunctionRequest& WithSyncConfig(const SyncConfig& value) { SetSyncConfig(value); return *this;}
159 inline UpdateFunctionRequest& WithSyncConfig(SyncConfig&& value) { SetSyncConfig(std::move(value)); return *this;}
161
163
166 inline int GetMaxBatchSize() const{ return m_maxBatchSize; }
167 inline bool MaxBatchSizeHasBeenSet() const { return m_maxBatchSizeHasBeenSet; }
168 inline void SetMaxBatchSize(int value) { m_maxBatchSizeHasBeenSet = true; m_maxBatchSize = value; }
169 inline UpdateFunctionRequest& WithMaxBatchSize(int value) { SetMaxBatchSize(value); return *this;}
171
173
174 inline const AppSyncRuntime& GetRuntime() const{ return m_runtime; }
175 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
176 inline void SetRuntime(const AppSyncRuntime& value) { m_runtimeHasBeenSet = true; m_runtime = value; }
177 inline void SetRuntime(AppSyncRuntime&& value) { m_runtimeHasBeenSet = true; m_runtime = std::move(value); }
178 inline UpdateFunctionRequest& WithRuntime(const AppSyncRuntime& value) { SetRuntime(value); return *this;}
179 inline UpdateFunctionRequest& WithRuntime(AppSyncRuntime&& value) { SetRuntime(std::move(value)); return *this;}
181
183
188 inline const Aws::String& GetCode() const{ return m_code; }
189 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
190 inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
191 inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
192 inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
193 inline UpdateFunctionRequest& WithCode(const Aws::String& value) { SetCode(value); return *this;}
194 inline UpdateFunctionRequest& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
195 inline UpdateFunctionRequest& WithCode(const char* value) { SetCode(value); return *this;}
197 private:
198
199 Aws::String m_apiId;
200 bool m_apiIdHasBeenSet = false;
201
202 Aws::String m_name;
203 bool m_nameHasBeenSet = false;
204
205 Aws::String m_description;
206 bool m_descriptionHasBeenSet = false;
207
208 Aws::String m_functionId;
209 bool m_functionIdHasBeenSet = false;
210
211 Aws::String m_dataSourceName;
212 bool m_dataSourceNameHasBeenSet = false;
213
214 Aws::String m_requestMappingTemplate;
215 bool m_requestMappingTemplateHasBeenSet = false;
216
217 Aws::String m_responseMappingTemplate;
218 bool m_responseMappingTemplateHasBeenSet = false;
219
220 Aws::String m_functionVersion;
221 bool m_functionVersionHasBeenSet = false;
222
223 SyncConfig m_syncConfig;
224 bool m_syncConfigHasBeenSet = false;
225
226 int m_maxBatchSize;
227 bool m_maxBatchSizeHasBeenSet = false;
228
229 AppSyncRuntime m_runtime;
230 bool m_runtimeHasBeenSet = false;
231
232 Aws::String m_code;
233 bool m_codeHasBeenSet = false;
234 };
235
236} // namespace Model
237} // namespace AppSync
238} // namespace Aws
UpdateFunctionRequest & WithDescription(const Aws::String &value)
UpdateFunctionRequest & WithFunctionVersion(const char *value)
UpdateFunctionRequest & WithFunctionVersion(const Aws::String &value)
void SetDataSourceName(const Aws::String &value)
UpdateFunctionRequest & WithFunctionId(Aws::String &&value)
void SetFunctionVersion(const Aws::String &value)
UpdateFunctionRequest & WithDescription(Aws::String &&value)
UpdateFunctionRequest & WithApiId(const Aws::String &value)
UpdateFunctionRequest & WithName(Aws::String &&value)
UpdateFunctionRequest & WithCode(Aws::String &&value)
AWS_APPSYNC_API Aws::String SerializePayload() const override
UpdateFunctionRequest & WithDescription(const char *value)
void SetResponseMappingTemplate(const Aws::String &value)
void SetDescription(const Aws::String &value)
UpdateFunctionRequest & WithFunctionId(const char *value)
UpdateFunctionRequest & WithDataSourceName(Aws::String &&value)
const Aws::String & GetRequestMappingTemplate() const
UpdateFunctionRequest & WithApiId(const char *value)
UpdateFunctionRequest & WithRequestMappingTemplate(const Aws::String &value)
UpdateFunctionRequest & WithRequestMappingTemplate(const char *value)
UpdateFunctionRequest & WithResponseMappingTemplate(Aws::String &&value)
UpdateFunctionRequest & WithResponseMappingTemplate(const char *value)
UpdateFunctionRequest & WithResponseMappingTemplate(const Aws::String &value)
UpdateFunctionRequest & WithName(const Aws::String &value)
UpdateFunctionRequest & WithCode(const Aws::String &value)
UpdateFunctionRequest & WithDataSourceName(const char *value)
UpdateFunctionRequest & WithRequestMappingTemplate(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetResponseMappingTemplate() const
void SetRuntime(const AppSyncRuntime &value)
UpdateFunctionRequest & WithMaxBatchSize(int value)
UpdateFunctionRequest & WithApiId(Aws::String &&value)
void SetRequestMappingTemplate(const Aws::String &value)
UpdateFunctionRequest & WithSyncConfig(const SyncConfig &value)
UpdateFunctionRequest & WithFunctionVersion(Aws::String &&value)
UpdateFunctionRequest & WithRuntime(AppSyncRuntime &&value)
UpdateFunctionRequest & WithRuntime(const AppSyncRuntime &value)
UpdateFunctionRequest & WithSyncConfig(SyncConfig &&value)
UpdateFunctionRequest & WithDataSourceName(const Aws::String &value)
UpdateFunctionRequest & WithCode(const char *value)
UpdateFunctionRequest & WithName(const char *value)
UpdateFunctionRequest & WithFunctionId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String