/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the appsync-2017-07-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AppSync.Model { /// /// Describes a resolver. /// public partial class Resolver { private CachingConfig _cachingConfig; private string _code; private string _dataSourceName; private string _fieldName; private ResolverKind _kind; private int? _maxBatchSize; private PipelineConfig _pipelineConfig; private string _requestMappingTemplate; private string _resolverArn; private string _responseMappingTemplate; private AppSyncRuntime _runtime; private SyncConfig _syncConfig; private string _typeName; /// /// Gets and sets the property CachingConfig. /// /// The caching configuration for the resolver. /// /// public CachingConfig CachingConfig { get { return this._cachingConfig; } set { this._cachingConfig = value; } } // Check to see if CachingConfig property is set internal bool IsSetCachingConfig() { return this._cachingConfig != null; } /// /// Gets and sets the property Code. /// /// The resolver code that contains the request and response functions. When /// code is used, the runtime is required. The runtime value /// must be APPSYNC_JS. /// /// [AWSProperty(Min=1, Max=32768)] public string Code { get { return this._code; } set { this._code = value; } } // Check to see if Code property is set internal bool IsSetCode() { return this._code != null; } /// /// Gets and sets the property DataSourceName. /// /// The resolver data source name. /// /// [AWSProperty(Min=1, Max=65536)] public string DataSourceName { get { return this._dataSourceName; } set { this._dataSourceName = value; } } // Check to see if DataSourceName property is set internal bool IsSetDataSourceName() { return this._dataSourceName != null; } /// /// Gets and sets the property FieldName. /// /// The resolver field name. /// /// [AWSProperty(Min=1, Max=65536)] public string FieldName { get { return this._fieldName; } set { this._fieldName = value; } } // Check to see if FieldName property is set internal bool IsSetFieldName() { return this._fieldName != null; } /// /// Gets and sets the property Kind. /// /// The resolver type. /// /// /// public ResolverKind Kind { get { return this._kind; } set { this._kind = value; } } // Check to see if Kind property is set internal bool IsSetKind() { return this._kind != null; } /// /// Gets and sets the property MaxBatchSize. /// /// The maximum batching size for a resolver. /// /// [AWSProperty(Min=0, Max=2000)] public int MaxBatchSize { get { return this._maxBatchSize.GetValueOrDefault(); } set { this._maxBatchSize = value; } } // Check to see if MaxBatchSize property is set internal bool IsSetMaxBatchSize() { return this._maxBatchSize.HasValue; } /// /// Gets and sets the property PipelineConfig. /// /// The PipelineConfig. /// /// public PipelineConfig PipelineConfig { get { return this._pipelineConfig; } set { this._pipelineConfig = value; } } // Check to see if PipelineConfig property is set internal bool IsSetPipelineConfig() { return this._pipelineConfig != null; } /// /// Gets and sets the property RequestMappingTemplate. /// /// The request mapping template. /// /// [AWSProperty(Min=1, Max=65536)] public string RequestMappingTemplate { get { return this._requestMappingTemplate; } set { this._requestMappingTemplate = value; } } // Check to see if RequestMappingTemplate property is set internal bool IsSetRequestMappingTemplate() { return this._requestMappingTemplate != null; } /// /// Gets and sets the property ResolverArn. /// /// The resolver Amazon Resource Name (ARN). /// /// public string ResolverArn { get { return this._resolverArn; } set { this._resolverArn = value; } } // Check to see if ResolverArn property is set internal bool IsSetResolverArn() { return this._resolverArn != null; } /// /// Gets and sets the property ResponseMappingTemplate. /// /// The response mapping template. /// /// [AWSProperty(Min=1, Max=65536)] public string ResponseMappingTemplate { get { return this._responseMappingTemplate; } set { this._responseMappingTemplate = value; } } // Check to see if ResponseMappingTemplate property is set internal bool IsSetResponseMappingTemplate() { return this._responseMappingTemplate != null; } /// /// Gets and sets the property Runtime. /// public AppSyncRuntime Runtime { get { return this._runtime; } set { this._runtime = value; } } // Check to see if Runtime property is set internal bool IsSetRuntime() { return this._runtime != null; } /// /// Gets and sets the property SyncConfig. /// /// The SyncConfig for a resolver attached to a versioned data source. /// /// public SyncConfig SyncConfig { get { return this._syncConfig; } set { this._syncConfig = value; } } // Check to see if SyncConfig property is set internal bool IsSetSyncConfig() { return this._syncConfig != null; } /// /// Gets and sets the property TypeName. /// /// The resolver type name. /// /// [AWSProperty(Min=1, Max=65536)] public string TypeName { get { return this._typeName; } set { this._typeName = value; } } // Check to see if TypeName property is set internal bool IsSetTypeName() { return this._typeName != null; } } }