This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-appsync/include/aws/appsync/model/Resolver.h

491 lines
17 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appsync/AppSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/appsync/model/ResolverKind.h>
#include <aws/appsync/model/PipelineConfig.h>
#include <aws/appsync/model/SyncConfig.h>
#include <aws/appsync/model/CachingConfig.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace AppSync
{
namespace Model
{
/**
* <p>Describes a resolver.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/Resolver">AWS
* API Reference</a></p>
*/
class AWS_APPSYNC_API Resolver
{
public:
Resolver();
Resolver(Aws::Utils::Json::JsonView jsonValue);
Resolver& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The resolver type name.</p>
*/
inline const Aws::String& GetTypeName() const{ return m_typeName; }
/**
* <p>The resolver type name.</p>
*/
inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; }
/**
* <p>The resolver type name.</p>
*/
inline void SetTypeName(const Aws::String& value) { m_typeNameHasBeenSet = true; m_typeName = value; }
/**
* <p>The resolver type name.</p>
*/
inline void SetTypeName(Aws::String&& value) { m_typeNameHasBeenSet = true; m_typeName = std::move(value); }
/**
* <p>The resolver type name.</p>
*/
inline void SetTypeName(const char* value) { m_typeNameHasBeenSet = true; m_typeName.assign(value); }
/**
* <p>The resolver type name.</p>
*/
inline Resolver& WithTypeName(const Aws::String& value) { SetTypeName(value); return *this;}
/**
* <p>The resolver type name.</p>
*/
inline Resolver& WithTypeName(Aws::String&& value) { SetTypeName(std::move(value)); return *this;}
/**
* <p>The resolver type name.</p>
*/
inline Resolver& WithTypeName(const char* value) { SetTypeName(value); return *this;}
/**
* <p>The resolver field name.</p>
*/
inline const Aws::String& GetFieldName() const{ return m_fieldName; }
/**
* <p>The resolver field name.</p>
*/
inline bool FieldNameHasBeenSet() const { return m_fieldNameHasBeenSet; }
/**
* <p>The resolver field name.</p>
*/
inline void SetFieldName(const Aws::String& value) { m_fieldNameHasBeenSet = true; m_fieldName = value; }
/**
* <p>The resolver field name.</p>
*/
inline void SetFieldName(Aws::String&& value) { m_fieldNameHasBeenSet = true; m_fieldName = std::move(value); }
/**
* <p>The resolver field name.</p>
*/
inline void SetFieldName(const char* value) { m_fieldNameHasBeenSet = true; m_fieldName.assign(value); }
/**
* <p>The resolver field name.</p>
*/
inline Resolver& WithFieldName(const Aws::String& value) { SetFieldName(value); return *this;}
/**
* <p>The resolver field name.</p>
*/
inline Resolver& WithFieldName(Aws::String&& value) { SetFieldName(std::move(value)); return *this;}
/**
* <p>The resolver field name.</p>
*/
inline Resolver& WithFieldName(const char* value) { SetFieldName(value); return *this;}
/**
* <p>The resolver data source name.</p>
*/
inline const Aws::String& GetDataSourceName() const{ return m_dataSourceName; }
/**
* <p>The resolver data source name.</p>
*/
inline bool DataSourceNameHasBeenSet() const { return m_dataSourceNameHasBeenSet; }
/**
* <p>The resolver data source name.</p>
*/
inline void SetDataSourceName(const Aws::String& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = value; }
/**
* <p>The resolver data source name.</p>
*/
inline void SetDataSourceName(Aws::String&& value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName = std::move(value); }
/**
* <p>The resolver data source name.</p>
*/
inline void SetDataSourceName(const char* value) { m_dataSourceNameHasBeenSet = true; m_dataSourceName.assign(value); }
/**
* <p>The resolver data source name.</p>
*/
inline Resolver& WithDataSourceName(const Aws::String& value) { SetDataSourceName(value); return *this;}
/**
* <p>The resolver data source name.</p>
*/
inline Resolver& WithDataSourceName(Aws::String&& value) { SetDataSourceName(std::move(value)); return *this;}
/**
* <p>The resolver data source name.</p>
*/
inline Resolver& WithDataSourceName(const char* value) { SetDataSourceName(value); return *this;}
/**
* <p>The resolver ARN.</p>
*/
inline const Aws::String& GetResolverArn() const{ return m_resolverArn; }
/**
* <p>The resolver ARN.</p>
*/
inline bool ResolverArnHasBeenSet() const { return m_resolverArnHasBeenSet; }
/**
* <p>The resolver ARN.</p>
*/
inline void SetResolverArn(const Aws::String& value) { m_resolverArnHasBeenSet = true; m_resolverArn = value; }
/**
* <p>The resolver ARN.</p>
*/
inline void SetResolverArn(Aws::String&& value) { m_resolverArnHasBeenSet = true; m_resolverArn = std::move(value); }
/**
* <p>The resolver ARN.</p>
*/
inline void SetResolverArn(const char* value) { m_resolverArnHasBeenSet = true; m_resolverArn.assign(value); }
/**
* <p>The resolver ARN.</p>
*/
inline Resolver& WithResolverArn(const Aws::String& value) { SetResolverArn(value); return *this;}
/**
* <p>The resolver ARN.</p>
*/
inline Resolver& WithResolverArn(Aws::String&& value) { SetResolverArn(std::move(value)); return *this;}
/**
* <p>The resolver ARN.</p>
*/
inline Resolver& WithResolverArn(const char* value) { SetResolverArn(value); return *this;}
/**
* <p>The request mapping template.</p>
*/
inline const Aws::String& GetRequestMappingTemplate() const{ return m_requestMappingTemplate; }
/**
* <p>The request mapping template.</p>
*/
inline bool RequestMappingTemplateHasBeenSet() const { return m_requestMappingTemplateHasBeenSet; }
/**
* <p>The request mapping template.</p>
*/
inline void SetRequestMappingTemplate(const Aws::String& value) { m_requestMappingTemplateHasBeenSet = true; m_requestMappingTemplate = value; }
/**
* <p>The request mapping template.</p>
*/
inline void SetRequestMappingTemplate(Aws::String&& value) { m_requestMappingTemplateHasBeenSet = true; m_requestMappingTemplate = std::move(value); }
/**
* <p>The request mapping template.</p>
*/
inline void SetRequestMappingTemplate(const char* value) { m_requestMappingTemplateHasBeenSet = true; m_requestMappingTemplate.assign(value); }
/**
* <p>The request mapping template.</p>
*/
inline Resolver& WithRequestMappingTemplate(const Aws::String& value) { SetRequestMappingTemplate(value); return *this;}
/**
* <p>The request mapping template.</p>
*/
inline Resolver& WithRequestMappingTemplate(Aws::String&& value) { SetRequestMappingTemplate(std::move(value)); return *this;}
/**
* <p>The request mapping template.</p>
*/
inline Resolver& WithRequestMappingTemplate(const char* value) { SetRequestMappingTemplate(value); return *this;}
/**
* <p>The response mapping template.</p>
*/
inline const Aws::String& GetResponseMappingTemplate() const{ return m_responseMappingTemplate; }
/**
* <p>The response mapping template.</p>
*/
inline bool ResponseMappingTemplateHasBeenSet() const { return m_responseMappingTemplateHasBeenSet; }
/**
* <p>The response mapping template.</p>
*/
inline void SetResponseMappingTemplate(const Aws::String& value) { m_responseMappingTemplateHasBeenSet = true; m_responseMappingTemplate = value; }
/**
* <p>The response mapping template.</p>
*/
inline void SetResponseMappingTemplate(Aws::String&& value) { m_responseMappingTemplateHasBeenSet = true; m_responseMappingTemplate = std::move(value); }
/**
* <p>The response mapping template.</p>
*/
inline void SetResponseMappingTemplate(const char* value) { m_responseMappingTemplateHasBeenSet = true; m_responseMappingTemplate.assign(value); }
/**
* <p>The response mapping template.</p>
*/
inline Resolver& WithResponseMappingTemplate(const Aws::String& value) { SetResponseMappingTemplate(value); return *this;}
/**
* <p>The response mapping template.</p>
*/
inline Resolver& WithResponseMappingTemplate(Aws::String&& value) { SetResponseMappingTemplate(std::move(value)); return *this;}
/**
* <p>The response mapping template.</p>
*/
inline Resolver& WithResponseMappingTemplate(const char* value) { SetResponseMappingTemplate(value); return *this;}
/**
* <p>The resolver type.</p> <ul> <li> <p> <b>UNIT</b>: 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.</p> </li> <li> <p>
* <b>PIPELINE</b>: A PIPELINE resolver type. A PIPELINE resolver enables you to
* execute a series of <code>Function</code> in a serial manner. You can use a
* pipeline resolver to execute a GraphQL query against multiple data sources.</p>
* </li> </ul>
*/
inline const ResolverKind& GetKind() const{ return m_kind; }
/**
* <p>The resolver type.</p> <ul> <li> <p> <b>UNIT</b>: 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.</p> </li> <li> <p>
* <b>PIPELINE</b>: A PIPELINE resolver type. A PIPELINE resolver enables you to
* execute a series of <code>Function</code> in a serial manner. You can use a
* pipeline resolver to execute a GraphQL query against multiple data sources.</p>
* </li> </ul>
*/
inline bool KindHasBeenSet() const { return m_kindHasBeenSet; }
/**
* <p>The resolver type.</p> <ul> <li> <p> <b>UNIT</b>: 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.</p> </li> <li> <p>
* <b>PIPELINE</b>: A PIPELINE resolver type. A PIPELINE resolver enables you to
* execute a series of <code>Function</code> in a serial manner. You can use a
* pipeline resolver to execute a GraphQL query against multiple data sources.</p>
* </li> </ul>
*/
inline void SetKind(const ResolverKind& value) { m_kindHasBeenSet = true; m_kind = value; }
/**
* <p>The resolver type.</p> <ul> <li> <p> <b>UNIT</b>: 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.</p> </li> <li> <p>
* <b>PIPELINE</b>: A PIPELINE resolver type. A PIPELINE resolver enables you to
* execute a series of <code>Function</code> in a serial manner. You can use a
* pipeline resolver to execute a GraphQL query against multiple data sources.</p>
* </li> </ul>
*/
inline void SetKind(ResolverKind&& value) { m_kindHasBeenSet = true; m_kind = std::move(value); }
/**
* <p>The resolver type.</p> <ul> <li> <p> <b>UNIT</b>: 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.</p> </li> <li> <p>
* <b>PIPELINE</b>: A PIPELINE resolver type. A PIPELINE resolver enables you to
* execute a series of <code>Function</code> in a serial manner. You can use a
* pipeline resolver to execute a GraphQL query against multiple data sources.</p>
* </li> </ul>
*/
inline Resolver& WithKind(const ResolverKind& value) { SetKind(value); return *this;}
/**
* <p>The resolver type.</p> <ul> <li> <p> <b>UNIT</b>: 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.</p> </li> <li> <p>
* <b>PIPELINE</b>: A PIPELINE resolver type. A PIPELINE resolver enables you to
* execute a series of <code>Function</code> in a serial manner. You can use a
* pipeline resolver to execute a GraphQL query against multiple data sources.</p>
* </li> </ul>
*/
inline Resolver& WithKind(ResolverKind&& value) { SetKind(std::move(value)); return *this;}
/**
* <p>The <code>PipelineConfig</code>.</p>
*/
inline const PipelineConfig& GetPipelineConfig() const{ return m_pipelineConfig; }
/**
* <p>The <code>PipelineConfig</code>.</p>
*/
inline bool PipelineConfigHasBeenSet() const { return m_pipelineConfigHasBeenSet; }
/**
* <p>The <code>PipelineConfig</code>.</p>
*/
inline void SetPipelineConfig(const PipelineConfig& value) { m_pipelineConfigHasBeenSet = true; m_pipelineConfig = value; }
/**
* <p>The <code>PipelineConfig</code>.</p>
*/
inline void SetPipelineConfig(PipelineConfig&& value) { m_pipelineConfigHasBeenSet = true; m_pipelineConfig = std::move(value); }
/**
* <p>The <code>PipelineConfig</code>.</p>
*/
inline Resolver& WithPipelineConfig(const PipelineConfig& value) { SetPipelineConfig(value); return *this;}
/**
* <p>The <code>PipelineConfig</code>.</p>
*/
inline Resolver& WithPipelineConfig(PipelineConfig&& value) { SetPipelineConfig(std::move(value)); return *this;}
/**
* <p>The <code>SyncConfig</code> for a resolver attached to a versioned
* datasource.</p>
*/
inline const SyncConfig& GetSyncConfig() const{ return m_syncConfig; }
/**
* <p>The <code>SyncConfig</code> for a resolver attached to a versioned
* datasource.</p>
*/
inline bool SyncConfigHasBeenSet() const { return m_syncConfigHasBeenSet; }
/**
* <p>The <code>SyncConfig</code> for a resolver attached to a versioned
* datasource.</p>
*/
inline void SetSyncConfig(const SyncConfig& value) { m_syncConfigHasBeenSet = true; m_syncConfig = value; }
/**
* <p>The <code>SyncConfig</code> for a resolver attached to a versioned
* datasource.</p>
*/
inline void SetSyncConfig(SyncConfig&& value) { m_syncConfigHasBeenSet = true; m_syncConfig = std::move(value); }
/**
* <p>The <code>SyncConfig</code> for a resolver attached to a versioned
* datasource.</p>
*/
inline Resolver& WithSyncConfig(const SyncConfig& value) { SetSyncConfig(value); return *this;}
/**
* <p>The <code>SyncConfig</code> for a resolver attached to a versioned
* datasource.</p>
*/
inline Resolver& WithSyncConfig(SyncConfig&& value) { SetSyncConfig(std::move(value)); return *this;}
/**
* <p>The caching configuration for the resolver.</p>
*/
inline const CachingConfig& GetCachingConfig() const{ return m_cachingConfig; }
/**
* <p>The caching configuration for the resolver.</p>
*/
inline bool CachingConfigHasBeenSet() const { return m_cachingConfigHasBeenSet; }
/**
* <p>The caching configuration for the resolver.</p>
*/
inline void SetCachingConfig(const CachingConfig& value) { m_cachingConfigHasBeenSet = true; m_cachingConfig = value; }
/**
* <p>The caching configuration for the resolver.</p>
*/
inline void SetCachingConfig(CachingConfig&& value) { m_cachingConfigHasBeenSet = true; m_cachingConfig = std::move(value); }
/**
* <p>The caching configuration for the resolver.</p>
*/
inline Resolver& WithCachingConfig(const CachingConfig& value) { SetCachingConfig(value); return *this;}
/**
* <p>The caching configuration for the resolver.</p>
*/
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