AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateResolverRequest.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 CreateResolverRequest() = default;
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 "CreateResolver"; }
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 template<typename ApiIdT = Aws::String>
48 void SetApiId(ApiIdT&& value) { m_apiIdHasBeenSet = true; m_apiId = std::forward<ApiIdT>(value); }
49 template<typename ApiIdT = Aws::String>
50 CreateResolverRequest& WithApiId(ApiIdT&& value) { SetApiId(std::forward<ApiIdT>(value)); return *this;}
52
54
57 inline const Aws::String& GetTypeName() const { return m_typeName; }
58 inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; }
59 template<typename TypeNameT = Aws::String>
60 void SetTypeName(TypeNameT&& value) { m_typeNameHasBeenSet = true; m_typeName = std::forward<TypeNameT>(value); }
61 template<typename TypeNameT = Aws::String>
62 CreateResolverRequest& WithTypeName(TypeNameT&& value) { SetTypeName(std::forward<TypeNameT>(value)); return *this;}
64
66
69 inline const Aws::String& GetFieldName() const { return m_fieldName; }
70 inline bool FieldNameHasBeenSet() const { return m_fieldNameHasBeenSet; }
71 template<typename FieldNameT = Aws::String>
72 void SetFieldName(FieldNameT&& value) { m_fieldNameHasBeenSet = true; m_fieldName = std::forward<FieldNameT>(value); }
73 template<typename FieldNameT = Aws::String>
74 CreateResolverRequest& WithFieldName(FieldNameT&& value) { SetFieldName(std::forward<FieldNameT>(value)); return *this;}
76
78
81 inline const Aws::String& GetDataSourceName() const { return m_dataSourceName; }
82 inline bool DataSourceNameHasBeenSet() const { return m_dataSourceNameHasBeenSet; }
83 template<typename DataSourceNameT = Aws::String>
84 void SetDataSourceName(DataSourceNameT&& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = std::forward<DataSourceNameT>(value); }
85 template<typename DataSourceNameT = Aws::String>
86 CreateResolverRequest& WithDataSourceName(DataSourceNameT&& value) { SetDataSourceName(std::forward<DataSourceNameT>(value)); return *this;}
88
90
98 inline const Aws::String& GetRequestMappingTemplate() const { return m_requestMappingTemplate; }
99 inline bool RequestMappingTemplateHasBeenSet() const { return m_requestMappingTemplateHasBeenSet; }
100 template<typename RequestMappingTemplateT = Aws::String>
101 void SetRequestMappingTemplate(RequestMappingTemplateT&& value) { m_requestMappingTemplateHasBeenSet = true; m_requestMappingTemplate = std::forward<RequestMappingTemplateT>(value); }
102 template<typename RequestMappingTemplateT = Aws::String>
103 CreateResolverRequest& WithRequestMappingTemplate(RequestMappingTemplateT&& value) { SetRequestMappingTemplate(std::forward<RequestMappingTemplateT>(value)); return *this;}
105
107
110 inline const Aws::String& GetResponseMappingTemplate() const { return m_responseMappingTemplate; }
111 inline bool ResponseMappingTemplateHasBeenSet() const { return m_responseMappingTemplateHasBeenSet; }
112 template<typename ResponseMappingTemplateT = Aws::String>
113 void SetResponseMappingTemplate(ResponseMappingTemplateT&& value) { m_responseMappingTemplateHasBeenSet = true; m_responseMappingTemplate = std::forward<ResponseMappingTemplateT>(value); }
114 template<typename ResponseMappingTemplateT = Aws::String>
115 CreateResolverRequest& WithResponseMappingTemplate(ResponseMappingTemplateT&& value) { SetResponseMappingTemplate(std::forward<ResponseMappingTemplateT>(value)); return *this;}
117
119
127 inline ResolverKind GetKind() const { return m_kind; }
128 inline bool KindHasBeenSet() const { return m_kindHasBeenSet; }
129 inline void SetKind(ResolverKind value) { m_kindHasBeenSet = true; m_kind = value; }
130 inline CreateResolverRequest& WithKind(ResolverKind value) { SetKind(value); return *this;}
132
134
137 inline const PipelineConfig& GetPipelineConfig() const { return m_pipelineConfig; }
138 inline bool PipelineConfigHasBeenSet() const { return m_pipelineConfigHasBeenSet; }
139 template<typename PipelineConfigT = PipelineConfig>
140 void SetPipelineConfig(PipelineConfigT&& value) { m_pipelineConfigHasBeenSet = true; m_pipelineConfig = std::forward<PipelineConfigT>(value); }
141 template<typename PipelineConfigT = PipelineConfig>
142 CreateResolverRequest& WithPipelineConfig(PipelineConfigT&& value) { SetPipelineConfig(std::forward<PipelineConfigT>(value)); return *this;}
144
146
150 inline const SyncConfig& GetSyncConfig() const { return m_syncConfig; }
151 inline bool SyncConfigHasBeenSet() const { return m_syncConfigHasBeenSet; }
152 template<typename SyncConfigT = SyncConfig>
153 void SetSyncConfig(SyncConfigT&& value) { m_syncConfigHasBeenSet = true; m_syncConfig = std::forward<SyncConfigT>(value); }
154 template<typename SyncConfigT = SyncConfig>
155 CreateResolverRequest& WithSyncConfig(SyncConfigT&& value) { SetSyncConfig(std::forward<SyncConfigT>(value)); return *this;}
157
159
162 inline const CachingConfig& GetCachingConfig() const { return m_cachingConfig; }
163 inline bool CachingConfigHasBeenSet() const { return m_cachingConfigHasBeenSet; }
164 template<typename CachingConfigT = CachingConfig>
165 void SetCachingConfig(CachingConfigT&& value) { m_cachingConfigHasBeenSet = true; m_cachingConfig = std::forward<CachingConfigT>(value); }
166 template<typename CachingConfigT = CachingConfig>
167 CreateResolverRequest& WithCachingConfig(CachingConfigT&& value) { SetCachingConfig(std::forward<CachingConfigT>(value)); return *this;}
169
171
174 inline int GetMaxBatchSize() const { return m_maxBatchSize; }
175 inline bool MaxBatchSizeHasBeenSet() const { return m_maxBatchSizeHasBeenSet; }
176 inline void SetMaxBatchSize(int value) { m_maxBatchSizeHasBeenSet = true; m_maxBatchSize = value; }
177 inline CreateResolverRequest& WithMaxBatchSize(int value) { SetMaxBatchSize(value); return *this;}
179
181
182 inline const AppSyncRuntime& GetRuntime() const { return m_runtime; }
183 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
184 template<typename RuntimeT = AppSyncRuntime>
185 void SetRuntime(RuntimeT&& value) { m_runtimeHasBeenSet = true; m_runtime = std::forward<RuntimeT>(value); }
186 template<typename RuntimeT = AppSyncRuntime>
187 CreateResolverRequest& WithRuntime(RuntimeT&& value) { SetRuntime(std::forward<RuntimeT>(value)); return *this;}
189
191
196 inline const Aws::String& GetCode() const { return m_code; }
197 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
198 template<typename CodeT = Aws::String>
199 void SetCode(CodeT&& value) { m_codeHasBeenSet = true; m_code = std::forward<CodeT>(value); }
200 template<typename CodeT = Aws::String>
201 CreateResolverRequest& WithCode(CodeT&& value) { SetCode(std::forward<CodeT>(value)); return *this;}
203
205
216 inline ResolverLevelMetricsConfig GetMetricsConfig() const { return m_metricsConfig; }
217 inline bool MetricsConfigHasBeenSet() const { return m_metricsConfigHasBeenSet; }
218 inline void SetMetricsConfig(ResolverLevelMetricsConfig value) { m_metricsConfigHasBeenSet = true; m_metricsConfig = value; }
221 private:
222
223 Aws::String m_apiId;
224 bool m_apiIdHasBeenSet = false;
225
226 Aws::String m_typeName;
227 bool m_typeNameHasBeenSet = false;
228
229 Aws::String m_fieldName;
230 bool m_fieldNameHasBeenSet = false;
231
232 Aws::String m_dataSourceName;
233 bool m_dataSourceNameHasBeenSet = false;
234
235 Aws::String m_requestMappingTemplate;
236 bool m_requestMappingTemplateHasBeenSet = false;
237
238 Aws::String m_responseMappingTemplate;
239 bool m_responseMappingTemplateHasBeenSet = false;
240
242 bool m_kindHasBeenSet = false;
243
244 PipelineConfig m_pipelineConfig;
245 bool m_pipelineConfigHasBeenSet = false;
246
247 SyncConfig m_syncConfig;
248 bool m_syncConfigHasBeenSet = false;
249
250 CachingConfig m_cachingConfig;
251 bool m_cachingConfigHasBeenSet = false;
252
253 int m_maxBatchSize{0};
254 bool m_maxBatchSizeHasBeenSet = false;
255
256 AppSyncRuntime m_runtime;
257 bool m_runtimeHasBeenSet = false;
258
259 Aws::String m_code;
260 bool m_codeHasBeenSet = false;
261
263 bool m_metricsConfigHasBeenSet = false;
264 };
265
266} // namespace Model
267} // namespace AppSync
268} // 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