AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateResolverRequest.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/ResolverKind.h>
11#include <aws/appsync/model/PipelineConfig.h>
12#include <aws/appsync/model/SyncConfig.h>
13#include <aws/appsync/model/CachingConfig.h>
14#include <aws/appsync/model/AppSyncRuntime.h>
15#include <aws/appsync/model/ResolverLevelMetricsConfig.h>
16#include <utility>
17
18namespace Aws
19{
20namespace AppSync
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_APPSYNC_API UpdateResolverRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateResolver"; }
37
38 AWS_APPSYNC_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::String& GetApiId() const{ return m_apiId; }
46 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
47 inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; }
48 inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); }
49 inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); }
50 inline UpdateResolverRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
51 inline UpdateResolverRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
52 inline UpdateResolverRequest& WithApiId(const char* value) { SetApiId(value); return *this;}
54
56
59 inline const Aws::String& GetTypeName() const{ return m_typeName; }
60 inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; }
61 inline void SetTypeName(const Aws::String& value) { m_typeNameHasBeenSet = true; m_typeName = value; }
62 inline void SetTypeName(Aws::String&& value) { m_typeNameHasBeenSet = true; m_typeName = std::move(value); }
63 inline void SetTypeName(const char* value) { m_typeNameHasBeenSet = true; m_typeName.assign(value); }
64 inline UpdateResolverRequest& WithTypeName(const Aws::String& value) { SetTypeName(value); return *this;}
65 inline UpdateResolverRequest& WithTypeName(Aws::String&& value) { SetTypeName(std::move(value)); return *this;}
66 inline UpdateResolverRequest& WithTypeName(const char* value) { SetTypeName(value); return *this;}
68
70
73 inline const Aws::String& GetFieldName() const{ return m_fieldName; }
74 inline bool FieldNameHasBeenSet() const { return m_fieldNameHasBeenSet; }
75 inline void SetFieldName(const Aws::String& value) { m_fieldNameHasBeenSet = true; m_fieldName = value; }
76 inline void SetFieldName(Aws::String&& value) { m_fieldNameHasBeenSet = true; m_fieldName = std::move(value); }
77 inline void SetFieldName(const char* value) { m_fieldNameHasBeenSet = true; m_fieldName.assign(value); }
78 inline UpdateResolverRequest& WithFieldName(const Aws::String& value) { SetFieldName(value); return *this;}
79 inline UpdateResolverRequest& WithFieldName(Aws::String&& value) { SetFieldName(std::move(value)); return *this;}
80 inline UpdateResolverRequest& WithFieldName(const char* value) { SetFieldName(value); return *this;}
82
84
87 inline const Aws::String& GetDataSourceName() const{ return m_dataSourceName; }
88 inline bool DataSourceNameHasBeenSet() const { return m_dataSourceNameHasBeenSet; }
89 inline void SetDataSourceName(const Aws::String& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = value; }
90 inline void SetDataSourceName(Aws::String&& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = std::move(value); }
91 inline void SetDataSourceName(const char* value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName.assign(value); }
92 inline UpdateResolverRequest& WithDataSourceName(const Aws::String& value) { SetDataSourceName(value); return *this;}
93 inline UpdateResolverRequest& WithDataSourceName(Aws::String&& value) { SetDataSourceName(std::move(value)); return *this;}
94 inline UpdateResolverRequest& WithDataSourceName(const char* value) { SetDataSourceName(value); return *this;}
96
98
106 inline const Aws::String& GetRequestMappingTemplate() const{ return m_requestMappingTemplate; }
107 inline bool RequestMappingTemplateHasBeenSet() const { return m_requestMappingTemplateHasBeenSet; }
108 inline void SetRequestMappingTemplate(const Aws::String& value) { m_requestMappingTemplateHasBeenSet = true; m_requestMappingTemplate = value; }
109 inline void SetRequestMappingTemplate(Aws::String&& value) { m_requestMappingTemplateHasBeenSet = true; m_requestMappingTemplate = std::move(value); }
110 inline void SetRequestMappingTemplate(const char* value) { m_requestMappingTemplateHasBeenSet = true; m_requestMappingTemplate.assign(value); }
113 inline UpdateResolverRequest& WithRequestMappingTemplate(const char* value) { SetRequestMappingTemplate(value); return *this;}
115
117
120 inline const Aws::String& GetResponseMappingTemplate() const{ return m_responseMappingTemplate; }
121 inline bool ResponseMappingTemplateHasBeenSet() const { return m_responseMappingTemplateHasBeenSet; }
122 inline void SetResponseMappingTemplate(const Aws::String& value) { m_responseMappingTemplateHasBeenSet = true; m_responseMappingTemplate = value; }
123 inline void SetResponseMappingTemplate(Aws::String&& value) { m_responseMappingTemplateHasBeenSet = true; m_responseMappingTemplate = std::move(value); }
124 inline void SetResponseMappingTemplate(const char* value) { m_responseMappingTemplateHasBeenSet = true; m_responseMappingTemplate.assign(value); }
127 inline UpdateResolverRequest& WithResponseMappingTemplate(const char* value) { SetResponseMappingTemplate(value); return *this;}
129
131
139 inline const ResolverKind& GetKind() const{ return m_kind; }
140 inline bool KindHasBeenSet() const { return m_kindHasBeenSet; }
141 inline void SetKind(const ResolverKind& value) { m_kindHasBeenSet = true; m_kind = value; }
142 inline void SetKind(ResolverKind&& value) { m_kindHasBeenSet = true; m_kind = std::move(value); }
143 inline UpdateResolverRequest& WithKind(const ResolverKind& value) { SetKind(value); return *this;}
144 inline UpdateResolverRequest& WithKind(ResolverKind&& value) { SetKind(std::move(value)); return *this;}
146
148
151 inline const PipelineConfig& GetPipelineConfig() const{ return m_pipelineConfig; }
152 inline bool PipelineConfigHasBeenSet() const { return m_pipelineConfigHasBeenSet; }
153 inline void SetPipelineConfig(const PipelineConfig& value) { m_pipelineConfigHasBeenSet = true; m_pipelineConfig = value; }
154 inline void SetPipelineConfig(PipelineConfig&& value) { m_pipelineConfigHasBeenSet = true; m_pipelineConfig = std::move(value); }
155 inline UpdateResolverRequest& WithPipelineConfig(const PipelineConfig& value) { SetPipelineConfig(value); return *this;}
156 inline UpdateResolverRequest& WithPipelineConfig(PipelineConfig&& value) { SetPipelineConfig(std::move(value)); return *this;}
158
160
164 inline const SyncConfig& GetSyncConfig() const{ return m_syncConfig; }
165 inline bool SyncConfigHasBeenSet() const { return m_syncConfigHasBeenSet; }
166 inline void SetSyncConfig(const SyncConfig& value) { m_syncConfigHasBeenSet = true; m_syncConfig = value; }
167 inline void SetSyncConfig(SyncConfig&& value) { m_syncConfigHasBeenSet = true; m_syncConfig = std::move(value); }
168 inline UpdateResolverRequest& WithSyncConfig(const SyncConfig& value) { SetSyncConfig(value); return *this;}
169 inline UpdateResolverRequest& WithSyncConfig(SyncConfig&& value) { SetSyncConfig(std::move(value)); return *this;}
171
173
176 inline const CachingConfig& GetCachingConfig() const{ return m_cachingConfig; }
177 inline bool CachingConfigHasBeenSet() const { return m_cachingConfigHasBeenSet; }
178 inline void SetCachingConfig(const CachingConfig& value) { m_cachingConfigHasBeenSet = true; m_cachingConfig = value; }
179 inline void SetCachingConfig(CachingConfig&& value) { m_cachingConfigHasBeenSet = true; m_cachingConfig = std::move(value); }
180 inline UpdateResolverRequest& WithCachingConfig(const CachingConfig& value) { SetCachingConfig(value); return *this;}
181 inline UpdateResolverRequest& WithCachingConfig(CachingConfig&& value) { SetCachingConfig(std::move(value)); return *this;}
183
185
188 inline int GetMaxBatchSize() const{ return m_maxBatchSize; }
189 inline bool MaxBatchSizeHasBeenSet() const { return m_maxBatchSizeHasBeenSet; }
190 inline void SetMaxBatchSize(int value) { m_maxBatchSizeHasBeenSet = true; m_maxBatchSize = value; }
191 inline UpdateResolverRequest& WithMaxBatchSize(int value) { SetMaxBatchSize(value); return *this;}
193
195
196 inline const AppSyncRuntime& GetRuntime() const{ return m_runtime; }
197 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
198 inline void SetRuntime(const AppSyncRuntime& value) { m_runtimeHasBeenSet = true; m_runtime = value; }
199 inline void SetRuntime(AppSyncRuntime&& value) { m_runtimeHasBeenSet = true; m_runtime = std::move(value); }
200 inline UpdateResolverRequest& WithRuntime(const AppSyncRuntime& value) { SetRuntime(value); return *this;}
201 inline UpdateResolverRequest& WithRuntime(AppSyncRuntime&& value) { SetRuntime(std::move(value)); return *this;}
203
205
210 inline const Aws::String& GetCode() const{ return m_code; }
211 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
212 inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
213 inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
214 inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
215 inline UpdateResolverRequest& WithCode(const Aws::String& value) { SetCode(value); return *this;}
216 inline UpdateResolverRequest& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
217 inline UpdateResolverRequest& WithCode(const char* value) { SetCode(value); return *this;}
219
221
232 inline const ResolverLevelMetricsConfig& GetMetricsConfig() const{ return m_metricsConfig; }
233 inline bool MetricsConfigHasBeenSet() const { return m_metricsConfigHasBeenSet; }
234 inline void SetMetricsConfig(const ResolverLevelMetricsConfig& value) { m_metricsConfigHasBeenSet = true; m_metricsConfig = value; }
235 inline void SetMetricsConfig(ResolverLevelMetricsConfig&& value) { m_metricsConfigHasBeenSet = true; m_metricsConfig = std::move(value); }
237 inline UpdateResolverRequest& WithMetricsConfig(ResolverLevelMetricsConfig&& value) { SetMetricsConfig(std::move(value)); return *this;}
239 private:
240
241 Aws::String m_apiId;
242 bool m_apiIdHasBeenSet = false;
243
244 Aws::String m_typeName;
245 bool m_typeNameHasBeenSet = false;
246
247 Aws::String m_fieldName;
248 bool m_fieldNameHasBeenSet = false;
249
250 Aws::String m_dataSourceName;
251 bool m_dataSourceNameHasBeenSet = false;
252
253 Aws::String m_requestMappingTemplate;
254 bool m_requestMappingTemplateHasBeenSet = false;
255
256 Aws::String m_responseMappingTemplate;
257 bool m_responseMappingTemplateHasBeenSet = false;
258
259 ResolverKind m_kind;
260 bool m_kindHasBeenSet = false;
261
262 PipelineConfig m_pipelineConfig;
263 bool m_pipelineConfigHasBeenSet = false;
264
265 SyncConfig m_syncConfig;
266 bool m_syncConfigHasBeenSet = false;
267
268 CachingConfig m_cachingConfig;
269 bool m_cachingConfigHasBeenSet = false;
270
271 int m_maxBatchSize;
272 bool m_maxBatchSizeHasBeenSet = false;
273
274 AppSyncRuntime m_runtime;
275 bool m_runtimeHasBeenSet = false;
276
277 Aws::String m_code;
278 bool m_codeHasBeenSet = false;
279
280 ResolverLevelMetricsConfig m_metricsConfig;
281 bool m_metricsConfigHasBeenSet = false;
282 };
283
284} // namespace Model
285} // namespace AppSync
286} // namespace Aws
UpdateResolverRequest & WithMetricsConfig(ResolverLevelMetricsConfig &&value)
const Aws::String & GetRequestMappingTemplate() const
UpdateResolverRequest & WithSyncConfig(const SyncConfig &value)
void SetRuntime(const AppSyncRuntime &value)
UpdateResolverRequest & WithResponseMappingTemplate(const Aws::String &value)
UpdateResolverRequest & WithMaxBatchSize(int value)
UpdateResolverRequest & WithRequestMappingTemplate(const char *value)
void SetResponseMappingTemplate(const Aws::String &value)
UpdateResolverRequest & WithCode(const Aws::String &value)
void SetMetricsConfig(const ResolverLevelMetricsConfig &value)
UpdateResolverRequest & WithPipelineConfig(PipelineConfig &&value)
UpdateResolverRequest & WithDataSourceName(const Aws::String &value)
UpdateResolverRequest & WithCode(const char *value)
UpdateResolverRequest & WithPipelineConfig(const PipelineConfig &value)
void SetCachingConfig(const CachingConfig &value)
void SetDataSourceName(const Aws::String &value)
UpdateResolverRequest & WithResponseMappingTemplate(const char *value)
const PipelineConfig & GetPipelineConfig() const
UpdateResolverRequest & WithTypeName(Aws::String &&value)
const ResolverLevelMetricsConfig & GetMetricsConfig() const
UpdateResolverRequest & WithMetricsConfig(const ResolverLevelMetricsConfig &value)
void SetRequestMappingTemplate(const Aws::String &value)
UpdateResolverRequest & WithTypeName(const char *value)
void SetMetricsConfig(ResolverLevelMetricsConfig &&value)
UpdateResolverRequest & WithRuntime(AppSyncRuntime &&value)
UpdateResolverRequest & WithApiId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
UpdateResolverRequest & WithSyncConfig(SyncConfig &&value)
UpdateResolverRequest & WithRuntime(const AppSyncRuntime &value)
UpdateResolverRequest & WithCachingConfig(CachingConfig &&value)
UpdateResolverRequest & WithKind(ResolverKind &&value)
UpdateResolverRequest & WithTypeName(const Aws::String &value)
UpdateResolverRequest & WithFieldName(Aws::String &&value)
UpdateResolverRequest & WithRequestMappingTemplate(const Aws::String &value)
const Aws::String & GetResponseMappingTemplate() const
UpdateResolverRequest & WithApiId(Aws::String &&value)
AWS_APPSYNC_API Aws::String SerializePayload() const override
UpdateResolverRequest & WithKind(const ResolverKind &value)
UpdateResolverRequest & WithResponseMappingTemplate(Aws::String &&value)
UpdateResolverRequest & WithFieldName(const Aws::String &value)
UpdateResolverRequest & WithApiId(const char *value)
UpdateResolverRequest & WithDataSourceName(Aws::String &&value)
UpdateResolverRequest & WithCachingConfig(const CachingConfig &value)
UpdateResolverRequest & WithCode(Aws::String &&value)
UpdateResolverRequest & WithDataSourceName(const char *value)
void SetPipelineConfig(const PipelineConfig &value)
UpdateResolverRequest & WithRequestMappingTemplate(Aws::String &&value)
UpdateResolverRequest & WithFieldName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String