AWS SDK for C++  1.9.154
AWS SDK for C++
Resolver.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace AppSync
26 {
27 namespace Model
28 {
29 
36  {
37  public:
42 
43 
47  inline const Aws::String& GetTypeName() const{ return m_typeName; }
48 
52  inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; }
53 
57  inline void SetTypeName(const Aws::String& value) { m_typeNameHasBeenSet = true; m_typeName = value; }
58 
62  inline void SetTypeName(Aws::String&& value) { m_typeNameHasBeenSet = true; m_typeName = std::move(value); }
63 
67  inline void SetTypeName(const char* value) { m_typeNameHasBeenSet = true; m_typeName.assign(value); }
68 
72  inline Resolver& WithTypeName(const Aws::String& value) { SetTypeName(value); return *this;}
73 
77  inline Resolver& WithTypeName(Aws::String&& value) { SetTypeName(std::move(value)); return *this;}
78 
82  inline Resolver& WithTypeName(const char* value) { SetTypeName(value); return *this;}
83 
84 
88  inline const Aws::String& GetFieldName() const{ return m_fieldName; }
89 
93  inline bool FieldNameHasBeenSet() const { return m_fieldNameHasBeenSet; }
94 
98  inline void SetFieldName(const Aws::String& value) { m_fieldNameHasBeenSet = true; m_fieldName = value; }
99 
103  inline void SetFieldName(Aws::String&& value) { m_fieldNameHasBeenSet = true; m_fieldName = std::move(value); }
104 
108  inline void SetFieldName(const char* value) { m_fieldNameHasBeenSet = true; m_fieldName.assign(value); }
109 
113  inline Resolver& WithFieldName(const Aws::String& value) { SetFieldName(value); return *this;}
114 
118  inline Resolver& WithFieldName(Aws::String&& value) { SetFieldName(std::move(value)); return *this;}
119 
123  inline Resolver& WithFieldName(const char* value) { SetFieldName(value); return *this;}
124 
125 
129  inline const Aws::String& GetDataSourceName() const{ return m_dataSourceName; }
130 
134  inline bool DataSourceNameHasBeenSet() const { return m_dataSourceNameHasBeenSet; }
135 
139  inline void SetDataSourceName(const Aws::String& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = value; }
140 
144  inline void SetDataSourceName(Aws::String&& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = std::move(value); }
145 
149  inline void SetDataSourceName(const char* value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName.assign(value); }
150 
154  inline Resolver& WithDataSourceName(const Aws::String& value) { SetDataSourceName(value); return *this;}
155 
159  inline Resolver& WithDataSourceName(Aws::String&& value) { SetDataSourceName(std::move(value)); return *this;}
160 
164  inline Resolver& WithDataSourceName(const char* value) { SetDataSourceName(value); return *this;}
165 
166 
170  inline const Aws::String& GetResolverArn() const{ return m_resolverArn; }
171 
175  inline bool ResolverArnHasBeenSet() const { return m_resolverArnHasBeenSet; }
176 
180  inline void SetResolverArn(const Aws::String& value) { m_resolverArnHasBeenSet = true; m_resolverArn = value; }
181 
185  inline void SetResolverArn(Aws::String&& value) { m_resolverArnHasBeenSet = true; m_resolverArn = std::move(value); }
186 
190  inline void SetResolverArn(const char* value) { m_resolverArnHasBeenSet = true; m_resolverArn.assign(value); }
191 
195  inline Resolver& WithResolverArn(const Aws::String& value) { SetResolverArn(value); return *this;}
196 
200  inline Resolver& WithResolverArn(Aws::String&& value) { SetResolverArn(std::move(value)); return *this;}
201 
205  inline Resolver& WithResolverArn(const char* value) { SetResolverArn(value); return *this;}
206 
207 
211  inline const Aws::String& GetRequestMappingTemplate() const{ return m_requestMappingTemplate; }
212 
216  inline bool RequestMappingTemplateHasBeenSet() const { return m_requestMappingTemplateHasBeenSet; }
217 
221  inline void SetRequestMappingTemplate(const Aws::String& value) { m_requestMappingTemplateHasBeenSet = true; m_requestMappingTemplate = value; }
222 
226  inline void SetRequestMappingTemplate(Aws::String&& value) { m_requestMappingTemplateHasBeenSet = true; m_requestMappingTemplate = std::move(value); }
227 
231  inline void SetRequestMappingTemplate(const char* value) { m_requestMappingTemplateHasBeenSet = true; m_requestMappingTemplate.assign(value); }
232 
236  inline Resolver& WithRequestMappingTemplate(const Aws::String& value) { SetRequestMappingTemplate(value); return *this;}
237 
241  inline Resolver& WithRequestMappingTemplate(Aws::String&& value) { SetRequestMappingTemplate(std::move(value)); return *this;}
242 
246  inline Resolver& WithRequestMappingTemplate(const char* value) { SetRequestMappingTemplate(value); return *this;}
247 
248 
252  inline const Aws::String& GetResponseMappingTemplate() const{ return m_responseMappingTemplate; }
253 
257  inline bool ResponseMappingTemplateHasBeenSet() const { return m_responseMappingTemplateHasBeenSet; }
258 
262  inline void SetResponseMappingTemplate(const Aws::String& value) { m_responseMappingTemplateHasBeenSet = true; m_responseMappingTemplate = value; }
263 
267  inline void SetResponseMappingTemplate(Aws::String&& value) { m_responseMappingTemplateHasBeenSet = true; m_responseMappingTemplate = std::move(value); }
268 
272  inline void SetResponseMappingTemplate(const char* value) { m_responseMappingTemplateHasBeenSet = true; m_responseMappingTemplate.assign(value); }
273 
277  inline Resolver& WithResponseMappingTemplate(const Aws::String& value) { SetResponseMappingTemplate(value); return *this;}
278 
282  inline Resolver& WithResponseMappingTemplate(Aws::String&& value) { SetResponseMappingTemplate(std::move(value)); return *this;}
283 
287  inline Resolver& WithResponseMappingTemplate(const char* value) { SetResponseMappingTemplate(value); return *this;}
288 
289 
299  inline const ResolverKind& GetKind() const{ return m_kind; }
300 
310  inline bool KindHasBeenSet() const { return m_kindHasBeenSet; }
311 
321  inline void SetKind(const ResolverKind& value) { m_kindHasBeenSet = true; m_kind = value; }
322 
332  inline void SetKind(ResolverKind&& value) { m_kindHasBeenSet = true; m_kind = std::move(value); }
333 
343  inline Resolver& WithKind(const ResolverKind& value) { SetKind(value); return *this;}
344 
354  inline Resolver& WithKind(ResolverKind&& value) { SetKind(std::move(value)); return *this;}
355 
356 
360  inline const PipelineConfig& GetPipelineConfig() const{ return m_pipelineConfig; }
361 
365  inline bool PipelineConfigHasBeenSet() const { return m_pipelineConfigHasBeenSet; }
366 
370  inline void SetPipelineConfig(const PipelineConfig& value) { m_pipelineConfigHasBeenSet = true; m_pipelineConfig = value; }
371 
375  inline void SetPipelineConfig(PipelineConfig&& value) { m_pipelineConfigHasBeenSet = true; m_pipelineConfig = std::move(value); }
376 
380  inline Resolver& WithPipelineConfig(const PipelineConfig& value) { SetPipelineConfig(value); return *this;}
381 
385  inline Resolver& WithPipelineConfig(PipelineConfig&& value) { SetPipelineConfig(std::move(value)); return *this;}
386 
387 
392  inline const SyncConfig& GetSyncConfig() const{ return m_syncConfig; }
393 
398  inline bool SyncConfigHasBeenSet() const { return m_syncConfigHasBeenSet; }
399 
404  inline void SetSyncConfig(const SyncConfig& value) { m_syncConfigHasBeenSet = true; m_syncConfig = value; }
405 
410  inline void SetSyncConfig(SyncConfig&& value) { m_syncConfigHasBeenSet = true; m_syncConfig = std::move(value); }
411 
416  inline Resolver& WithSyncConfig(const SyncConfig& value) { SetSyncConfig(value); return *this;}
417 
422  inline Resolver& WithSyncConfig(SyncConfig&& value) { SetSyncConfig(std::move(value)); return *this;}
423 
424 
428  inline const CachingConfig& GetCachingConfig() const{ return m_cachingConfig; }
429 
433  inline bool CachingConfigHasBeenSet() const { return m_cachingConfigHasBeenSet; }
434 
438  inline void SetCachingConfig(const CachingConfig& value) { m_cachingConfigHasBeenSet = true; m_cachingConfig = value; }
439 
443  inline void SetCachingConfig(CachingConfig&& value) { m_cachingConfigHasBeenSet = true; m_cachingConfig = std::move(value); }
444 
448  inline Resolver& WithCachingConfig(const CachingConfig& value) { SetCachingConfig(value); return *this;}
449 
453  inline Resolver& WithCachingConfig(CachingConfig&& value) { SetCachingConfig(std::move(value)); return *this;}
454 
455  private:
456 
457  Aws::String m_typeName;
458  bool m_typeNameHasBeenSet;
459 
460  Aws::String m_fieldName;
461  bool m_fieldNameHasBeenSet;
462 
463  Aws::String m_dataSourceName;
464  bool m_dataSourceNameHasBeenSet;
465 
466  Aws::String m_resolverArn;
467  bool m_resolverArnHasBeenSet;
468 
469  Aws::String m_requestMappingTemplate;
470  bool m_requestMappingTemplateHasBeenSet;
471 
472  Aws::String m_responseMappingTemplate;
473  bool m_responseMappingTemplateHasBeenSet;
474 
475  ResolverKind m_kind;
476  bool m_kindHasBeenSet;
477 
478  PipelineConfig m_pipelineConfig;
479  bool m_pipelineConfigHasBeenSet;
480 
481  SyncConfig m_syncConfig;
482  bool m_syncConfigHasBeenSet;
483 
484  CachingConfig m_cachingConfig;
485  bool m_cachingConfigHasBeenSet;
486  };
487 
488 } // namespace Model
489 } // namespace AppSync
490 } // namespace Aws
Aws::AppSync::Model::Resolver::CachingConfigHasBeenSet
bool CachingConfigHasBeenSet() const
Definition: Resolver.h:433
Aws::AppSync::Model::Resolver::GetFieldName
const Aws::String & GetFieldName() const
Definition: Resolver.h:88
Aws::AppSync::Model::Resolver::GetDataSourceName
const Aws::String & GetDataSourceName() const
Definition: Resolver.h:129
Aws::AppSync::Model::Resolver::WithPipelineConfig
Resolver & WithPipelineConfig(PipelineConfig &&value)
Definition: Resolver.h:385
Aws::AppSync::Model::Resolver::ResponseMappingTemplateHasBeenSet
bool ResponseMappingTemplateHasBeenSet() const
Definition: Resolver.h:257
Aws::AppSync::Model::Resolver::WithResolverArn
Resolver & WithResolverArn(const char *value)
Definition: Resolver.h:205
Aws::AppSync::Model::Resolver::RequestMappingTemplateHasBeenSet
bool RequestMappingTemplateHasBeenSet() const
Definition: Resolver.h:216
Aws::AppSync::Model::Resolver::GetRequestMappingTemplate
const Aws::String & GetRequestMappingTemplate() const
Definition: Resolver.h:211
Aws::AppSync::Model::Resolver::SetKind
void SetKind(ResolverKind &&value)
Definition: Resolver.h:332
Aws::AppSync::Model::Resolver::SetRequestMappingTemplate
void SetRequestMappingTemplate(const Aws::String &value)
Definition: Resolver.h:221
Aws::AppSync::Model::Resolver::SyncConfigHasBeenSet
bool SyncConfigHasBeenSet() const
Definition: Resolver.h:398
Aws::AppSync::Model::Resolver::WithDataSourceName
Resolver & WithDataSourceName(const Aws::String &value)
Definition: Resolver.h:154
Aws::AppSync::Model::Resolver::WithFieldName
Resolver & WithFieldName(Aws::String &&value)
Definition: Resolver.h:118
Aws::AppSync::Model::Resolver::SetFieldName
void SetFieldName(const Aws::String &value)
Definition: Resolver.h:98
Aws::AppSync::Model::Resolver::WithTypeName
Resolver & WithTypeName(const Aws::String &value)
Definition: Resolver.h:72
Aws::AppSync::Model::Resolver::ResolverArnHasBeenSet
bool ResolverArnHasBeenSet() const
Definition: Resolver.h:175
Aws::AppSync::Model::Resolver::SetPipelineConfig
void SetPipelineConfig(PipelineConfig &&value)
Definition: Resolver.h:375
Aws::AppSync::Model::Resolver::SetDataSourceName
void SetDataSourceName(const char *value)
Definition: Resolver.h:149
Aws::AppSync::Model::Resolver::WithRequestMappingTemplate
Resolver & WithRequestMappingTemplate(const char *value)
Definition: Resolver.h:246
Aws::AppSync::Model::Resolver::WithPipelineConfig
Resolver & WithPipelineConfig(const PipelineConfig &value)
Definition: Resolver.h:380
Aws::AppSync::Model::Resolver::WithResolverArn
Resolver & WithResolverArn(Aws::String &&value)
Definition: Resolver.h:200
ResolverKind.h
PipelineConfig.h
Aws::AppSync::Model::Resolver::SetResolverArn
void SetResolverArn(Aws::String &&value)
Definition: Resolver.h:185
Aws::AppSync::Model::Resolver::GetResolverArn
const Aws::String & GetResolverArn() const
Definition: Resolver.h:170
Aws::AppSync::Model::Resolver::KindHasBeenSet
bool KindHasBeenSet() const
Definition: Resolver.h:310
Aws::AppSync::Model::PipelineConfig
Definition: PipelineConfig.h:34
Aws::AppSync::Model::Resolver::WithSyncConfig
Resolver & WithSyncConfig(const SyncConfig &value)
Definition: Resolver.h:416
Aws::AppSync::Model::Resolver::TypeNameHasBeenSet
bool TypeNameHasBeenSet() const
Definition: Resolver.h:52
AppSync_EXPORTS.h
Aws::AppSync::Model::Resolver::GetResponseMappingTemplate
const Aws::String & GetResponseMappingTemplate() const
Definition: Resolver.h:252
Aws::AppSync::Model::Resolver::SetResponseMappingTemplate
void SetResponseMappingTemplate(const Aws::String &value)
Definition: Resolver.h:262
Aws::AppSync::Model::Resolver::WithCachingConfig
Resolver & WithCachingConfig(const CachingConfig &value)
Definition: Resolver.h:448
Aws::AppSync::Model::Resolver::SetResolverArn
void SetResolverArn(const char *value)
Definition: Resolver.h:190
Aws::AppSync::Model::Resolver::SetDataSourceName
void SetDataSourceName(const Aws::String &value)
Definition: Resolver.h:139
Aws::AppSync::Model::Resolver::SetTypeName
void SetTypeName(Aws::String &&value)
Definition: Resolver.h:62
Aws::AppSync::Model::Resolver::Resolver
Resolver()
Aws::AppSync::Model::Resolver::SetCachingConfig
void SetCachingConfig(CachingConfig &&value)
Definition: Resolver.h:443
Aws::AppSync::Model::Resolver::WithTypeName
Resolver & WithTypeName(Aws::String &&value)
Definition: Resolver.h:77
Aws::AppSync::Model::Resolver::SetFieldName
void SetFieldName(Aws::String &&value)
Definition: Resolver.h:103
Aws::AppSync::Model::Resolver::GetTypeName
const Aws::String & GetTypeName() const
Definition: Resolver.h:47
Aws::AppSync::Model::Resolver::SetCachingConfig
void SetCachingConfig(const CachingConfig &value)
Definition: Resolver.h:438
Aws::AppSync::Model::Resolver::WithCachingConfig
Resolver & WithCachingConfig(CachingConfig &&value)
Definition: Resolver.h:453
SyncConfig.h
Aws::AppSync::Model::Resolver::SetSyncConfig
void SetSyncConfig(SyncConfig &&value)
Definition: Resolver.h:410
Aws::AppSync::Model::Resolver::WithKind
Resolver & WithKind(ResolverKind &&value)
Definition: Resolver.h:354
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::AppSync::Model::Resolver::SetSyncConfig
void SetSyncConfig(const SyncConfig &value)
Definition: Resolver.h:404
Aws::AppSync::Model::Resolver::WithResponseMappingTemplate
Resolver & WithResponseMappingTemplate(Aws::String &&value)
Definition: Resolver.h:282
Aws::AppSync::Model::Resolver::FieldNameHasBeenSet
bool FieldNameHasBeenSet() const
Definition: Resolver.h:93
Aws::AppSync::Model::Resolver::SetResolverArn
void SetResolverArn(const Aws::String &value)
Definition: Resolver.h:180
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AppSync::Model::Resolver::SetFieldName
void SetFieldName(const char *value)
Definition: Resolver.h:108
Aws::AppSync::Model::Resolver::SetRequestMappingTemplate
void SetRequestMappingTemplate(Aws::String &&value)
Definition: Resolver.h:226
Aws::AppSync::Model::Resolver::SetKind
void SetKind(const ResolverKind &value)
Definition: Resolver.h:321
Aws::AppSync::Model::Resolver::GetCachingConfig
const CachingConfig & GetCachingConfig() const
Definition: Resolver.h:428
Aws::AppSync::Model::Resolver::WithRequestMappingTemplate
Resolver & WithRequestMappingTemplate(const Aws::String &value)
Definition: Resolver.h:236
Aws::AppSync::Model::Resolver::WithFieldName
Resolver & WithFieldName(const char *value)
Definition: Resolver.h:123
Aws::AppSync::Model::Resolver::SetResponseMappingTemplate
void SetResponseMappingTemplate(const char *value)
Definition: Resolver.h:272
Aws::AppSync::Model::Resolver::GetPipelineConfig
const PipelineConfig & GetPipelineConfig() const
Definition: Resolver.h:360
Aws::AppSync::Model::Resolver::WithResponseMappingTemplate
Resolver & WithResponseMappingTemplate(const char *value)
Definition: Resolver.h:287
Aws::AppSync::Model::Resolver::WithDataSourceName
Resolver & WithDataSourceName(const char *value)
Definition: Resolver.h:164
Aws::AppSync::Model::Resolver::SetTypeName
void SetTypeName(const Aws::String &value)
Definition: Resolver.h:57
Aws::AppSync::Model::CachingConfig
Definition: CachingConfig.h:34
Aws::AppSync::Model::Resolver::GetSyncConfig
const SyncConfig & GetSyncConfig() const
Definition: Resolver.h:392
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::AppSync::Model::Resolver::WithDataSourceName
Resolver & WithDataSourceName(Aws::String &&value)
Definition: Resolver.h:159
Aws::AppSync::Model::Resolver::DataSourceNameHasBeenSet
bool DataSourceNameHasBeenSet() const
Definition: Resolver.h:134
CachingConfig.h
Aws::AppSync::Model::Resolver::SetTypeName
void SetTypeName(const char *value)
Definition: Resolver.h:67
Aws::AppSync::Model::Resolver::WithKind
Resolver & WithKind(const ResolverKind &value)
Definition: Resolver.h:343
Aws::AppSync::Model::Resolver::WithTypeName
Resolver & WithTypeName(const char *value)
Definition: Resolver.h:82
Aws::AppSync::Model::Resolver
Definition: Resolver.h:36
Aws::AppSync::Model::Resolver::GetKind
const ResolverKind & GetKind() const
Definition: Resolver.h:299
Aws::AppSync::Model::Resolver::WithFieldName
Resolver & WithFieldName(const Aws::String &value)
Definition: Resolver.h:113
AWS_APPSYNC_API
#define AWS_APPSYNC_API
Definition: AppSync_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppSync::Model::Resolver::WithRequestMappingTemplate
Resolver & WithRequestMappingTemplate(Aws::String &&value)
Definition: Resolver.h:241
Aws::AppSync::Model::Resolver::SetRequestMappingTemplate
void SetRequestMappingTemplate(const char *value)
Definition: Resolver.h:231
Aws::AppSync::Model::Resolver::PipelineConfigHasBeenSet
bool PipelineConfigHasBeenSet() const
Definition: Resolver.h:365
Aws::AppSync::Model::Resolver::SetPipelineConfig
void SetPipelineConfig(const PipelineConfig &value)
Definition: Resolver.h:370
Aws::AppSync::Model::Resolver::SetDataSourceName
void SetDataSourceName(Aws::String &&value)
Definition: Resolver.h:144
Aws::AppSync::Model::Resolver::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppSync::Model::Resolver::operator=
Resolver & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppSync::Model::ResolverKind
ResolverKind
Definition: ResolverKind.h:17
Aws::AppSync::Model::Resolver::Resolver
Resolver(Aws::Utils::Json::JsonView jsonValue)
Aws::AppSync::Model::Resolver::WithResponseMappingTemplate
Resolver & WithResponseMappingTemplate(const Aws::String &value)
Definition: Resolver.h:277
Aws::AppSync::Model::SyncConfig
Definition: SyncConfig.h:36
Aws::AppSync::Model::Resolver::WithSyncConfig
Resolver & WithSyncConfig(SyncConfig &&value)
Definition: Resolver.h:422
Aws::AppSync::Model::Resolver::SetResponseMappingTemplate
void SetResponseMappingTemplate(Aws::String &&value)
Definition: Resolver.h:267
Aws::AppSync::Model::Resolver::WithResolverArn
Resolver & WithResolverArn(const Aws::String &value)
Definition: Resolver.h:195