AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateResolverRequest.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/CachingConfig.h>
11#include <aws/appsync/model/PipelineConfig.h>
12#include <aws/appsync/model/ResolverKind.h>
13#include <aws/appsync/model/ResolverLevelMetricsConfig.h>
14#include <aws/appsync/model/SyncConfig.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16
17#include <utility>
18
19namespace Aws {
20namespace AppSync {
21namespace Model {
22
26 public:
27 AWS_APPSYNC_API CreateResolverRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateResolver"; }
34
35 AWS_APPSYNC_API Aws::String SerializePayload() const override;
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) {
45 m_apiIdHasBeenSet = true;
46 m_apiId = std::forward<ApiIdT>(value);
47 }
48 template <typename ApiIdT = Aws::String>
50 SetApiId(std::forward<ApiIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetTypeName() const { return m_typeName; }
60 inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; }
61 template <typename TypeNameT = Aws::String>
62 void SetTypeName(TypeNameT&& value) {
63 m_typeNameHasBeenSet = true;
64 m_typeName = std::forward<TypeNameT>(value);
65 }
66 template <typename TypeNameT = Aws::String>
67 CreateResolverRequest& WithTypeName(TypeNameT&& value) {
68 SetTypeName(std::forward<TypeNameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetFieldName() const { return m_fieldName; }
78 inline bool FieldNameHasBeenSet() const { return m_fieldNameHasBeenSet; }
79 template <typename FieldNameT = Aws::String>
80 void SetFieldName(FieldNameT&& value) {
81 m_fieldNameHasBeenSet = true;
82 m_fieldName = std::forward<FieldNameT>(value);
83 }
84 template <typename FieldNameT = Aws::String>
85 CreateResolverRequest& WithFieldName(FieldNameT&& value) {
86 SetFieldName(std::forward<FieldNameT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetDataSourceName() const { return m_dataSourceName; }
96 inline bool DataSourceNameHasBeenSet() const { return m_dataSourceNameHasBeenSet; }
97 template <typename DataSourceNameT = Aws::String>
98 void SetDataSourceName(DataSourceNameT&& value) {
99 m_dataSourceNameHasBeenSet = true;
100 m_dataSourceName = std::forward<DataSourceNameT>(value);
101 }
102 template <typename DataSourceNameT = Aws::String>
103 CreateResolverRequest& WithDataSourceName(DataSourceNameT&& value) {
104 SetDataSourceName(std::forward<DataSourceNameT>(value));
105 return *this;
106 }
108
110
118 inline const Aws::String& GetRequestMappingTemplate() const { return m_requestMappingTemplate; }
119 inline bool RequestMappingTemplateHasBeenSet() const { return m_requestMappingTemplateHasBeenSet; }
120 template <typename RequestMappingTemplateT = Aws::String>
121 void SetRequestMappingTemplate(RequestMappingTemplateT&& value) {
122 m_requestMappingTemplateHasBeenSet = true;
123 m_requestMappingTemplate = std::forward<RequestMappingTemplateT>(value);
124 }
125 template <typename RequestMappingTemplateT = Aws::String>
126 CreateResolverRequest& WithRequestMappingTemplate(RequestMappingTemplateT&& value) {
127 SetRequestMappingTemplate(std::forward<RequestMappingTemplateT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::String& GetResponseMappingTemplate() const { return m_responseMappingTemplate; }
137 inline bool ResponseMappingTemplateHasBeenSet() const { return m_responseMappingTemplateHasBeenSet; }
138 template <typename ResponseMappingTemplateT = Aws::String>
139 void SetResponseMappingTemplate(ResponseMappingTemplateT&& value) {
140 m_responseMappingTemplateHasBeenSet = true;
141 m_responseMappingTemplate = std::forward<ResponseMappingTemplateT>(value);
142 }
143 template <typename ResponseMappingTemplateT = Aws::String>
144 CreateResolverRequest& WithResponseMappingTemplate(ResponseMappingTemplateT&& value) {
145 SetResponseMappingTemplate(std::forward<ResponseMappingTemplateT>(value));
146 return *this;
147 }
149
151
159 inline ResolverKind GetKind() const { return m_kind; }
160 inline bool KindHasBeenSet() const { return m_kindHasBeenSet; }
161 inline void SetKind(ResolverKind value) {
162 m_kindHasBeenSet = true;
163 m_kind = value;
164 }
166 SetKind(value);
167 return *this;
168 }
170
172
175 inline const PipelineConfig& GetPipelineConfig() const { return m_pipelineConfig; }
176 inline bool PipelineConfigHasBeenSet() const { return m_pipelineConfigHasBeenSet; }
177 template <typename PipelineConfigT = PipelineConfig>
178 void SetPipelineConfig(PipelineConfigT&& value) {
179 m_pipelineConfigHasBeenSet = true;
180 m_pipelineConfig = std::forward<PipelineConfigT>(value);
181 }
182 template <typename PipelineConfigT = PipelineConfig>
183 CreateResolverRequest& WithPipelineConfig(PipelineConfigT&& value) {
184 SetPipelineConfig(std::forward<PipelineConfigT>(value));
185 return *this;
186 }
188
190
194 inline const SyncConfig& GetSyncConfig() const { return m_syncConfig; }
195 inline bool SyncConfigHasBeenSet() const { return m_syncConfigHasBeenSet; }
196 template <typename SyncConfigT = SyncConfig>
197 void SetSyncConfig(SyncConfigT&& value) {
198 m_syncConfigHasBeenSet = true;
199 m_syncConfig = std::forward<SyncConfigT>(value);
200 }
201 template <typename SyncConfigT = SyncConfig>
202 CreateResolverRequest& WithSyncConfig(SyncConfigT&& value) {
203 SetSyncConfig(std::forward<SyncConfigT>(value));
204 return *this;
205 }
207
209
212 inline const CachingConfig& GetCachingConfig() const { return m_cachingConfig; }
213 inline bool CachingConfigHasBeenSet() const { return m_cachingConfigHasBeenSet; }
214 template <typename CachingConfigT = CachingConfig>
215 void SetCachingConfig(CachingConfigT&& value) {
216 m_cachingConfigHasBeenSet = true;
217 m_cachingConfig = std::forward<CachingConfigT>(value);
218 }
219 template <typename CachingConfigT = CachingConfig>
220 CreateResolverRequest& WithCachingConfig(CachingConfigT&& value) {
221 SetCachingConfig(std::forward<CachingConfigT>(value));
222 return *this;
223 }
225
227
230 inline int GetMaxBatchSize() const { return m_maxBatchSize; }
231 inline bool MaxBatchSizeHasBeenSet() const { return m_maxBatchSizeHasBeenSet; }
232 inline void SetMaxBatchSize(int value) {
233 m_maxBatchSizeHasBeenSet = true;
234 m_maxBatchSize = value;
235 }
237 SetMaxBatchSize(value);
238 return *this;
239 }
241
243
244 inline const AppSyncRuntime& GetRuntime() const { return m_runtime; }
245 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
246 template <typename RuntimeT = AppSyncRuntime>
247 void SetRuntime(RuntimeT&& value) {
248 m_runtimeHasBeenSet = true;
249 m_runtime = std::forward<RuntimeT>(value);
250 }
251 template <typename RuntimeT = AppSyncRuntime>
253 SetRuntime(std::forward<RuntimeT>(value));
254 return *this;
255 }
257
259
264 inline const Aws::String& GetCode() const { return m_code; }
265 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
266 template <typename CodeT = Aws::String>
267 void SetCode(CodeT&& value) {
268 m_codeHasBeenSet = true;
269 m_code = std::forward<CodeT>(value);
270 }
271 template <typename CodeT = Aws::String>
273 SetCode(std::forward<CodeT>(value));
274 return *this;
275 }
277
279
290 inline ResolverLevelMetricsConfig GetMetricsConfig() const { return m_metricsConfig; }
291 inline bool MetricsConfigHasBeenSet() const { return m_metricsConfigHasBeenSet; }
293 m_metricsConfigHasBeenSet = true;
294 m_metricsConfig = value;
295 }
297 SetMetricsConfig(value);
298 return *this;
299 }
301 private:
302 Aws::String m_apiId;
303
304 Aws::String m_typeName;
305
306 Aws::String m_fieldName;
307
308 Aws::String m_dataSourceName;
309
310 Aws::String m_requestMappingTemplate;
311
312 Aws::String m_responseMappingTemplate;
313
315
316 PipelineConfig m_pipelineConfig;
317
318 SyncConfig m_syncConfig;
319
320 CachingConfig m_cachingConfig;
321
322 int m_maxBatchSize{0};
323
324 AppSyncRuntime m_runtime;
325
326 Aws::String m_code;
327
329 bool m_apiIdHasBeenSet = false;
330 bool m_typeNameHasBeenSet = false;
331 bool m_fieldNameHasBeenSet = false;
332 bool m_dataSourceNameHasBeenSet = false;
333 bool m_requestMappingTemplateHasBeenSet = false;
334 bool m_responseMappingTemplateHasBeenSet = false;
335 bool m_kindHasBeenSet = false;
336 bool m_pipelineConfigHasBeenSet = false;
337 bool m_syncConfigHasBeenSet = false;
338 bool m_cachingConfigHasBeenSet = false;
339 bool m_maxBatchSizeHasBeenSet = false;
340 bool m_runtimeHasBeenSet = false;
341 bool m_codeHasBeenSet = false;
342 bool m_metricsConfigHasBeenSet = false;
343};
344
345} // namespace Model
346} // namespace AppSync
347} // namespace Aws
CreateResolverRequest & WithResponseMappingTemplate(ResponseMappingTemplateT &&value)
CreateResolverRequest & WithTypeName(TypeNameT &&value)
CreateResolverRequest & WithRuntime(RuntimeT &&value)
const PipelineConfig & GetPipelineConfig() const
CreateResolverRequest & WithKind(ResolverKind value)
CreateResolverRequest & WithCode(CodeT &&value)
const Aws::String & GetRequestMappingTemplate() const
CreateResolverRequest & WithDataSourceName(DataSourceNameT &&value)
void SetResponseMappingTemplate(ResponseMappingTemplateT &&value)
CreateResolverRequest & WithRequestMappingTemplate(RequestMappingTemplateT &&value)
ResolverLevelMetricsConfig GetMetricsConfig() const
CreateResolverRequest & WithApiId(ApiIdT &&value)
const Aws::String & GetResponseMappingTemplate() const
CreateResolverRequest & WithCachingConfig(CachingConfigT &&value)
void SetMetricsConfig(ResolverLevelMetricsConfig value)
AWS_APPSYNC_API CreateResolverRequest()=default
AWS_APPSYNC_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateResolverRequest & WithMetricsConfig(ResolverLevelMetricsConfig value)
CreateResolverRequest & WithMaxBatchSize(int value)
void SetDataSourceName(DataSourceNameT &&value)
CreateResolverRequest & WithPipelineConfig(PipelineConfigT &&value)
CreateResolverRequest & WithFieldName(FieldNameT &&value)
CreateResolverRequest & WithSyncConfig(SyncConfigT &&value)
void SetRequestMappingTemplate(RequestMappingTemplateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String