/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a resolver.See Also:
AWS
* API Reference
The resolver type name.
*/ inline const Aws::String& GetTypeName() const{ return m_typeName; } /** *The resolver type name.
*/ inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; } /** *The resolver type name.
*/ inline void SetTypeName(const Aws::String& value) { m_typeNameHasBeenSet = true; m_typeName = value; } /** *The resolver type name.
*/ inline void SetTypeName(Aws::String&& value) { m_typeNameHasBeenSet = true; m_typeName = std::move(value); } /** *The resolver type name.
*/ inline void SetTypeName(const char* value) { m_typeNameHasBeenSet = true; m_typeName.assign(value); } /** *The resolver type name.
*/ inline Resolver& WithTypeName(const Aws::String& value) { SetTypeName(value); return *this;} /** *The resolver type name.
*/ inline Resolver& WithTypeName(Aws::String&& value) { SetTypeName(std::move(value)); return *this;} /** *The resolver type name.
*/ inline Resolver& WithTypeName(const char* value) { SetTypeName(value); return *this;} /** *The resolver field name.
*/ inline const Aws::String& GetFieldName() const{ return m_fieldName; } /** *The resolver field name.
*/ inline bool FieldNameHasBeenSet() const { return m_fieldNameHasBeenSet; } /** *The resolver field name.
*/ inline void SetFieldName(const Aws::String& value) { m_fieldNameHasBeenSet = true; m_fieldName = value; } /** *The resolver field name.
*/ inline void SetFieldName(Aws::String&& value) { m_fieldNameHasBeenSet = true; m_fieldName = std::move(value); } /** *The resolver field name.
*/ inline void SetFieldName(const char* value) { m_fieldNameHasBeenSet = true; m_fieldName.assign(value); } /** *The resolver field name.
*/ inline Resolver& WithFieldName(const Aws::String& value) { SetFieldName(value); return *this;} /** *The resolver field name.
*/ inline Resolver& WithFieldName(Aws::String&& value) { SetFieldName(std::move(value)); return *this;} /** *The resolver field name.
*/ inline Resolver& WithFieldName(const char* value) { SetFieldName(value); return *this;} /** *The resolver data source name.
*/ inline const Aws::String& GetDataSourceName() const{ return m_dataSourceName; } /** *The resolver data source name.
*/ inline bool DataSourceNameHasBeenSet() const { return m_dataSourceNameHasBeenSet; } /** *The resolver data source name.
*/ inline void SetDataSourceName(const Aws::String& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = value; } /** *The resolver data source name.
*/ inline void SetDataSourceName(Aws::String&& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = std::move(value); } /** *The resolver data source name.
*/ inline void SetDataSourceName(const char* value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName.assign(value); } /** *The resolver data source name.
*/ inline Resolver& WithDataSourceName(const Aws::String& value) { SetDataSourceName(value); return *this;} /** *The resolver data source name.
*/ inline Resolver& WithDataSourceName(Aws::String&& value) { SetDataSourceName(std::move(value)); return *this;} /** *The resolver data source name.
*/ inline Resolver& WithDataSourceName(const char* value) { SetDataSourceName(value); return *this;} /** *The resolver ARN.
*/ inline const Aws::String& GetResolverArn() const{ return m_resolverArn; } /** *The resolver ARN.
*/ inline bool ResolverArnHasBeenSet() const { return m_resolverArnHasBeenSet; } /** *The resolver ARN.
*/ inline void SetResolverArn(const Aws::String& value) { m_resolverArnHasBeenSet = true; m_resolverArn = value; } /** *The resolver ARN.
*/ inline void SetResolverArn(Aws::String&& value) { m_resolverArnHasBeenSet = true; m_resolverArn = std::move(value); } /** *The resolver ARN.
*/ inline void SetResolverArn(const char* value) { m_resolverArnHasBeenSet = true; m_resolverArn.assign(value); } /** *The resolver ARN.
*/ inline Resolver& WithResolverArn(const Aws::String& value) { SetResolverArn(value); return *this;} /** *The resolver ARN.
*/ inline Resolver& WithResolverArn(Aws::String&& value) { SetResolverArn(std::move(value)); return *this;} /** *The resolver ARN.
*/ inline Resolver& WithResolverArn(const char* value) { SetResolverArn(value); return *this;} /** *The request mapping template.
*/ inline const Aws::String& GetRequestMappingTemplate() const{ return m_requestMappingTemplate; } /** *The request mapping template.
*/ inline bool RequestMappingTemplateHasBeenSet() const { return m_requestMappingTemplateHasBeenSet; } /** *The request mapping template.
*/ inline void SetRequestMappingTemplate(const Aws::String& value) { m_requestMappingTemplateHasBeenSet = true; m_requestMappingTemplate = value; } /** *The request mapping template.
*/ inline void SetRequestMappingTemplate(Aws::String&& value) { m_requestMappingTemplateHasBeenSet = true; m_requestMappingTemplate = std::move(value); } /** *The request mapping template.
*/ inline void SetRequestMappingTemplate(const char* value) { m_requestMappingTemplateHasBeenSet = true; m_requestMappingTemplate.assign(value); } /** *The request mapping template.
*/ inline Resolver& WithRequestMappingTemplate(const Aws::String& value) { SetRequestMappingTemplate(value); return *this;} /** *The request mapping template.
*/ inline Resolver& WithRequestMappingTemplate(Aws::String&& value) { SetRequestMappingTemplate(std::move(value)); return *this;} /** *The request mapping template.
*/ inline Resolver& WithRequestMappingTemplate(const char* value) { SetRequestMappingTemplate(value); return *this;} /** *The response mapping template.
*/ inline const Aws::String& GetResponseMappingTemplate() const{ return m_responseMappingTemplate; } /** *The response mapping template.
*/ inline bool ResponseMappingTemplateHasBeenSet() const { return m_responseMappingTemplateHasBeenSet; } /** *The response mapping template.
*/ inline void SetResponseMappingTemplate(const Aws::String& value) { m_responseMappingTemplateHasBeenSet = true; m_responseMappingTemplate = value; } /** *The response mapping template.
*/ inline void SetResponseMappingTemplate(Aws::String&& value) { m_responseMappingTemplateHasBeenSet = true; m_responseMappingTemplate = std::move(value); } /** *The response mapping template.
*/ inline void SetResponseMappingTemplate(const char* value) { m_responseMappingTemplateHasBeenSet = true; m_responseMappingTemplate.assign(value); } /** *The response mapping template.
*/ inline Resolver& WithResponseMappingTemplate(const Aws::String& value) { SetResponseMappingTemplate(value); return *this;} /** *The response mapping template.
*/ inline Resolver& WithResponseMappingTemplate(Aws::String&& value) { SetResponseMappingTemplate(std::move(value)); return *this;} /** *The response mapping template.
*/ inline Resolver& WithResponseMappingTemplate(const char* value) { SetResponseMappingTemplate(value); return *this;} /** *The resolver type.
UNIT: A UNIT resolver type. A * UNIT resolver is the default resolver type. A UNIT resolver enables you to * execute a GraphQL query against a single data source.
* PIPELINE: A PIPELINE resolver type. A PIPELINE resolver enables you to
* execute a series of Function in a serial manner. You can use a
* pipeline resolver to execute a GraphQL query against multiple data sources.
The resolver type.
UNIT: A UNIT resolver type. A * UNIT resolver is the default resolver type. A UNIT resolver enables you to * execute a GraphQL query against a single data source.
* PIPELINE: A PIPELINE resolver type. A PIPELINE resolver enables you to
* execute a series of Function in a serial manner. You can use a
* pipeline resolver to execute a GraphQL query against multiple data sources.
The resolver type.
UNIT: A UNIT resolver type. A * UNIT resolver is the default resolver type. A UNIT resolver enables you to * execute a GraphQL query against a single data source.
* PIPELINE: A PIPELINE resolver type. A PIPELINE resolver enables you to
* execute a series of Function in a serial manner. You can use a
* pipeline resolver to execute a GraphQL query against multiple data sources.
The resolver type.
UNIT: A UNIT resolver type. A * UNIT resolver is the default resolver type. A UNIT resolver enables you to * execute a GraphQL query against a single data source.
* PIPELINE: A PIPELINE resolver type. A PIPELINE resolver enables you to
* execute a series of Function in a serial manner. You can use a
* pipeline resolver to execute a GraphQL query against multiple data sources.
The resolver type.
UNIT: A UNIT resolver type. A * UNIT resolver is the default resolver type. A UNIT resolver enables you to * execute a GraphQL query against a single data source.
* PIPELINE: A PIPELINE resolver type. A PIPELINE resolver enables you to
* execute a series of Function in a serial manner. You can use a
* pipeline resolver to execute a GraphQL query against multiple data sources.
The resolver type.
UNIT: A UNIT resolver type. A * UNIT resolver is the default resolver type. A UNIT resolver enables you to * execute a GraphQL query against a single data source.
* PIPELINE: A PIPELINE resolver type. A PIPELINE resolver enables you to
* execute a series of Function in a serial manner. You can use a
* pipeline resolver to execute a GraphQL query against multiple data sources.
The PipelineConfig.
The PipelineConfig.
The PipelineConfig.
The PipelineConfig.
The PipelineConfig.
The PipelineConfig.
The SyncConfig for a resolver attached to a versioned
* datasource.
The SyncConfig for a resolver attached to a versioned
* datasource.
The SyncConfig for a resolver attached to a versioned
* datasource.
The SyncConfig for a resolver attached to a versioned
* datasource.
The SyncConfig for a resolver attached to a versioned
* datasource.
The SyncConfig for a resolver attached to a versioned
* datasource.
The caching configuration for the resolver.
*/ inline const CachingConfig& GetCachingConfig() const{ return m_cachingConfig; } /** *The caching configuration for the resolver.
*/ inline bool CachingConfigHasBeenSet() const { return m_cachingConfigHasBeenSet; } /** *The caching configuration for the resolver.
*/ inline void SetCachingConfig(const CachingConfig& value) { m_cachingConfigHasBeenSet = true; m_cachingConfig = value; } /** *The caching configuration for the resolver.
*/ inline void SetCachingConfig(CachingConfig&& value) { m_cachingConfigHasBeenSet = true; m_cachingConfig = std::move(value); } /** *The caching configuration for the resolver.
*/ inline Resolver& WithCachingConfig(const CachingConfig& value) { SetCachingConfig(value); return *this;} /** *The caching configuration for the resolver.
*/ inline Resolver& WithCachingConfig(CachingConfig&& value) { SetCachingConfig(std::move(value)); return *this;} private: Aws::String m_typeName; bool m_typeNameHasBeenSet; Aws::String m_fieldName; bool m_fieldNameHasBeenSet; Aws::String m_dataSourceName; bool m_dataSourceNameHasBeenSet; Aws::String m_resolverArn; bool m_resolverArnHasBeenSet; Aws::String m_requestMappingTemplate; bool m_requestMappingTemplateHasBeenSet; Aws::String m_responseMappingTemplate; bool m_responseMappingTemplateHasBeenSet; ResolverKind m_kind; bool m_kindHasBeenSet; PipelineConfig m_pipelineConfig; bool m_pipelineConfigHasBeenSet; SyncConfig m_syncConfig; bool m_syncConfigHasBeenSet; CachingConfig m_cachingConfig; bool m_cachingConfigHasBeenSet; }; } // namespace Model } // namespace AppSync } // namespace Aws