AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Resolver.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appsync/model/ResolverKind.h>
10#include <aws/appsync/model/PipelineConfig.h>
11#include <aws/appsync/model/SyncConfig.h>
12#include <aws/appsync/model/CachingConfig.h>
13#include <aws/appsync/model/AppSyncRuntime.h>
14#include <aws/appsync/model/ResolverLevelMetricsConfig.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace AppSync
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_APPSYNC_API Resolver();
41 AWS_APPSYNC_API Resolver(Aws::Utils::Json::JsonView jsonValue);
42 AWS_APPSYNC_API Resolver& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetTypeName() const{ return m_typeName; }
51 inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; }
52 inline void SetTypeName(const Aws::String& value) { m_typeNameHasBeenSet = true; m_typeName = value; }
53 inline void SetTypeName(Aws::String&& value) { m_typeNameHasBeenSet = true; m_typeName = std::move(value); }
54 inline void SetTypeName(const char* value) { m_typeNameHasBeenSet = true; m_typeName.assign(value); }
55 inline Resolver& WithTypeName(const Aws::String& value) { SetTypeName(value); return *this;}
56 inline Resolver& WithTypeName(Aws::String&& value) { SetTypeName(std::move(value)); return *this;}
57 inline Resolver& WithTypeName(const char* value) { SetTypeName(value); return *this;}
59
61
64 inline const Aws::String& GetFieldName() const{ return m_fieldName; }
65 inline bool FieldNameHasBeenSet() const { return m_fieldNameHasBeenSet; }
66 inline void SetFieldName(const Aws::String& value) { m_fieldNameHasBeenSet = true; m_fieldName = value; }
67 inline void SetFieldName(Aws::String&& value) { m_fieldNameHasBeenSet = true; m_fieldName = std::move(value); }
68 inline void SetFieldName(const char* value) { m_fieldNameHasBeenSet = true; m_fieldName.assign(value); }
69 inline Resolver& WithFieldName(const Aws::String& value) { SetFieldName(value); return *this;}
70 inline Resolver& WithFieldName(Aws::String&& value) { SetFieldName(std::move(value)); return *this;}
71 inline Resolver& WithFieldName(const char* value) { SetFieldName(value); return *this;}
73
75
78 inline const Aws::String& GetDataSourceName() const{ return m_dataSourceName; }
79 inline bool DataSourceNameHasBeenSet() const { return m_dataSourceNameHasBeenSet; }
80 inline void SetDataSourceName(const Aws::String& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = value; }
81 inline void SetDataSourceName(Aws::String&& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = std::move(value); }
82 inline void SetDataSourceName(const char* value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName.assign(value); }
83 inline Resolver& WithDataSourceName(const Aws::String& value) { SetDataSourceName(value); return *this;}
84 inline Resolver& WithDataSourceName(Aws::String&& value) { SetDataSourceName(std::move(value)); return *this;}
85 inline Resolver& WithDataSourceName(const char* value) { SetDataSourceName(value); return *this;}
87
89
92 inline const Aws::String& GetResolverArn() const{ return m_resolverArn; }
93 inline bool ResolverArnHasBeenSet() const { return m_resolverArnHasBeenSet; }
94 inline void SetResolverArn(const Aws::String& value) { m_resolverArnHasBeenSet = true; m_resolverArn = value; }
95 inline void SetResolverArn(Aws::String&& value) { m_resolverArnHasBeenSet = true; m_resolverArn = std::move(value); }
96 inline void SetResolverArn(const char* value) { m_resolverArnHasBeenSet = true; m_resolverArn.assign(value); }
97 inline Resolver& WithResolverArn(const Aws::String& value) { SetResolverArn(value); return *this;}
98 inline Resolver& WithResolverArn(Aws::String&& value) { SetResolverArn(std::move(value)); return *this;}
99 inline Resolver& WithResolverArn(const char* value) { SetResolverArn(value); return *this;}
101
103
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); }
111 inline Resolver& WithRequestMappingTemplate(const Aws::String& value) { SetRequestMappingTemplate(value); return *this;}
112 inline Resolver& WithRequestMappingTemplate(Aws::String&& value) { SetRequestMappingTemplate(std::move(value)); return *this;}
113 inline Resolver& 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); }
125 inline Resolver& WithResponseMappingTemplate(const Aws::String& value) { SetResponseMappingTemplate(value); return *this;}
126 inline Resolver& WithResponseMappingTemplate(Aws::String&& value) { SetResponseMappingTemplate(std::move(value)); return *this;}
127 inline Resolver& 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 Resolver& WithKind(const ResolverKind& value) { SetKind(value); return *this;}
144 inline Resolver& 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 Resolver& WithPipelineConfig(const PipelineConfig& value) { SetPipelineConfig(value); return *this;}
156 inline Resolver& 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 Resolver& WithSyncConfig(const SyncConfig& value) { SetSyncConfig(value); return *this;}
169 inline Resolver& 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 Resolver& WithCachingConfig(const CachingConfig& value) { SetCachingConfig(value); return *this;}
181 inline Resolver& 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 Resolver& 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 Resolver& WithRuntime(const AppSyncRuntime& value) { SetRuntime(value); return *this;}
201 inline Resolver& 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 Resolver& WithCode(const Aws::String& value) { SetCode(value); return *this;}
216 inline Resolver& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
217 inline Resolver& 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); }
236 inline Resolver& WithMetricsConfig(const ResolverLevelMetricsConfig& value) { SetMetricsConfig(value); return *this;}
237 inline Resolver& WithMetricsConfig(ResolverLevelMetricsConfig&& value) { SetMetricsConfig(std::move(value)); return *this;}
239 private:
240
241 Aws::String m_typeName;
242 bool m_typeNameHasBeenSet = false;
243
244 Aws::String m_fieldName;
245 bool m_fieldNameHasBeenSet = false;
246
247 Aws::String m_dataSourceName;
248 bool m_dataSourceNameHasBeenSet = false;
249
250 Aws::String m_resolverArn;
251 bool m_resolverArnHasBeenSet = 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
Resolver & WithTypeName(const char *value)
Definition Resolver.h:57
Resolver & WithCode(const char *value)
Definition Resolver.h:217
void SetTypeName(Aws::String &&value)
Definition Resolver.h:53
Resolver & WithMetricsConfig(ResolverLevelMetricsConfig &&value)
Definition Resolver.h:237
void SetResponseMappingTemplate(Aws::String &&value)
Definition Resolver.h:123
Resolver & WithPipelineConfig(PipelineConfig &&value)
Definition Resolver.h:156
Resolver & WithCode(const Aws::String &value)
Definition Resolver.h:215
void SetKind(ResolverKind &&value)
Definition Resolver.h:142
bool DataSourceNameHasBeenSet() const
Definition Resolver.h:79
void SetResolverArn(const Aws::String &value)
Definition Resolver.h:94
void SetPipelineConfig(PipelineConfig &&value)
Definition Resolver.h:154
Resolver & WithTypeName(const Aws::String &value)
Definition Resolver.h:55
const Aws::String & GetDataSourceName() const
Definition Resolver.h:78
void SetSyncConfig(SyncConfig &&value)
Definition Resolver.h:167
Resolver & WithCode(Aws::String &&value)
Definition Resolver.h:216
Resolver & WithCachingConfig(const CachingConfig &value)
Definition Resolver.h:180
bool SyncConfigHasBeenSet() const
Definition Resolver.h:165
void SetResolverArn(Aws::String &&value)
Definition Resolver.h:95
const SyncConfig & GetSyncConfig() const
Definition Resolver.h:164
AWS_APPSYNC_API Resolver()
const CachingConfig & GetCachingConfig() const
Definition Resolver.h:176
const ResolverLevelMetricsConfig & GetMetricsConfig() const
Definition Resolver.h:232
Resolver & WithPipelineConfig(const PipelineConfig &value)
Definition Resolver.h:155
bool ResolverArnHasBeenSet() const
Definition Resolver.h:93
Resolver & WithRuntime(const AppSyncRuntime &value)
Definition Resolver.h:200
bool MetricsConfigHasBeenSet() const
Definition Resolver.h:233
void SetCode(const char *value)
Definition Resolver.h:214
void SetCachingConfig(CachingConfig &&value)
Definition Resolver.h:179
Resolver & WithDataSourceName(const char *value)
Definition Resolver.h:85
void SetCachingConfig(const CachingConfig &value)
Definition Resolver.h:178
void SetRequestMappingTemplate(Aws::String &&value)
Definition Resolver.h:109
void SetRequestMappingTemplate(const char *value)
Definition Resolver.h:110
const Aws::String & GetTypeName() const
Definition Resolver.h:50
void SetFieldName(const char *value)
Definition Resolver.h:68
Resolver & WithRequestMappingTemplate(const Aws::String &value)
Definition Resolver.h:111
Resolver & WithSyncConfig(const SyncConfig &value)
Definition Resolver.h:168
bool CachingConfigHasBeenSet() const
Definition Resolver.h:177
void SetRuntime(AppSyncRuntime &&value)
Definition Resolver.h:199
void SetDataSourceName(const Aws::String &value)
Definition Resolver.h:80
Resolver & WithResponseMappingTemplate(const Aws::String &value)
Definition Resolver.h:125
Resolver & WithRuntime(AppSyncRuntime &&value)
Definition Resolver.h:201
Resolver & WithKind(const ResolverKind &value)
Definition Resolver.h:143
const ResolverKind & GetKind() const
Definition Resolver.h:139
Resolver & WithMaxBatchSize(int value)
Definition Resolver.h:191
bool MaxBatchSizeHasBeenSet() const
Definition Resolver.h:189
Resolver & WithRequestMappingTemplate(Aws::String &&value)
Definition Resolver.h:112
void SetMetricsConfig(ResolverLevelMetricsConfig &&value)
Definition Resolver.h:235
void SetKind(const ResolverKind &value)
Definition Resolver.h:141
void SetDataSourceName(const char *value)
Definition Resolver.h:82
void SetResponseMappingTemplate(const Aws::String &value)
Definition Resolver.h:122
bool RequestMappingTemplateHasBeenSet() const
Definition Resolver.h:107
bool TypeNameHasBeenSet() const
Definition Resolver.h:51
const Aws::String & GetResponseMappingTemplate() const
Definition Resolver.h:120
void SetResponseMappingTemplate(const char *value)
Definition Resolver.h:124
Resolver & WithResponseMappingTemplate(Aws::String &&value)
Definition Resolver.h:126
const PipelineConfig & GetPipelineConfig() const
Definition Resolver.h:151
const Aws::String & GetRequestMappingTemplate() const
Definition Resolver.h:106
Resolver & WithKind(ResolverKind &&value)
Definition Resolver.h:144
Resolver & WithRequestMappingTemplate(const char *value)
Definition Resolver.h:113
void SetCode(Aws::String &&value)
Definition Resolver.h:213
Resolver & WithResolverArn(const Aws::String &value)
Definition Resolver.h:97
Resolver & WithResponseMappingTemplate(const char *value)
Definition Resolver.h:127
Resolver & WithFieldName(Aws::String &&value)
Definition Resolver.h:70
Resolver & WithDataSourceName(Aws::String &&value)
Definition Resolver.h:84
AWS_APPSYNC_API Resolver(Aws::Utils::Json::JsonView jsonValue)
Resolver & WithDataSourceName(const Aws::String &value)
Definition Resolver.h:83
void SetResolverArn(const char *value)
Definition Resolver.h:96
bool FieldNameHasBeenSet() const
Definition Resolver.h:65
Resolver & WithTypeName(Aws::String &&value)
Definition Resolver.h:56
Resolver & WithFieldName(const Aws::String &value)
Definition Resolver.h:69
void SetFieldName(const Aws::String &value)
Definition Resolver.h:66
void SetCode(const Aws::String &value)
Definition Resolver.h:212
void SetPipelineConfig(const PipelineConfig &value)
Definition Resolver.h:153
void SetRuntime(const AppSyncRuntime &value)
Definition Resolver.h:198
Resolver & WithFieldName(const char *value)
Definition Resolver.h:71
Resolver & WithMetricsConfig(const ResolverLevelMetricsConfig &value)
Definition Resolver.h:236
void SetMaxBatchSize(int value)
Definition Resolver.h:190
void SetSyncConfig(const SyncConfig &value)
Definition Resolver.h:166
void SetRequestMappingTemplate(const Aws::String &value)
Definition Resolver.h:108
void SetMetricsConfig(const ResolverLevelMetricsConfig &value)
Definition Resolver.h:234
Resolver & WithResolverArn(const char *value)
Definition Resolver.h:99
bool PipelineConfigHasBeenSet() const
Definition Resolver.h:152
const Aws::String & GetResolverArn() const
Definition Resolver.h:92
void SetDataSourceName(Aws::String &&value)
Definition Resolver.h:81
bool ResponseMappingTemplateHasBeenSet() const
Definition Resolver.h:121
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFieldName(Aws::String &&value)
Definition Resolver.h:67
const Aws::String & GetFieldName() const
Definition Resolver.h:64
AWS_APPSYNC_API Resolver & operator=(Aws::Utils::Json::JsonView jsonValue)
Resolver & WithResolverArn(Aws::String &&value)
Definition Resolver.h:98
Resolver & WithCachingConfig(CachingConfig &&value)
Definition Resolver.h:181
void SetTypeName(const Aws::String &value)
Definition Resolver.h:52
const AppSyncRuntime & GetRuntime() const
Definition Resolver.h:196
Resolver & WithSyncConfig(SyncConfig &&value)
Definition Resolver.h:169
void SetTypeName(const char *value)
Definition Resolver.h:54
const Aws::String & GetCode() const
Definition Resolver.h:210
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue