repo_name
stringlengths
1
52
repo_creator
stringclasses
6 values
programming_language
stringclasses
4 values
code
stringlengths
0
9.68M
num_lines
int64
1
234k
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// The pipeline configuration for a resolver of kind <code>PIPELINE</code>. /// </summary> public partial class PipelineConfig { private List<string> _functions = new List<string>(); /// <summary> /// Gets and sets the property Functions. /// <para> /// A list of <code>Function</code> objects. /// </para> /// </summary> public List<string> Functions { get { return this._functions; } set { this._functions = value; } } // Check to see if Functions property is set internal bool IsSetFunctions() { return this._functions != null && this._functions.Count > 0; } } }
57
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// The Amazon Relational Database Service (Amazon RDS) HTTP endpoint configuration. /// </summary> public partial class RdsHttpEndpointConfig { private string _awsRegion; private string _awsSecretStoreArn; private string _databaseName; private string _dbClusterIdentifier; private string _schema; /// <summary> /// Gets and sets the property AwsRegion. /// <para> /// Amazon Web Services Region for Amazon RDS HTTP endpoint. /// </para> /// </summary> public string AwsRegion { get { return this._awsRegion; } set { this._awsRegion = value; } } // Check to see if AwsRegion property is set internal bool IsSetAwsRegion() { return this._awsRegion != null; } /// <summary> /// Gets and sets the property AwsSecretStoreArn. /// <para> /// Amazon Web Services secret store Amazon Resource Name (ARN) for database credentials. /// </para> /// </summary> public string AwsSecretStoreArn { get { return this._awsSecretStoreArn; } set { this._awsSecretStoreArn = value; } } // Check to see if AwsSecretStoreArn property is set internal bool IsSetAwsSecretStoreArn() { return this._awsSecretStoreArn != null; } /// <summary> /// Gets and sets the property DatabaseName. /// <para> /// Logical database name. /// </para> /// </summary> public string DatabaseName { get { return this._databaseName; } set { this._databaseName = value; } } // Check to see if DatabaseName property is set internal bool IsSetDatabaseName() { return this._databaseName != null; } /// <summary> /// Gets and sets the property DbClusterIdentifier. /// <para> /// Amazon RDS cluster Amazon Resource Name (ARN). /// </para> /// </summary> public string DbClusterIdentifier { get { return this._dbClusterIdentifier; } set { this._dbClusterIdentifier = value; } } // Check to see if DbClusterIdentifier property is set internal bool IsSetDbClusterIdentifier() { return this._dbClusterIdentifier != null; } /// <summary> /// Gets and sets the property Schema. /// <para> /// Logical schema name. /// </para> /// </summary> public string Schema { get { return this._schema; } set { this._schema = value; } } // Check to see if Schema property is set internal bool IsSetSchema() { return this._schema != null; } } }
133
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Describes a relational database data source configuration. /// </summary> public partial class RelationalDatabaseDataSourceConfig { private RdsHttpEndpointConfig _rdsHttpEndpointConfig; private RelationalDatabaseSourceType _relationalDatabaseSourceType; /// <summary> /// Gets and sets the property RdsHttpEndpointConfig. /// <para> /// Amazon RDS HTTP endpoint settings. /// </para> /// </summary> public RdsHttpEndpointConfig RdsHttpEndpointConfig { get { return this._rdsHttpEndpointConfig; } set { this._rdsHttpEndpointConfig = value; } } // Check to see if RdsHttpEndpointConfig property is set internal bool IsSetRdsHttpEndpointConfig() { return this._rdsHttpEndpointConfig != null; } /// <summary> /// Gets and sets the property RelationalDatabaseSourceType. /// <para> /// Source type for the relational database. /// </para> /// <ul> <li> /// <para> /// <b>RDS_HTTP_ENDPOINT</b>: The relational database source type is an Amazon Relational /// Database Service (Amazon RDS) HTTP endpoint. /// </para> /// </li> </ul> /// </summary> public RelationalDatabaseSourceType RelationalDatabaseSourceType { get { return this._relationalDatabaseSourceType; } set { this._relationalDatabaseSourceType = value; } } // Check to see if RelationalDatabaseSourceType property is set internal bool IsSetRelationalDatabaseSourceType() { return this._relationalDatabaseSourceType != null; } } }
82
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Describes a resolver. /// </summary> 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; /// <summary> /// Gets and sets the property CachingConfig. /// <para> /// The caching configuration for the resolver. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property Code. /// <para> /// The <code>resolver</code> code that contains the request and response functions. When /// code is used, the <code>runtime</code> is required. The <code>runtime</code> value /// must be <code>APPSYNC_JS</code>. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property DataSourceName. /// <para> /// The resolver data source name. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property FieldName. /// <para> /// The resolver field name. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property Kind. /// <para> /// The resolver type. /// </para> /// <ul> <li> /// <para> /// <b>UNIT</b>: A UNIT resolver type. A UNIT resolver is the default resolver type. /// You can use a UNIT resolver to run a GraphQL query against a single data source. /// </para> /// </li> <li> /// <para> /// <b>PIPELINE</b>: A PIPELINE resolver type. You can use a PIPELINE resolver to invoke /// a series of <code>Function</code> objects in a serial manner. You can use a pipeline /// resolver to run a GraphQL query against multiple data sources. /// </para> /// </li> </ul> /// </summary> 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; } /// <summary> /// Gets and sets the property MaxBatchSize. /// <para> /// The maximum batching size for a resolver. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property PipelineConfig. /// <para> /// The <code>PipelineConfig</code>. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property RequestMappingTemplate. /// <para> /// The request mapping template. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property ResolverArn. /// <para> /// The resolver Amazon Resource Name (ARN). /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property ResponseMappingTemplate. /// <para> /// The response mapping template. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property Runtime. /// </summary> 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; } /// <summary> /// Gets and sets the property SyncConfig. /// <para> /// The <code>SyncConfig</code> for a resolver attached to a versioned data source. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property TypeName. /// <para> /// The resolver type name. /// </para> /// </summary> [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; } } }
303
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Describes the configuration of a source API. A source API is a GraphQL API that is /// linked to a merged API. There can be multiple source APIs attached to each merged /// API. When linked to a merged API, the source API's schema, data sources, and resolvers /// will be combined with other linked source API data to form a new, singular API. /// /// /// <para> /// Source APIs can originate from your account or from other accounts via Amazon Web /// Services Resource Access Manager. For more information about sharing resources from /// other accounts, see <a href="https://docs.aws.amazon.com/ram/latest/userguide/what-is.html">What /// is Amazon Web Services Resource Access Manager?</a> in the <i>Amazon Web Services /// Resource Access Manager</i> guide. /// </para> /// </summary> public partial class SourceApiAssociation { private string _associationArn; private string _associationId; private string _description; private DateTime? _lastSuccessfulMergeDate; private string _mergedApiArn; private string _mergedApiId; private string _sourceApiArn; private SourceApiAssociationConfig _sourceApiAssociationConfig; private SourceApiAssociationStatus _sourceApiAssociationStatus; private string _sourceApiAssociationStatusDetail; private string _sourceApiId; /// <summary> /// Gets and sets the property AssociationArn. /// <para> /// The Amazon Resource Name (ARN) of the source API association. /// </para> /// </summary> public string AssociationArn { get { return this._associationArn; } set { this._associationArn = value; } } // Check to see if AssociationArn property is set internal bool IsSetAssociationArn() { return this._associationArn != null; } /// <summary> /// Gets and sets the property AssociationId. /// <para> /// The ID generated by the AppSync service for the source API association. /// </para> /// </summary> public string AssociationId { get { return this._associationId; } set { this._associationId = value; } } // Check to see if AssociationId property is set internal bool IsSetAssociationId() { return this._associationId != null; } /// <summary> /// Gets and sets the property Description. /// <para> /// The description field. /// </para> /// </summary> public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property LastSuccessfulMergeDate. /// <para> /// The datetime value of the last successful merge of the source API association. The /// result will be in UTC format and your local time zone. /// </para> /// </summary> public DateTime LastSuccessfulMergeDate { get { return this._lastSuccessfulMergeDate.GetValueOrDefault(); } set { this._lastSuccessfulMergeDate = value; } } // Check to see if LastSuccessfulMergeDate property is set internal bool IsSetLastSuccessfulMergeDate() { return this._lastSuccessfulMergeDate.HasValue; } /// <summary> /// Gets and sets the property MergedApiArn. /// <para> /// The Amazon Resource Name (ARN) of the AppSync Merged API. /// </para> /// </summary> public string MergedApiArn { get { return this._mergedApiArn; } set { this._mergedApiArn = value; } } // Check to see if MergedApiArn property is set internal bool IsSetMergedApiArn() { return this._mergedApiArn != null; } /// <summary> /// Gets and sets the property MergedApiId. /// <para> /// The ID of the AppSync Merged API. /// </para> /// </summary> public string MergedApiId { get { return this._mergedApiId; } set { this._mergedApiId = value; } } // Check to see if MergedApiId property is set internal bool IsSetMergedApiId() { return this._mergedApiId != null; } /// <summary> /// Gets and sets the property SourceApiArn. /// <para> /// The Amazon Resource Name (ARN) of the AppSync source API. /// </para> /// </summary> public string SourceApiArn { get { return this._sourceApiArn; } set { this._sourceApiArn = value; } } // Check to see if SourceApiArn property is set internal bool IsSetSourceApiArn() { return this._sourceApiArn != null; } /// <summary> /// Gets and sets the property SourceApiAssociationConfig. /// <para> /// The <code>SourceApiAssociationConfig</code> object data. /// </para> /// </summary> public SourceApiAssociationConfig SourceApiAssociationConfig { get { return this._sourceApiAssociationConfig; } set { this._sourceApiAssociationConfig = value; } } // Check to see if SourceApiAssociationConfig property is set internal bool IsSetSourceApiAssociationConfig() { return this._sourceApiAssociationConfig != null; } /// <summary> /// Gets and sets the property SourceApiAssociationStatus. /// <para> /// The state of the source API association. /// </para> /// </summary> public SourceApiAssociationStatus SourceApiAssociationStatus { get { return this._sourceApiAssociationStatus; } set { this._sourceApiAssociationStatus = value; } } // Check to see if SourceApiAssociationStatus property is set internal bool IsSetSourceApiAssociationStatus() { return this._sourceApiAssociationStatus != null; } /// <summary> /// Gets and sets the property SourceApiAssociationStatusDetail. /// <para> /// The detailed message related to the current state of the source API association. /// </para> /// </summary> public string SourceApiAssociationStatusDetail { get { return this._sourceApiAssociationStatusDetail; } set { this._sourceApiAssociationStatusDetail = value; } } // Check to see if SourceApiAssociationStatusDetail property is set internal bool IsSetSourceApiAssociationStatusDetail() { return this._sourceApiAssociationStatusDetail != null; } /// <summary> /// Gets and sets the property SourceApiId. /// <para> /// The ID of the AppSync source API. /// </para> /// </summary> public string SourceApiId { get { return this._sourceApiId; } set { this._sourceApiId = value; } } // Check to see if SourceApiId property is set internal bool IsSetSourceApiId() { return this._sourceApiId != null; } } }
260
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Describes properties used to specify configurations related to a source API. /// </summary> public partial class SourceApiAssociationConfig { private MergeType _mergeType; /// <summary> /// Gets and sets the property MergeType. /// <para> /// The property that indicates which merging option is enabled in the source API association. /// </para> /// /// <para> /// Valid merge types are <code>MANUAL_MERGE</code> (default) and <code>AUTO_MERGE</code>. /// Manual merges are the default behavior and require the user to trigger any changes /// from the source APIs to the merged API manually. Auto merges subscribe the merged /// API to the changes performed on the source APIs so that any change in the source APIs /// are also made to the merged API. Auto merges use <code>MergedApiExecutionRoleArn</code> /// to perform merge operations. /// </para> /// </summary> public MergeType MergeType { get { return this._mergeType; } set { this._mergeType = value; } } // Check to see if MergeType property is set internal bool IsSetMergeType() { return this._mergeType != null; } } }
66
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Describes the ARNs and IDs of associations, Merged APIs, and source APIs. /// </summary> public partial class SourceApiAssociationSummary { private string _associationArn; private string _associationId; private string _description; private string _mergedApiArn; private string _mergedApiId; private string _sourceApiArn; private string _sourceApiId; /// <summary> /// Gets and sets the property AssociationArn. /// <para> /// The Amazon Resource Name (ARN) of the source API association. /// </para> /// </summary> public string AssociationArn { get { return this._associationArn; } set { this._associationArn = value; } } // Check to see if AssociationArn property is set internal bool IsSetAssociationArn() { return this._associationArn != null; } /// <summary> /// Gets and sets the property AssociationId. /// <para> /// The ID generated by the AppSync service for the source API association. /// </para> /// </summary> public string AssociationId { get { return this._associationId; } set { this._associationId = value; } } // Check to see if AssociationId property is set internal bool IsSetAssociationId() { return this._associationId != null; } /// <summary> /// Gets and sets the property Description. /// <para> /// The description field. /// </para> /// </summary> public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property MergedApiArn. /// <para> /// The Amazon Resource Name (ARN) of the AppSync Merged API. /// </para> /// </summary> public string MergedApiArn { get { return this._mergedApiArn; } set { this._mergedApiArn = value; } } // Check to see if MergedApiArn property is set internal bool IsSetMergedApiArn() { return this._mergedApiArn != null; } /// <summary> /// Gets and sets the property MergedApiId. /// <para> /// The ID of the AppSync Merged API. /// </para> /// </summary> public string MergedApiId { get { return this._mergedApiId; } set { this._mergedApiId = value; } } // Check to see if MergedApiId property is set internal bool IsSetMergedApiId() { return this._mergedApiId != null; } /// <summary> /// Gets and sets the property SourceApiArn. /// <para> /// The Amazon Resource Name (ARN) of the AppSync Source API. /// </para> /// </summary> public string SourceApiArn { get { return this._sourceApiArn; } set { this._sourceApiArn = value; } } // Check to see if SourceApiArn property is set internal bool IsSetSourceApiArn() { return this._sourceApiArn != null; } /// <summary> /// Gets and sets the property SourceApiId. /// <para> /// The ID of the AppSync source API. /// </para> /// </summary> public string SourceApiId { get { return this._sourceApiId; } set { this._sourceApiId = value; } } // Check to see if SourceApiId property is set internal bool IsSetSourceApiId() { return this._sourceApiId != null; } } }
171
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the StartSchemaCreation operation. /// Adds a new schema to your GraphQL API. /// /// /// <para> /// This operation is asynchronous. Use to determine when it has completed. /// </para> /// </summary> public partial class StartSchemaCreationRequest : AmazonAppSyncRequest { private string _apiId; private MemoryStream _definition; /// <summary> /// Gets and sets the property ApiId. /// <para> /// The API ID. /// </para> /// </summary> [AWSProperty(Required=true)] public string ApiId { get { return this._apiId; } set { this._apiId = value; } } // Check to see if ApiId property is set internal bool IsSetApiId() { return this._apiId != null; } /// <summary> /// Gets and sets the property Definition. /// <para> /// The schema definition, in GraphQL schema language format. /// </para> /// </summary> [AWSProperty(Required=true)] public MemoryStream Definition { get { return this._definition; } set { this._definition = value; } } // Check to see if Definition property is set internal bool IsSetDefinition() { return this._definition != null; } } }
84
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// This is the response object from the StartSchemaCreation operation. /// </summary> public partial class StartSchemaCreationResponse : AmazonWebServiceResponse { private SchemaStatus _status; /// <summary> /// Gets and sets the property Status. /// <para> /// The current state of the schema (PROCESSING, FAILED, SUCCESS, or NOT_APPLICABLE). /// When the schema is in the ACTIVE state, you can add data. /// </para> /// </summary> public SchemaStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } } }
58
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the StartSchemaMerge operation. /// Initiates a merge operation. Returns a status that shows the result of the merge operation. /// </summary> public partial class StartSchemaMergeRequest : AmazonAppSyncRequest { private string _associationId; private string _mergedApiIdentifier; /// <summary> /// Gets and sets the property AssociationId. /// <para> /// The ID generated by the AppSync service for the source API association. /// </para> /// </summary> [AWSProperty(Required=true)] public string AssociationId { get { return this._associationId; } set { this._associationId = value; } } // Check to see if AssociationId property is set internal bool IsSetAssociationId() { return this._associationId != null; } /// <summary> /// Gets and sets the property MergedApiIdentifier. /// <para> /// The identifier of the AppSync Merged API. This is generated by the AppSync service. /// In most cases, Merged APIs (especially in your account) only require the API ID value /// or ARN of the merged API. However, Merged APIs in other accounts (cross-account use /// cases) strictly require the full resource ARN of the merged API. /// </para> /// </summary> [AWSProperty(Required=true)] public string MergedApiIdentifier { get { return this._mergedApiIdentifier; } set { this._mergedApiIdentifier = value; } } // Check to see if MergedApiIdentifier property is set internal bool IsSetMergedApiIdentifier() { return this._mergedApiIdentifier != null; } } }
82
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// This is the response object from the StartSchemaMerge operation. /// </summary> public partial class StartSchemaMergeResponse : AmazonWebServiceResponse { private SourceApiAssociationStatus _sourceApiAssociationStatus; /// <summary> /// Gets and sets the property SourceApiAssociationStatus. /// <para> /// The state of the source API association. /// </para> /// </summary> public SourceApiAssociationStatus SourceApiAssociationStatus { get { return this._sourceApiAssociationStatus; } set { this._sourceApiAssociationStatus = value; } } // Check to see if SourceApiAssociationStatus property is set internal bool IsSetSourceApiAssociationStatus() { return this._sourceApiAssociationStatus != null; } } }
57
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Describes a Sync configuration for a resolver. /// /// /// <para> /// Specifies which Conflict Detection strategy and Resolution strategy to use when the /// resolver is invoked. /// </para> /// </summary> public partial class SyncConfig { private ConflictDetectionType _conflictDetection; private ConflictHandlerType _conflictHandler; private LambdaConflictHandlerConfig _lambdaConflictHandlerConfig; /// <summary> /// Gets and sets the property ConflictDetection. /// <para> /// The Conflict Detection strategy to use. /// </para> /// <ul> <li> /// <para> /// <b>VERSION</b>: Detect conflicts based on object versions for this resolver. /// </para> /// </li> <li> /// <para> /// <b>NONE</b>: Do not detect conflicts when invoking this resolver. /// </para> /// </li> </ul> /// </summary> public ConflictDetectionType ConflictDetection { get { return this._conflictDetection; } set { this._conflictDetection = value; } } // Check to see if ConflictDetection property is set internal bool IsSetConflictDetection() { return this._conflictDetection != null; } /// <summary> /// Gets and sets the property ConflictHandler. /// <para> /// The Conflict Resolution strategy to perform in the event of a conflict. /// </para> /// <ul> <li> /// <para> /// <b>OPTIMISTIC_CONCURRENCY</b>: Resolve conflicts by rejecting mutations when versions /// don't match the latest version at the server. /// </para> /// </li> <li> /// <para> /// <b>AUTOMERGE</b>: Resolve conflicts with the Automerge conflict resolution strategy. /// </para> /// </li> <li> /// <para> /// <b>LAMBDA</b>: Resolve conflicts with an Lambda function supplied in the <code>LambdaConflictHandlerConfig</code>. /// </para> /// </li> </ul> /// </summary> public ConflictHandlerType ConflictHandler { get { return this._conflictHandler; } set { this._conflictHandler = value; } } // Check to see if ConflictHandler property is set internal bool IsSetConflictHandler() { return this._conflictHandler != null; } /// <summary> /// Gets and sets the property LambdaConflictHandlerConfig. /// <para> /// The <code>LambdaConflictHandlerConfig</code> when configuring <code>LAMBDA</code> /// as the Conflict Handler. /// </para> /// </summary> public LambdaConflictHandlerConfig LambdaConflictHandlerConfig { get { return this._lambdaConflictHandlerConfig; } set { this._lambdaConflictHandlerConfig = value; } } // Check to see if LambdaConflictHandlerConfig property is set internal bool IsSetLambdaConflictHandlerConfig() { return this._lambdaConflictHandlerConfig != null; } } }
125
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the TagResource operation. /// Tags a resource with user-supplied tags. /// </summary> public partial class TagResourceRequest : AmazonAppSyncRequest { private string _resourceArn; private Dictionary<string, string> _tags = new Dictionary<string, string>(); /// <summary> /// Gets and sets the property ResourceArn. /// <para> /// The <code>GraphqlApi</code> Amazon Resource Name (ARN). /// </para> /// </summary> [AWSProperty(Required=true, Min=70, Max=75)] public string ResourceArn { get { return this._resourceArn; } set { this._resourceArn = value; } } // Check to see if ResourceArn property is set internal bool IsSetResourceArn() { return this._resourceArn != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// A <code>TagMap</code> object. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=50)] public Dictionary<string, string> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }
79
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// This is the response object from the TagResource operation. /// </summary> public partial class TagResourceResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Describes a type. /// </summary> public partial class Type { private string _arn; private string _definition; private string _description; private TypeDefinitionFormat _format; private string _name; /// <summary> /// Gets and sets the property Arn. /// <para> /// The type Amazon Resource Name (ARN). /// </para> /// </summary> public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// <summary> /// Gets and sets the property Definition. /// <para> /// The type definition. /// </para> /// </summary> public string Definition { get { return this._definition; } set { this._definition = value; } } // Check to see if Definition property is set internal bool IsSetDefinition() { return this._definition != null; } /// <summary> /// Gets and sets the property Description. /// <para> /// The type description. /// </para> /// </summary> public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property Format. /// <para> /// The type format: SDL or JSON. /// </para> /// </summary> public TypeDefinitionFormat Format { get { return this._format; } set { this._format = value; } } // Check to see if Format property is set internal bool IsSetFormat() { return this._format != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The type name. /// </para> /// </summary> [AWSProperty(Min=1, Max=65536)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } } }
134
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// You aren't authorized to perform this operation. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class UnauthorizedException : AmazonAppSyncException { /// <summary> /// Constructs a new UnauthorizedException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public UnauthorizedException(string message) : base(message) {} /// <summary> /// Construct instance of UnauthorizedException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public UnauthorizedException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of UnauthorizedException /// </summary> /// <param name="innerException"></param> public UnauthorizedException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of UnauthorizedException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public UnauthorizedException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of UnauthorizedException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public UnauthorizedException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the UnauthorizedException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected UnauthorizedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the UntagResource operation. /// Untags a resource. /// </summary> public partial class UntagResourceRequest : AmazonAppSyncRequest { private string _resourceArn; private List<string> _tagKeys = new List<string>(); /// <summary> /// Gets and sets the property ResourceArn. /// <para> /// The <code>GraphqlApi</code> Amazon Resource Name (ARN). /// </para> /// </summary> [AWSProperty(Required=true, Min=70, Max=75)] public string ResourceArn { get { return this._resourceArn; } set { this._resourceArn = value; } } // Check to see if ResourceArn property is set internal bool IsSetResourceArn() { return this._resourceArn != null; } /// <summary> /// Gets and sets the property TagKeys. /// <para> /// A list of <code>TagKey</code> objects. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=50)] public List<string> TagKeys { get { return this._tagKeys; } set { this._tagKeys = value; } } // Check to see if TagKeys property is set internal bool IsSetTagKeys() { return this._tagKeys != null && this._tagKeys.Count > 0; } } }
79
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// This is the response object from the UntagResource operation. /// </summary> public partial class UntagResourceResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the UpdateApiCache operation. /// Updates the cache for the GraphQL API. /// </summary> public partial class UpdateApiCacheRequest : AmazonAppSyncRequest { private ApiCachingBehavior _apiCachingBehavior; private string _apiId; private long? _ttl; private ApiCacheType _type; /// <summary> /// Gets and sets the property ApiCachingBehavior. /// <para> /// Caching behavior. /// </para> /// <ul> <li> /// <para> /// <b>FULL_REQUEST_CACHING</b>: All requests are fully cached. /// </para> /// </li> <li> /// <para> /// <b>PER_RESOLVER_CACHING</b>: Individual resolvers that you specify are cached. /// </para> /// </li> </ul> /// </summary> [AWSProperty(Required=true)] public ApiCachingBehavior ApiCachingBehavior { get { return this._apiCachingBehavior; } set { this._apiCachingBehavior = value; } } // Check to see if ApiCachingBehavior property is set internal bool IsSetApiCachingBehavior() { return this._apiCachingBehavior != null; } /// <summary> /// Gets and sets the property ApiId. /// <para> /// The GraphQL API ID. /// </para> /// </summary> [AWSProperty(Required=true)] public string ApiId { get { return this._apiId; } set { this._apiId = value; } } // Check to see if ApiId property is set internal bool IsSetApiId() { return this._apiId != null; } /// <summary> /// Gets and sets the property Ttl. /// <para> /// TTL in seconds for cache entries. /// </para> /// /// <para> /// Valid values are 1–3,600 seconds. /// </para> /// </summary> [AWSProperty(Required=true)] public long Ttl { get { return this._ttl.GetValueOrDefault(); } set { this._ttl = value; } } // Check to see if Ttl property is set internal bool IsSetTtl() { return this._ttl.HasValue; } /// <summary> /// Gets and sets the property Type. /// <para> /// The cache instance type. Valid values are /// </para> /// <ul> <li> /// <para> /// <code>SMALL</code> /// </para> /// </li> <li> /// <para> /// <code>MEDIUM</code> /// </para> /// </li> <li> /// <para> /// <code>LARGE</code> /// </para> /// </li> <li> /// <para> /// <code>XLARGE</code> /// </para> /// </li> <li> /// <para> /// <code>LARGE_2X</code> /// </para> /// </li> <li> /// <para> /// <code>LARGE_4X</code> /// </para> /// </li> <li> /// <para> /// <code>LARGE_8X</code> (not available in all regions) /// </para> /// </li> <li> /// <para> /// <code>LARGE_12X</code> /// </para> /// </li> </ul> /// <para> /// Historically, instance types were identified by an EC2-style value. As of July 2020, /// this is deprecated, and the generic identifiers above should be used. /// </para> /// /// <para> /// The following legacy instance types are available, but their use is discouraged: /// </para> /// <ul> <li> /// <para> /// <b>T2_SMALL</b>: A t2.small instance type. /// </para> /// </li> <li> /// <para> /// <b>T2_MEDIUM</b>: A t2.medium instance type. /// </para> /// </li> <li> /// <para> /// <b>R4_LARGE</b>: A r4.large instance type. /// </para> /// </li> <li> /// <para> /// <b>R4_XLARGE</b>: A r4.xlarge instance type. /// </para> /// </li> <li> /// <para> /// <b>R4_2XLARGE</b>: A r4.2xlarge instance type. /// </para> /// </li> <li> /// <para> /// <b>R4_4XLARGE</b>: A r4.4xlarge instance type. /// </para> /// </li> <li> /// <para> /// <b>R4_8XLARGE</b>: A r4.8xlarge instance type. /// </para> /// </li> </ul> /// </summary> [AWSProperty(Required=true)] public ApiCacheType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } } }
202
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Represents the output of a <code>UpdateApiCache</code> operation. /// </summary> public partial class UpdateApiCacheResponse : AmazonWebServiceResponse { private ApiCache _apiCache; /// <summary> /// Gets and sets the property ApiCache. /// <para> /// The <code>ApiCache</code> object. /// </para> /// </summary> public ApiCache ApiCache { get { return this._apiCache; } set { this._apiCache = value; } } // Check to see if ApiCache property is set internal bool IsSetApiCache() { return this._apiCache != null; } } }
57
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the UpdateApiKey operation. /// Updates an API key. You can update the key as long as it's not deleted. /// </summary> public partial class UpdateApiKeyRequest : AmazonAppSyncRequest { private string _apiId; private string _description; private long? _expires; private string _id; /// <summary> /// Gets and sets the property ApiId. /// <para> /// The ID for the GraphQL API. /// </para> /// </summary> [AWSProperty(Required=true)] public string ApiId { get { return this._apiId; } set { this._apiId = value; } } // Check to see if ApiId property is set internal bool IsSetApiId() { return this._apiId != null; } /// <summary> /// Gets and sets the property Description. /// <para> /// A description of the purpose of the API key. /// </para> /// </summary> public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property Expires. /// <para> /// From the update time, the time after which the API key expires. The date is represented /// as seconds since the epoch. For more information, see . /// </para> /// </summary> public long Expires { get { return this._expires.GetValueOrDefault(); } set { this._expires = value; } } // Check to see if Expires property is set internal bool IsSetExpires() { return this._expires.HasValue; } /// <summary> /// Gets and sets the property Id. /// <para> /// The API key ID. /// </para> /// </summary> [AWSProperty(Required=true)] public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } } }
118
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// This is the response object from the UpdateApiKey operation. /// </summary> public partial class UpdateApiKeyResponse : AmazonWebServiceResponse { private ApiKey _apiKey; /// <summary> /// Gets and sets the property ApiKey. /// <para> /// The API key. /// </para> /// </summary> public ApiKey ApiKey { get { return this._apiKey; } set { this._apiKey = value; } } // Check to see if ApiKey property is set internal bool IsSetApiKey() { return this._apiKey != null; } } }
57
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the UpdateDataSource operation. /// Updates a <code>DataSource</code> object. /// </summary> public partial class UpdateDataSourceRequest : AmazonAppSyncRequest { private string _apiId; private string _description; private DynamodbDataSourceConfig _dynamodbConfig; private ElasticsearchDataSourceConfig _elasticsearchConfig; private EventBridgeDataSourceConfig _eventBridgeConfig; private HttpDataSourceConfig _httpConfig; private LambdaDataSourceConfig _lambdaConfig; private string _name; private OpenSearchServiceDataSourceConfig _openSearchServiceConfig; private RelationalDatabaseDataSourceConfig _relationalDatabaseConfig; private string _serviceRoleArn; private DataSourceType _type; /// <summary> /// Gets and sets the property ApiId. /// <para> /// The API ID. /// </para> /// </summary> [AWSProperty(Required=true)] public string ApiId { get { return this._apiId; } set { this._apiId = value; } } // Check to see if ApiId property is set internal bool IsSetApiId() { return this._apiId != null; } /// <summary> /// Gets and sets the property Description. /// <para> /// The new description for the data source. /// </para> /// </summary> public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property DynamodbConfig. /// <para> /// The new Amazon DynamoDB configuration. /// </para> /// </summary> public DynamodbDataSourceConfig DynamodbConfig { get { return this._dynamodbConfig; } set { this._dynamodbConfig = value; } } // Check to see if DynamodbConfig property is set internal bool IsSetDynamodbConfig() { return this._dynamodbConfig != null; } /// <summary> /// Gets and sets the property ElasticsearchConfig. /// <para> /// The new OpenSearch configuration. /// </para> /// /// <para> /// As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This /// configuration is deprecated. Instead, use <a>UpdateDataSourceRequest$openSearchServiceConfig</a> /// to update an OpenSearch data source. /// </para> /// </summary> public ElasticsearchDataSourceConfig ElasticsearchConfig { get { return this._elasticsearchConfig; } set { this._elasticsearchConfig = value; } } // Check to see if ElasticsearchConfig property is set internal bool IsSetElasticsearchConfig() { return this._elasticsearchConfig != null; } /// <summary> /// Gets and sets the property EventBridgeConfig. /// <para> /// The new Amazon EventBridge settings. /// </para> /// </summary> public EventBridgeDataSourceConfig EventBridgeConfig { get { return this._eventBridgeConfig; } set { this._eventBridgeConfig = value; } } // Check to see if EventBridgeConfig property is set internal bool IsSetEventBridgeConfig() { return this._eventBridgeConfig != null; } /// <summary> /// Gets and sets the property HttpConfig. /// <para> /// The new HTTP endpoint configuration. /// </para> /// </summary> public HttpDataSourceConfig HttpConfig { get { return this._httpConfig; } set { this._httpConfig = value; } } // Check to see if HttpConfig property is set internal bool IsSetHttpConfig() { return this._httpConfig != null; } /// <summary> /// Gets and sets the property LambdaConfig. /// <para> /// The new Lambda configuration. /// </para> /// </summary> public LambdaDataSourceConfig LambdaConfig { get { return this._lambdaConfig; } set { this._lambdaConfig = value; } } // Check to see if LambdaConfig property is set internal bool IsSetLambdaConfig() { return this._lambdaConfig != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The new name for the data source. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=65536)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property OpenSearchServiceConfig. /// <para> /// The new OpenSearch configuration. /// </para> /// </summary> public OpenSearchServiceDataSourceConfig OpenSearchServiceConfig { get { return this._openSearchServiceConfig; } set { this._openSearchServiceConfig = value; } } // Check to see if OpenSearchServiceConfig property is set internal bool IsSetOpenSearchServiceConfig() { return this._openSearchServiceConfig != null; } /// <summary> /// Gets and sets the property RelationalDatabaseConfig. /// <para> /// The new relational database configuration. /// </para> /// </summary> public RelationalDatabaseDataSourceConfig RelationalDatabaseConfig { get { return this._relationalDatabaseConfig; } set { this._relationalDatabaseConfig = value; } } // Check to see if RelationalDatabaseConfig property is set internal bool IsSetRelationalDatabaseConfig() { return this._relationalDatabaseConfig != null; } /// <summary> /// Gets and sets the property ServiceRoleArn. /// <para> /// The new service role Amazon Resource Name (ARN) for the data source. /// </para> /// </summary> public string ServiceRoleArn { get { return this._serviceRoleArn; } set { this._serviceRoleArn = value; } } // Check to see if ServiceRoleArn property is set internal bool IsSetServiceRoleArn() { return this._serviceRoleArn != null; } /// <summary> /// Gets and sets the property Type. /// <para> /// The new data source type. /// </para> /// </summary> [AWSProperty(Required=true)] public DataSourceType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } } }
276
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// This is the response object from the UpdateDataSource operation. /// </summary> public partial class UpdateDataSourceResponse : AmazonWebServiceResponse { private DataSource _dataSource; /// <summary> /// Gets and sets the property DataSource. /// <para> /// The updated <code>DataSource</code> object. /// </para> /// </summary> public DataSource DataSource { get { return this._dataSource; } set { this._dataSource = value; } } // Check to see if DataSource property is set internal bool IsSetDataSource() { return this._dataSource != null; } } }
57
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the UpdateDomainName operation. /// Updates a custom <code>DomainName</code> object. /// </summary> public partial class UpdateDomainNameRequest : AmazonAppSyncRequest { private string _description; private string _domainName; /// <summary> /// Gets and sets the property Description. /// <para> /// A description of the <code>DomainName</code>. /// </para> /// </summary> [AWSProperty(Min=0, Max=255)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property DomainName. /// <para> /// The domain name. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=253)] public string DomainName { get { return this._domainName; } set { this._domainName = value; } } // Check to see if DomainName property is set internal bool IsSetDomainName() { return this._domainName != null; } } }
79
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// This is the response object from the UpdateDomainName operation. /// </summary> public partial class UpdateDomainNameResponse : AmazonWebServiceResponse { private DomainNameConfig _domainNameConfig; /// <summary> /// Gets and sets the property DomainNameConfig. /// <para> /// The configuration for the <code>DomainName</code>. /// </para> /// </summary> public DomainNameConfig DomainNameConfig { get { return this._domainNameConfig; } set { this._domainNameConfig = value; } } // Check to see if DomainNameConfig property is set internal bool IsSetDomainNameConfig() { return this._domainNameConfig != null; } } }
57
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the UpdateFunction operation. /// Updates a <code>Function</code> object. /// </summary> public partial class UpdateFunctionRequest : AmazonAppSyncRequest { private string _apiId; private string _code; private string _dataSourceName; private string _description; private string _functionId; private string _functionVersion; private int? _maxBatchSize; private string _name; private string _requestMappingTemplate; private string _responseMappingTemplate; private AppSyncRuntime _runtime; private SyncConfig _syncConfig; /// <summary> /// Gets and sets the property ApiId. /// <para> /// The GraphQL API ID. /// </para> /// </summary> [AWSProperty(Required=true)] public string ApiId { get { return this._apiId; } set { this._apiId = value; } } // Check to see if ApiId property is set internal bool IsSetApiId() { return this._apiId != null; } /// <summary> /// Gets and sets the property Code. /// <para> /// The <code>function</code> code that contains the request and response functions. When /// code is used, the <code>runtime</code> is required. The <code>runtime</code> value /// must be <code>APPSYNC_JS</code>. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property DataSourceName. /// <para> /// The <code>Function</code> <code>DataSource</code> name. /// </para> /// </summary> [AWSProperty(Required=true, 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; } /// <summary> /// Gets and sets the property Description. /// <para> /// The <code>Function</code> description. /// </para> /// </summary> public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property FunctionId. /// <para> /// The function ID. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=65536)] public string FunctionId { get { return this._functionId; } set { this._functionId = value; } } // Check to see if FunctionId property is set internal bool IsSetFunctionId() { return this._functionId != null; } /// <summary> /// Gets and sets the property FunctionVersion. /// <para> /// The <code>version</code> of the request mapping template. Currently, the supported /// value is 2018-05-29. Note that when using VTL and mapping templates, the <code>functionVersion</code> /// is required. /// </para> /// </summary> public string FunctionVersion { get { return this._functionVersion; } set { this._functionVersion = value; } } // Check to see if FunctionVersion property is set internal bool IsSetFunctionVersion() { return this._functionVersion != null; } /// <summary> /// Gets and sets the property MaxBatchSize. /// <para> /// The maximum batching size for a resolver. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property Name. /// <para> /// The <code>Function</code> name. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=65536)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property RequestMappingTemplate. /// <para> /// The <code>Function</code> request mapping template. Functions support only the 2018-05-29 /// version of the request mapping template. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property ResponseMappingTemplate. /// <para> /// The <code>Function</code> request mapping template. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property Runtime. /// </summary> 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; } /// <summary> /// Gets and sets the property SyncConfig. /// </summary> 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; } } }
274
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// This is the response object from the UpdateFunction operation. /// </summary> public partial class UpdateFunctionResponse : AmazonWebServiceResponse { private FunctionConfiguration _functionConfiguration; /// <summary> /// Gets and sets the property FunctionConfiguration. /// <para> /// The <code>Function</code> object. /// </para> /// </summary> public FunctionConfiguration FunctionConfiguration { get { return this._functionConfiguration; } set { this._functionConfiguration = value; } } // Check to see if FunctionConfiguration property is set internal bool IsSetFunctionConfiguration() { return this._functionConfiguration != null; } } }
57
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the UpdateGraphqlApi operation. /// Updates a <code>GraphqlApi</code> object. /// </summary> public partial class UpdateGraphqlApiRequest : AmazonAppSyncRequest { private List<AdditionalAuthenticationProvider> _additionalAuthenticationProviders = new List<AdditionalAuthenticationProvider>(); private string _apiId; private AuthenticationType _authenticationType; private LambdaAuthorizerConfig _lambdaAuthorizerConfig; private LogConfig _logConfig; private string _mergedApiExecutionRoleArn; private string _name; private OpenIDConnectConfig _openidConnectConfig; private string _ownerContact; private UserPoolConfig _userPoolConfig; private bool? _xrayEnabled; /// <summary> /// Gets and sets the property AdditionalAuthenticationProviders. /// <para> /// A list of additional authentication providers for the <code>GraphqlApi</code> API. /// </para> /// </summary> public List<AdditionalAuthenticationProvider> AdditionalAuthenticationProviders { get { return this._additionalAuthenticationProviders; } set { this._additionalAuthenticationProviders = value; } } // Check to see if AdditionalAuthenticationProviders property is set internal bool IsSetAdditionalAuthenticationProviders() { return this._additionalAuthenticationProviders != null && this._additionalAuthenticationProviders.Count > 0; } /// <summary> /// Gets and sets the property ApiId. /// <para> /// The API ID. /// </para> /// </summary> [AWSProperty(Required=true)] public string ApiId { get { return this._apiId; } set { this._apiId = value; } } // Check to see if ApiId property is set internal bool IsSetApiId() { return this._apiId != null; } /// <summary> /// Gets and sets the property AuthenticationType. /// <para> /// The new authentication type for the <code>GraphqlApi</code> object. /// </para> /// </summary> public AuthenticationType AuthenticationType { get { return this._authenticationType; } set { this._authenticationType = value; } } // Check to see if AuthenticationType property is set internal bool IsSetAuthenticationType() { return this._authenticationType != null; } /// <summary> /// Gets and sets the property LambdaAuthorizerConfig. /// <para> /// Configuration for Lambda function authorization. /// </para> /// </summary> public LambdaAuthorizerConfig LambdaAuthorizerConfig { get { return this._lambdaAuthorizerConfig; } set { this._lambdaAuthorizerConfig = value; } } // Check to see if LambdaAuthorizerConfig property is set internal bool IsSetLambdaAuthorizerConfig() { return this._lambdaAuthorizerConfig != null; } /// <summary> /// Gets and sets the property LogConfig. /// <para> /// The Amazon CloudWatch Logs configuration for the <code>GraphqlApi</code> object. /// </para> /// </summary> public LogConfig LogConfig { get { return this._logConfig; } set { this._logConfig = value; } } // Check to see if LogConfig property is set internal bool IsSetLogConfig() { return this._logConfig != null; } /// <summary> /// Gets and sets the property MergedApiExecutionRoleArn. /// <para> /// The Identity and Access Management service role ARN for a merged API. The AppSync /// service assumes this role on behalf of the Merged API to validate access to source /// APIs at runtime and to prompt the <code>AUTO_MERGE</code> to update the merged API /// endpoint with the source API changes automatically. /// </para> /// </summary> public string MergedApiExecutionRoleArn { get { return this._mergedApiExecutionRoleArn; } set { this._mergedApiExecutionRoleArn = value; } } // Check to see if MergedApiExecutionRoleArn property is set internal bool IsSetMergedApiExecutionRoleArn() { return this._mergedApiExecutionRoleArn != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The new name for the <code>GraphqlApi</code> object. /// </para> /// </summary> [AWSProperty(Required=true)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property OpenIDConnectConfig. /// <para> /// The OpenID Connect configuration for the <code>GraphqlApi</code> object. /// </para> /// </summary> public OpenIDConnectConfig OpenIDConnectConfig { get { return this._openidConnectConfig; } set { this._openidConnectConfig = value; } } // Check to see if OpenIDConnectConfig property is set internal bool IsSetOpenIDConnectConfig() { return this._openidConnectConfig != null; } /// <summary> /// Gets and sets the property OwnerContact. /// <para> /// The owner contact information for an API resource. /// </para> /// /// <para> /// This field accepts any string input with a length of 0 - 256 characters. /// </para> /// </summary> public string OwnerContact { get { return this._ownerContact; } set { this._ownerContact = value; } } // Check to see if OwnerContact property is set internal bool IsSetOwnerContact() { return this._ownerContact != null; } /// <summary> /// Gets and sets the property UserPoolConfig. /// <para> /// The new Amazon Cognito user pool configuration for the <code>~GraphqlApi</code> object. /// </para> /// </summary> public UserPoolConfig UserPoolConfig { get { return this._userPoolConfig; } set { this._userPoolConfig = value; } } // Check to see if UserPoolConfig property is set internal bool IsSetUserPoolConfig() { return this._userPoolConfig != null; } /// <summary> /// Gets and sets the property XrayEnabled. /// <para> /// A flag indicating whether to use X-Ray tracing for the <code>GraphqlApi</code>. /// </para> /// </summary> public bool XrayEnabled { get { return this._xrayEnabled.GetValueOrDefault(); } set { this._xrayEnabled = value; } } // Check to see if XrayEnabled property is set internal bool IsSetXrayEnabled() { return this._xrayEnabled.HasValue; } } }
257
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// This is the response object from the UpdateGraphqlApi operation. /// </summary> public partial class UpdateGraphqlApiResponse : AmazonWebServiceResponse { private GraphqlApi _graphqlApi; /// <summary> /// Gets and sets the property GraphqlApi. /// <para> /// The updated <code>GraphqlApi</code> object. /// </para> /// </summary> public GraphqlApi GraphqlApi { get { return this._graphqlApi; } set { this._graphqlApi = value; } } // Check to see if GraphqlApi property is set internal bool IsSetGraphqlApi() { return this._graphqlApi != null; } } }
57
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the UpdateResolver operation. /// Updates a <code>Resolver</code> object. /// </summary> public partial class UpdateResolverRequest : AmazonAppSyncRequest { private string _apiId; 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 _responseMappingTemplate; private AppSyncRuntime _runtime; private SyncConfig _syncConfig; private string _typeName; /// <summary> /// Gets and sets the property ApiId. /// <para> /// The API ID. /// </para> /// </summary> [AWSProperty(Required=true)] public string ApiId { get { return this._apiId; } set { this._apiId = value; } } // Check to see if ApiId property is set internal bool IsSetApiId() { return this._apiId != null; } /// <summary> /// Gets and sets the property CachingConfig. /// <para> /// The caching configuration for the resolver. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property Code. /// <para> /// The <code>resolver</code> code that contains the request and response functions. When /// code is used, the <code>runtime</code> is required. The <code>runtime</code> value /// must be <code>APPSYNC_JS</code>. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property DataSourceName. /// <para> /// The new data source name. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property FieldName. /// <para> /// The new field name. /// </para> /// </summary> [AWSProperty(Required=true, 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; } /// <summary> /// Gets and sets the property Kind. /// <para> /// The resolver type. /// </para> /// <ul> <li> /// <para> /// <b>UNIT</b>: A UNIT resolver type. A UNIT resolver is the default resolver type. /// You can use a UNIT resolver to run a GraphQL query against a single data source. /// </para> /// </li> <li> /// <para> /// <b>PIPELINE</b>: A PIPELINE resolver type. You can use a PIPELINE resolver to invoke /// a series of <code>Function</code> objects in a serial manner. You can use a pipeline /// resolver to run a GraphQL query against multiple data sources. /// </para> /// </li> </ul> /// </summary> 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; } /// <summary> /// Gets and sets the property MaxBatchSize. /// <para> /// The maximum batching size for a resolver. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property PipelineConfig. /// <para> /// The <code>PipelineConfig</code>. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property RequestMappingTemplate. /// <para> /// The new request mapping template. /// </para> /// /// <para> /// A resolver uses a request mapping template to convert a GraphQL expression into a /// format that a data source can understand. Mapping templates are written in Apache /// Velocity Template Language (VTL). /// </para> /// /// <para> /// VTL request mapping templates are optional when using an Lambda data source. For all /// other data sources, VTL request and response mapping templates are required. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property ResponseMappingTemplate. /// <para> /// The new response mapping template. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property Runtime. /// </summary> 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; } /// <summary> /// Gets and sets the property SyncConfig. /// <para> /// The <code>SyncConfig</code> for a resolver attached to a versioned data source. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property TypeName. /// <para> /// The new type name. /// </para> /// </summary> [AWSProperty(Required=true, 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; } } }
316
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// This is the response object from the UpdateResolver operation. /// </summary> public partial class UpdateResolverResponse : AmazonWebServiceResponse { private Resolver _resolver; /// <summary> /// Gets and sets the property Resolver. /// <para> /// The updated <code>Resolver</code> object. /// </para> /// </summary> public Resolver Resolver { get { return this._resolver; } set { this._resolver = value; } } // Check to see if Resolver property is set internal bool IsSetResolver() { return this._resolver != null; } } }
57
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the UpdateSourceApiAssociation operation. /// Updates some of the configuration choices of a particular source API association. /// </summary> public partial class UpdateSourceApiAssociationRequest : AmazonAppSyncRequest { private string _associationId; private string _description; private string _mergedApiIdentifier; private SourceApiAssociationConfig _sourceApiAssociationConfig; /// <summary> /// Gets and sets the property AssociationId. /// <para> /// The ID generated by the AppSync service for the source API association. /// </para> /// </summary> [AWSProperty(Required=true)] public string AssociationId { get { return this._associationId; } set { this._associationId = value; } } // Check to see if AssociationId property is set internal bool IsSetAssociationId() { return this._associationId != null; } /// <summary> /// Gets and sets the property Description. /// <para> /// The description field. /// </para> /// </summary> public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property MergedApiIdentifier. /// <para> /// The identifier of the AppSync Merged API. This is generated by the AppSync service. /// In most cases, Merged APIs (especially in your account) only require the API ID value /// or ARN of the merged API. However, Merged APIs in other accounts (cross-account use /// cases) strictly require the full resource ARN of the merged API. /// </para> /// </summary> [AWSProperty(Required=true)] public string MergedApiIdentifier { get { return this._mergedApiIdentifier; } set { this._mergedApiIdentifier = value; } } // Check to see if MergedApiIdentifier property is set internal bool IsSetMergedApiIdentifier() { return this._mergedApiIdentifier != null; } /// <summary> /// Gets and sets the property SourceApiAssociationConfig. /// <para> /// The <code>SourceApiAssociationConfig</code> object data. /// </para> /// </summary> public SourceApiAssociationConfig SourceApiAssociationConfig { get { return this._sourceApiAssociationConfig; } set { this._sourceApiAssociationConfig = value; } } // Check to see if SourceApiAssociationConfig property is set internal bool IsSetSourceApiAssociationConfig() { return this._sourceApiAssociationConfig != null; } } }
120
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// This is the response object from the UpdateSourceApiAssociation operation. /// </summary> public partial class UpdateSourceApiAssociationResponse : AmazonWebServiceResponse { private SourceApiAssociation _sourceApiAssociation; /// <summary> /// Gets and sets the property SourceApiAssociation. /// <para> /// The <code>SourceApiAssociation</code> object data. /// </para> /// </summary> public SourceApiAssociation SourceApiAssociation { get { return this._sourceApiAssociation; } set { this._sourceApiAssociation = value; } } // Check to see if SourceApiAssociation property is set internal bool IsSetSourceApiAssociation() { return this._sourceApiAssociation != null; } } }
57
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the UpdateType operation. /// Updates a <code>Type</code> object. /// </summary> public partial class UpdateTypeRequest : AmazonAppSyncRequest { private string _apiId; private string _definition; private TypeDefinitionFormat _format; private string _typeName; /// <summary> /// Gets and sets the property ApiId. /// <para> /// The API ID. /// </para> /// </summary> [AWSProperty(Required=true)] public string ApiId { get { return this._apiId; } set { this._apiId = value; } } // Check to see if ApiId property is set internal bool IsSetApiId() { return this._apiId != null; } /// <summary> /// Gets and sets the property Definition. /// <para> /// The new definition. /// </para> /// </summary> public string Definition { get { return this._definition; } set { this._definition = value; } } // Check to see if Definition property is set internal bool IsSetDefinition() { return this._definition != null; } /// <summary> /// Gets and sets the property Format. /// <para> /// The new type format: SDL or JSON. /// </para> /// </summary> [AWSProperty(Required=true)] public TypeDefinitionFormat Format { get { return this._format; } set { this._format = value; } } // Check to see if Format property is set internal bool IsSetFormat() { return this._format != null; } /// <summary> /// Gets and sets the property TypeName. /// <para> /// The new type name. /// </para> /// </summary> [AWSProperty(Required=true, 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; } } }
118
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// This is the response object from the UpdateType operation. /// </summary> public partial class UpdateTypeResponse : AmazonWebServiceResponse { private Type _type; /// <summary> /// Gets and sets the property Type. /// <para> /// The updated <code>Type</code> object. /// </para> /// </summary> public Type Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } } }
57
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Describes an Amazon Cognito user pool configuration. /// </summary> public partial class UserPoolConfig { private string _appIdClientRegex; private string _awsRegion; private DefaultAction _defaultAction; private string _userPoolId; /// <summary> /// Gets and sets the property AppIdClientRegex. /// <para> /// A regular expression for validating the incoming Amazon Cognito user pool app client /// ID. If this value isn't set, no filtering is applied. /// </para> /// </summary> public string AppIdClientRegex { get { return this._appIdClientRegex; } set { this._appIdClientRegex = value; } } // Check to see if AppIdClientRegex property is set internal bool IsSetAppIdClientRegex() { return this._appIdClientRegex != null; } /// <summary> /// Gets and sets the property AwsRegion. /// <para> /// The Amazon Web Services Region in which the user pool was created. /// </para> /// </summary> [AWSProperty(Required=true)] public string AwsRegion { get { return this._awsRegion; } set { this._awsRegion = value; } } // Check to see if AwsRegion property is set internal bool IsSetAwsRegion() { return this._awsRegion != null; } /// <summary> /// Gets and sets the property DefaultAction. /// <para> /// The action that you want your GraphQL API to take when a request that uses Amazon /// Cognito user pool authentication doesn't match the Amazon Cognito user pool configuration. /// </para> /// </summary> [AWSProperty(Required=true)] public DefaultAction DefaultAction { get { return this._defaultAction; } set { this._defaultAction = value; } } // Check to see if DefaultAction property is set internal bool IsSetDefaultAction() { return this._defaultAction != null; } /// <summary> /// Gets and sets the property UserPoolId. /// <para> /// The user pool ID. /// </para> /// </summary> [AWSProperty(Required=true)] public string UserPoolId { get { return this._userPoolId; } set { this._userPoolId = value; } } // Check to see if UserPoolId property is set internal bool IsSetUserPoolId() { return this._userPoolId != null; } } }
119
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AccessDeniedException Object /// </summary> public class AccessDeniedExceptionUnmarshaller : IErrorResponseUnmarshaller<AccessDeniedException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public AccessDeniedException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public AccessDeniedException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); AccessDeniedException unmarshalledObject = new AccessDeniedException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static AccessDeniedExceptionUnmarshaller _instance = new AccessDeniedExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AccessDeniedExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// AdditionalAuthenticationProvider Marshaller /// </summary> public class AdditionalAuthenticationProviderMarshaller : IRequestMarshaller<AdditionalAuthenticationProvider, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(AdditionalAuthenticationProvider requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAuthenticationType()) { context.Writer.WritePropertyName("authenticationType"); context.Writer.Write(requestObject.AuthenticationType); } if(requestObject.IsSetLambdaAuthorizerConfig()) { context.Writer.WritePropertyName("lambdaAuthorizerConfig"); context.Writer.WriteObjectStart(); var marshaller = LambdaAuthorizerConfigMarshaller.Instance; marshaller.Marshall(requestObject.LambdaAuthorizerConfig, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetOpenIDConnectConfig()) { context.Writer.WritePropertyName("openIDConnectConfig"); context.Writer.WriteObjectStart(); var marshaller = OpenIDConnectConfigMarshaller.Instance; marshaller.Marshall(requestObject.OpenIDConnectConfig, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetUserPoolConfig()) { context.Writer.WritePropertyName("userPoolConfig"); context.Writer.WriteObjectStart(); var marshaller = CognitoUserPoolConfigMarshaller.Instance; marshaller.Marshall(requestObject.UserPoolConfig, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static AdditionalAuthenticationProviderMarshaller Instance = new AdditionalAuthenticationProviderMarshaller(); } }
95
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AdditionalAuthenticationProvider Object /// </summary> public class AdditionalAuthenticationProviderUnmarshaller : IUnmarshaller<AdditionalAuthenticationProvider, XmlUnmarshallerContext>, IUnmarshaller<AdditionalAuthenticationProvider, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AdditionalAuthenticationProvider IUnmarshaller<AdditionalAuthenticationProvider, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public AdditionalAuthenticationProvider Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AdditionalAuthenticationProvider unmarshalledObject = new AdditionalAuthenticationProvider(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("authenticationType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AuthenticationType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lambdaAuthorizerConfig", targetDepth)) { var unmarshaller = LambdaAuthorizerConfigUnmarshaller.Instance; unmarshalledObject.LambdaAuthorizerConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("openIDConnectConfig", targetDepth)) { var unmarshaller = OpenIDConnectConfigUnmarshaller.Instance; unmarshalledObject.OpenIDConnectConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("userPoolConfig", targetDepth)) { var unmarshaller = CognitoUserPoolConfigUnmarshaller.Instance; unmarshalledObject.UserPoolConfig = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AdditionalAuthenticationProviderUnmarshaller _instance = new AdditionalAuthenticationProviderUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AdditionalAuthenticationProviderUnmarshaller Instance { get { return _instance; } } } }
110
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ApiAssociation Object /// </summary> public class ApiAssociationUnmarshaller : IUnmarshaller<ApiAssociation, XmlUnmarshallerContext>, IUnmarshaller<ApiAssociation, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ApiAssociation IUnmarshaller<ApiAssociation, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ApiAssociation Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ApiAssociation unmarshalledObject = new ApiAssociation(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("apiId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ApiId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("associationStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AssociationStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("deploymentDetail", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DeploymentDetail = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("domainName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DomainName = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ApiAssociationUnmarshaller _instance = new ApiAssociationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ApiAssociationUnmarshaller Instance { get { return _instance; } } } }
110
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ApiCache Object /// </summary> public class ApiCacheUnmarshaller : IUnmarshaller<ApiCache, XmlUnmarshallerContext>, IUnmarshaller<ApiCache, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ApiCache IUnmarshaller<ApiCache, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ApiCache Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ApiCache unmarshalledObject = new ApiCache(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("apiCachingBehavior", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ApiCachingBehavior = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("atRestEncryptionEnabled", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.AtRestEncryptionEnabled = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("transitEncryptionEnabled", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.TransitEncryptionEnabled = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ttl", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.Ttl = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("type", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Type = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ApiCacheUnmarshaller _instance = new ApiCacheUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ApiCacheUnmarshaller Instance { get { return _instance; } } } }
122
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ApiKeyLimitExceededException Object /// </summary> public class ApiKeyLimitExceededExceptionUnmarshaller : IErrorResponseUnmarshaller<ApiKeyLimitExceededException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ApiKeyLimitExceededException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ApiKeyLimitExceededException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ApiKeyLimitExceededException unmarshalledObject = new ApiKeyLimitExceededException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ApiKeyLimitExceededExceptionUnmarshaller _instance = new ApiKeyLimitExceededExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ApiKeyLimitExceededExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ApiKey Object /// </summary> public class ApiKeyUnmarshaller : IUnmarshaller<ApiKey, XmlUnmarshallerContext>, IUnmarshaller<ApiKey, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ApiKey IUnmarshaller<ApiKey, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ApiKey Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ApiKey unmarshalledObject = new ApiKey(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("deletes", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.Deletes = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("expires", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.Expires = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("id", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Id = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ApiKeyUnmarshaller _instance = new ApiKeyUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ApiKeyUnmarshaller Instance { get { return _instance; } } } }
110
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ApiKeyValidityOutOfBoundsException Object /// </summary> public class ApiKeyValidityOutOfBoundsExceptionUnmarshaller : IErrorResponseUnmarshaller<ApiKeyValidityOutOfBoundsException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ApiKeyValidityOutOfBoundsException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ApiKeyValidityOutOfBoundsException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ApiKeyValidityOutOfBoundsException unmarshalledObject = new ApiKeyValidityOutOfBoundsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ApiKeyValidityOutOfBoundsExceptionUnmarshaller _instance = new ApiKeyValidityOutOfBoundsExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ApiKeyValidityOutOfBoundsExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ApiLimitExceededException Object /// </summary> public class ApiLimitExceededExceptionUnmarshaller : IErrorResponseUnmarshaller<ApiLimitExceededException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ApiLimitExceededException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ApiLimitExceededException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ApiLimitExceededException unmarshalledObject = new ApiLimitExceededException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ApiLimitExceededExceptionUnmarshaller _instance = new ApiLimitExceededExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ApiLimitExceededExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// AppSyncRuntime Marshaller /// </summary> public class AppSyncRuntimeMarshaller : IRequestMarshaller<AppSyncRuntime, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(AppSyncRuntime requestObject, JsonMarshallerContext context) { if(requestObject.IsSetName()) { context.Writer.WritePropertyName("name"); context.Writer.Write(requestObject.Name); } if(requestObject.IsSetRuntimeVersion()) { context.Writer.WritePropertyName("runtimeVersion"); context.Writer.Write(requestObject.RuntimeVersion); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static AppSyncRuntimeMarshaller Instance = new AppSyncRuntimeMarshaller(); } }
68
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AppSyncRuntime Object /// </summary> public class AppSyncRuntimeUnmarshaller : IUnmarshaller<AppSyncRuntime, XmlUnmarshallerContext>, IUnmarshaller<AppSyncRuntime, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AppSyncRuntime IUnmarshaller<AppSyncRuntime, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public AppSyncRuntime Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AppSyncRuntime unmarshalledObject = new AppSyncRuntime(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("runtimeVersion", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RuntimeVersion = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AppSyncRuntimeUnmarshaller _instance = new AppSyncRuntimeUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AppSyncRuntimeUnmarshaller Instance { get { return _instance; } } } }
98
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// AssociateApi Request Marshaller /// </summary> public class AssociateApiRequestMarshaller : IMarshaller<IRequest, AssociateApiRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((AssociateApiRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(AssociateApiRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppSync"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; request.HttpMethod = "POST"; if (!publicRequest.IsSetDomainName()) throw new AmazonAppSyncException("Request object does not have required field DomainName set"); request.AddPathResource("{domainName}", StringUtils.FromString(publicRequest.DomainName)); request.ResourcePath = "/v1/domainnames/{domainName}/apiassociation"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetApiId()) { context.Writer.WritePropertyName("apiId"); context.Writer.Write(publicRequest.ApiId); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static AssociateApiRequestMarshaller _instance = new AssociateApiRequestMarshaller(); internal static AssociateApiRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static AssociateApiRequestMarshaller Instance { get { return _instance; } } } }
104
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AssociateApi operation /// </summary> public class AssociateApiResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { AssociateApiResponse response = new AssociateApiResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("apiAssociation", targetDepth)) { var unmarshaller = ApiAssociationUnmarshaller.Instance; response.ApiAssociation = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalFailureException")) { return InternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppSyncException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static AssociateApiResponseUnmarshaller _instance = new AssociateApiResponseUnmarshaller(); internal static AssociateApiResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static AssociateApiResponseUnmarshaller Instance { get { return _instance; } } } }
122
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// AssociateMergedGraphqlApi Request Marshaller /// </summary> public class AssociateMergedGraphqlApiRequestMarshaller : IMarshaller<IRequest, AssociateMergedGraphqlApiRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((AssociateMergedGraphqlApiRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(AssociateMergedGraphqlApiRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppSync"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; request.HttpMethod = "POST"; if (!publicRequest.IsSetSourceApiIdentifier()) throw new AmazonAppSyncException("Request object does not have required field SourceApiIdentifier set"); request.AddPathResource("{sourceApiIdentifier}", StringUtils.FromString(publicRequest.SourceApiIdentifier)); request.ResourcePath = "/v1/sourceApis/{sourceApiIdentifier}/mergedApiAssociations"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetDescription()) { context.Writer.WritePropertyName("description"); context.Writer.Write(publicRequest.Description); } if(publicRequest.IsSetMergedApiIdentifier()) { context.Writer.WritePropertyName("mergedApiIdentifier"); context.Writer.Write(publicRequest.MergedApiIdentifier); } if(publicRequest.IsSetSourceApiAssociationConfig()) { context.Writer.WritePropertyName("sourceApiAssociationConfig"); context.Writer.WriteObjectStart(); var marshaller = SourceApiAssociationConfigMarshaller.Instance; marshaller.Marshall(publicRequest.SourceApiAssociationConfig, context); context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static AssociateMergedGraphqlApiRequestMarshaller _instance = new AssociateMergedGraphqlApiRequestMarshaller(); internal static AssociateMergedGraphqlApiRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static AssociateMergedGraphqlApiRequestMarshaller Instance { get { return _instance; } } } }
121
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AssociateMergedGraphqlApi operation /// </summary> public class AssociateMergedGraphqlApiResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { AssociateMergedGraphqlApiResponse response = new AssociateMergedGraphqlApiResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("sourceApiAssociation", targetDepth)) { var unmarshaller = SourceApiAssociationUnmarshaller.Instance; response.SourceApiAssociation = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentModificationException")) { return ConcurrentModificationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalFailureException")) { return InternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException")) { return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppSyncException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static AssociateMergedGraphqlApiResponseUnmarshaller _instance = new AssociateMergedGraphqlApiResponseUnmarshaller(); internal static AssociateMergedGraphqlApiResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static AssociateMergedGraphqlApiResponseUnmarshaller Instance { get { return _instance; } } } }
130
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// AssociateSourceGraphqlApi Request Marshaller /// </summary> public class AssociateSourceGraphqlApiRequestMarshaller : IMarshaller<IRequest, AssociateSourceGraphqlApiRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((AssociateSourceGraphqlApiRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(AssociateSourceGraphqlApiRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppSync"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; request.HttpMethod = "POST"; if (!publicRequest.IsSetMergedApiIdentifier()) throw new AmazonAppSyncException("Request object does not have required field MergedApiIdentifier set"); request.AddPathResource("{mergedApiIdentifier}", StringUtils.FromString(publicRequest.MergedApiIdentifier)); request.ResourcePath = "/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetDescription()) { context.Writer.WritePropertyName("description"); context.Writer.Write(publicRequest.Description); } if(publicRequest.IsSetSourceApiAssociationConfig()) { context.Writer.WritePropertyName("sourceApiAssociationConfig"); context.Writer.WriteObjectStart(); var marshaller = SourceApiAssociationConfigMarshaller.Instance; marshaller.Marshall(publicRequest.SourceApiAssociationConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetSourceApiIdentifier()) { context.Writer.WritePropertyName("sourceApiIdentifier"); context.Writer.Write(publicRequest.SourceApiIdentifier); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static AssociateSourceGraphqlApiRequestMarshaller _instance = new AssociateSourceGraphqlApiRequestMarshaller(); internal static AssociateSourceGraphqlApiRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static AssociateSourceGraphqlApiRequestMarshaller Instance { get { return _instance; } } } }
121
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AssociateSourceGraphqlApi operation /// </summary> public class AssociateSourceGraphqlApiResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { AssociateSourceGraphqlApiResponse response = new AssociateSourceGraphqlApiResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("sourceApiAssociation", targetDepth)) { var unmarshaller = SourceApiAssociationUnmarshaller.Instance; response.SourceApiAssociation = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentModificationException")) { return ConcurrentModificationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalFailureException")) { return InternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException")) { return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppSyncException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static AssociateSourceGraphqlApiResponseUnmarshaller _instance = new AssociateSourceGraphqlApiResponseUnmarshaller(); internal static AssociateSourceGraphqlApiResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static AssociateSourceGraphqlApiResponseUnmarshaller Instance { get { return _instance; } } } }
130
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// AuthorizationConfig Marshaller /// </summary> public class AuthorizationConfigMarshaller : IRequestMarshaller<AuthorizationConfig, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(AuthorizationConfig requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAuthorizationType()) { context.Writer.WritePropertyName("authorizationType"); context.Writer.Write(requestObject.AuthorizationType); } if(requestObject.IsSetAwsIamConfig()) { context.Writer.WritePropertyName("awsIamConfig"); context.Writer.WriteObjectStart(); var marshaller = AwsIamConfigMarshaller.Instance; marshaller.Marshall(requestObject.AwsIamConfig, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static AuthorizationConfigMarshaller Instance = new AuthorizationConfigMarshaller(); } }
73
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AuthorizationConfig Object /// </summary> public class AuthorizationConfigUnmarshaller : IUnmarshaller<AuthorizationConfig, XmlUnmarshallerContext>, IUnmarshaller<AuthorizationConfig, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AuthorizationConfig IUnmarshaller<AuthorizationConfig, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public AuthorizationConfig Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AuthorizationConfig unmarshalledObject = new AuthorizationConfig(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("authorizationType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AuthorizationType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("awsIamConfig", targetDepth)) { var unmarshaller = AwsIamConfigUnmarshaller.Instance; unmarshalledObject.AwsIamConfig = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AuthorizationConfigUnmarshaller _instance = new AuthorizationConfigUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AuthorizationConfigUnmarshaller Instance { get { return _instance; } } } }
98
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// AwsIamConfig Marshaller /// </summary> public class AwsIamConfigMarshaller : IRequestMarshaller<AwsIamConfig, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(AwsIamConfig requestObject, JsonMarshallerContext context) { if(requestObject.IsSetSigningRegion()) { context.Writer.WritePropertyName("signingRegion"); context.Writer.Write(requestObject.SigningRegion); } if(requestObject.IsSetSigningServiceName()) { context.Writer.WritePropertyName("signingServiceName"); context.Writer.Write(requestObject.SigningServiceName); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static AwsIamConfigMarshaller Instance = new AwsIamConfigMarshaller(); } }
68
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AwsIamConfig Object /// </summary> public class AwsIamConfigUnmarshaller : IUnmarshaller<AwsIamConfig, XmlUnmarshallerContext>, IUnmarshaller<AwsIamConfig, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AwsIamConfig IUnmarshaller<AwsIamConfig, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public AwsIamConfig Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AwsIamConfig unmarshalledObject = new AwsIamConfig(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("signingRegion", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SigningRegion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("signingServiceName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SigningServiceName = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AwsIamConfigUnmarshaller _instance = new AwsIamConfigUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AwsIamConfigUnmarshaller Instance { get { return _instance; } } } }
98
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for BadRequestDetail Object /// </summary> public class BadRequestDetailUnmarshaller : IUnmarshaller<BadRequestDetail, XmlUnmarshallerContext>, IUnmarshaller<BadRequestDetail, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> BadRequestDetail IUnmarshaller<BadRequestDetail, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public BadRequestDetail Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; BadRequestDetail unmarshalledObject = new BadRequestDetail(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("codeErrors", targetDepth)) { var unmarshaller = new ListUnmarshaller<CodeError, CodeErrorUnmarshaller>(CodeErrorUnmarshaller.Instance); unmarshalledObject.CodeErrors = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static BadRequestDetailUnmarshaller _instance = new BadRequestDetailUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static BadRequestDetailUnmarshaller Instance { get { return _instance; } } } }
92
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for BadRequestException Object /// </summary> public class BadRequestExceptionUnmarshaller : IErrorResponseUnmarshaller<BadRequestException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public BadRequestException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public BadRequestException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); BadRequestException unmarshalledObject = new BadRequestException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("detail", targetDepth)) { var unmarshaller = BadRequestDetailUnmarshaller.Instance; unmarshalledObject.Detail = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("reason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Reason = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static BadRequestExceptionUnmarshaller _instance = new BadRequestExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static BadRequestExceptionUnmarshaller Instance { get { return _instance; } } } }
97
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// CachingConfig Marshaller /// </summary> public class CachingConfigMarshaller : IRequestMarshaller<CachingConfig, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(CachingConfig requestObject, JsonMarshallerContext context) { if(requestObject.IsSetCachingKeys()) { context.Writer.WritePropertyName("cachingKeys"); context.Writer.WriteArrayStart(); foreach(var requestObjectCachingKeysListValue in requestObject.CachingKeys) { context.Writer.Write(requestObjectCachingKeysListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetTtl()) { context.Writer.WritePropertyName("ttl"); context.Writer.Write(requestObject.Ttl); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static CachingConfigMarshaller Instance = new CachingConfigMarshaller(); } }
73
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CachingConfig Object /// </summary> public class CachingConfigUnmarshaller : IUnmarshaller<CachingConfig, XmlUnmarshallerContext>, IUnmarshaller<CachingConfig, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> CachingConfig IUnmarshaller<CachingConfig, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public CachingConfig Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; CachingConfig unmarshalledObject = new CachingConfig(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("cachingKeys", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.CachingKeys = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ttl", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.Ttl = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static CachingConfigUnmarshaller _instance = new CachingConfigUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static CachingConfigUnmarshaller Instance { get { return _instance; } } } }
98
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CodeErrorLocation Object /// </summary> public class CodeErrorLocationUnmarshaller : IUnmarshaller<CodeErrorLocation, XmlUnmarshallerContext>, IUnmarshaller<CodeErrorLocation, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> CodeErrorLocation IUnmarshaller<CodeErrorLocation, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public CodeErrorLocation Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; CodeErrorLocation unmarshalledObject = new CodeErrorLocation(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("column", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.Column = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("line", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.Line = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("span", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.Span = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static CodeErrorLocationUnmarshaller _instance = new CodeErrorLocationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static CodeErrorLocationUnmarshaller Instance { get { return _instance; } } } }
104
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CodeError Object /// </summary> public class CodeErrorUnmarshaller : IUnmarshaller<CodeError, XmlUnmarshallerContext>, IUnmarshaller<CodeError, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> CodeError IUnmarshaller<CodeError, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public CodeError Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; CodeError unmarshalledObject = new CodeError(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("errorType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ErrorType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("location", targetDepth)) { var unmarshaller = CodeErrorLocationUnmarshaller.Instance; unmarshalledObject.Location = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("value", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Value = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static CodeErrorUnmarshaller _instance = new CodeErrorUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static CodeErrorUnmarshaller Instance { get { return _instance; } } } }
104
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// CognitoUserPoolConfig Marshaller /// </summary> public class CognitoUserPoolConfigMarshaller : IRequestMarshaller<CognitoUserPoolConfig, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(CognitoUserPoolConfig requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAppIdClientRegex()) { context.Writer.WritePropertyName("appIdClientRegex"); context.Writer.Write(requestObject.AppIdClientRegex); } if(requestObject.IsSetAwsRegion()) { context.Writer.WritePropertyName("awsRegion"); context.Writer.Write(requestObject.AwsRegion); } if(requestObject.IsSetUserPoolId()) { context.Writer.WritePropertyName("userPoolId"); context.Writer.Write(requestObject.UserPoolId); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static CognitoUserPoolConfigMarshaller Instance = new CognitoUserPoolConfigMarshaller(); } }
74
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CognitoUserPoolConfig Object /// </summary> public class CognitoUserPoolConfigUnmarshaller : IUnmarshaller<CognitoUserPoolConfig, XmlUnmarshallerContext>, IUnmarshaller<CognitoUserPoolConfig, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> CognitoUserPoolConfig IUnmarshaller<CognitoUserPoolConfig, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public CognitoUserPoolConfig Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; CognitoUserPoolConfig unmarshalledObject = new CognitoUserPoolConfig(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("appIdClientRegex", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AppIdClientRegex = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("awsRegion", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AwsRegion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("userPoolId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.UserPoolId = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static CognitoUserPoolConfigUnmarshaller _instance = new CognitoUserPoolConfigUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static CognitoUserPoolConfigUnmarshaller Instance { get { return _instance; } } } }
104
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ConcurrentModificationException Object /// </summary> public class ConcurrentModificationExceptionUnmarshaller : IErrorResponseUnmarshaller<ConcurrentModificationException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ConcurrentModificationException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ConcurrentModificationException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ConcurrentModificationException unmarshalledObject = new ConcurrentModificationException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ConcurrentModificationExceptionUnmarshaller _instance = new ConcurrentModificationExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ConcurrentModificationExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// CreateApiCache Request Marshaller /// </summary> public class CreateApiCacheRequestMarshaller : IMarshaller<IRequest, CreateApiCacheRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((CreateApiCacheRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateApiCacheRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppSync"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; request.HttpMethod = "POST"; if (!publicRequest.IsSetApiId()) throw new AmazonAppSyncException("Request object does not have required field ApiId set"); request.AddPathResource("{apiId}", StringUtils.FromString(publicRequest.ApiId)); request.ResourcePath = "/v1/apis/{apiId}/ApiCaches"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetApiCachingBehavior()) { context.Writer.WritePropertyName("apiCachingBehavior"); context.Writer.Write(publicRequest.ApiCachingBehavior); } if(publicRequest.IsSetAtRestEncryptionEnabled()) { context.Writer.WritePropertyName("atRestEncryptionEnabled"); context.Writer.Write(publicRequest.AtRestEncryptionEnabled); } if(publicRequest.IsSetTransitEncryptionEnabled()) { context.Writer.WritePropertyName("transitEncryptionEnabled"); context.Writer.Write(publicRequest.TransitEncryptionEnabled); } if(publicRequest.IsSetTtl()) { context.Writer.WritePropertyName("ttl"); context.Writer.Write(publicRequest.Ttl); } if(publicRequest.IsSetType()) { context.Writer.WritePropertyName("type"); context.Writer.Write(publicRequest.Type); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CreateApiCacheRequestMarshaller _instance = new CreateApiCacheRequestMarshaller(); internal static CreateApiCacheRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateApiCacheRequestMarshaller Instance { get { return _instance; } } } }
128
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateApiCache operation /// </summary> public class CreateApiCacheResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateApiCacheResponse response = new CreateApiCacheResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("apiCache", targetDepth)) { var unmarshaller = ApiCacheUnmarshaller.Instance; response.ApiCache = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentModificationException")) { return ConcurrentModificationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalFailureException")) { return InternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppSyncException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateApiCacheResponseUnmarshaller _instance = new CreateApiCacheResponseUnmarshaller(); internal static CreateApiCacheResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateApiCacheResponseUnmarshaller Instance { get { return _instance; } } } }
126
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// CreateApiKey Request Marshaller /// </summary> public class CreateApiKeyRequestMarshaller : IMarshaller<IRequest, CreateApiKeyRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((CreateApiKeyRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateApiKeyRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppSync"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; request.HttpMethod = "POST"; if (!publicRequest.IsSetApiId()) throw new AmazonAppSyncException("Request object does not have required field ApiId set"); request.AddPathResource("{apiId}", StringUtils.FromString(publicRequest.ApiId)); request.ResourcePath = "/v1/apis/{apiId}/apikeys"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetDescription()) { context.Writer.WritePropertyName("description"); context.Writer.Write(publicRequest.Description); } if(publicRequest.IsSetExpires()) { context.Writer.WritePropertyName("expires"); context.Writer.Write(publicRequest.Expires); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CreateApiKeyRequestMarshaller _instance = new CreateApiKeyRequestMarshaller(); internal static CreateApiKeyRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateApiKeyRequestMarshaller Instance { get { return _instance; } } } }
110
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateApiKey operation /// </summary> public class CreateApiKeyResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateApiKeyResponse response = new CreateApiKeyResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("apiKey", targetDepth)) { var unmarshaller = ApiKeyUnmarshaller.Instance; response.ApiKey = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ApiKeyLimitExceededException")) { return ApiKeyLimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ApiKeyValidityOutOfBoundsException")) { return ApiKeyValidityOutOfBoundsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalFailureException")) { return InternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException")) { return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppSyncException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateApiKeyResponseUnmarshaller _instance = new CreateApiKeyResponseUnmarshaller(); internal static CreateApiKeyResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateApiKeyResponseUnmarshaller Instance { get { return _instance; } } } }
134
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// CreateDataSource Request Marshaller /// </summary> public class CreateDataSourceRequestMarshaller : IMarshaller<IRequest, CreateDataSourceRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((CreateDataSourceRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateDataSourceRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppSync"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; request.HttpMethod = "POST"; if (!publicRequest.IsSetApiId()) throw new AmazonAppSyncException("Request object does not have required field ApiId set"); request.AddPathResource("{apiId}", StringUtils.FromString(publicRequest.ApiId)); request.ResourcePath = "/v1/apis/{apiId}/datasources"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetDescription()) { context.Writer.WritePropertyName("description"); context.Writer.Write(publicRequest.Description); } if(publicRequest.IsSetDynamodbConfig()) { context.Writer.WritePropertyName("dynamodbConfig"); context.Writer.WriteObjectStart(); var marshaller = DynamodbDataSourceConfigMarshaller.Instance; marshaller.Marshall(publicRequest.DynamodbConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetElasticsearchConfig()) { context.Writer.WritePropertyName("elasticsearchConfig"); context.Writer.WriteObjectStart(); var marshaller = ElasticsearchDataSourceConfigMarshaller.Instance; marshaller.Marshall(publicRequest.ElasticsearchConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetEventBridgeConfig()) { context.Writer.WritePropertyName("eventBridgeConfig"); context.Writer.WriteObjectStart(); var marshaller = EventBridgeDataSourceConfigMarshaller.Instance; marshaller.Marshall(publicRequest.EventBridgeConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetHttpConfig()) { context.Writer.WritePropertyName("httpConfig"); context.Writer.WriteObjectStart(); var marshaller = HttpDataSourceConfigMarshaller.Instance; marshaller.Marshall(publicRequest.HttpConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetLambdaConfig()) { context.Writer.WritePropertyName("lambdaConfig"); context.Writer.WriteObjectStart(); var marshaller = LambdaDataSourceConfigMarshaller.Instance; marshaller.Marshall(publicRequest.LambdaConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetName()) { context.Writer.WritePropertyName("name"); context.Writer.Write(publicRequest.Name); } if(publicRequest.IsSetOpenSearchServiceConfig()) { context.Writer.WritePropertyName("openSearchServiceConfig"); context.Writer.WriteObjectStart(); var marshaller = OpenSearchServiceDataSourceConfigMarshaller.Instance; marshaller.Marshall(publicRequest.OpenSearchServiceConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetRelationalDatabaseConfig()) { context.Writer.WritePropertyName("relationalDatabaseConfig"); context.Writer.WriteObjectStart(); var marshaller = RelationalDatabaseDataSourceConfigMarshaller.Instance; marshaller.Marshall(publicRequest.RelationalDatabaseConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetServiceRoleArn()) { context.Writer.WritePropertyName("serviceRoleArn"); context.Writer.Write(publicRequest.ServiceRoleArn); } if(publicRequest.IsSetType()) { context.Writer.WritePropertyName("type"); context.Writer.Write(publicRequest.Type); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CreateDataSourceRequestMarshaller _instance = new CreateDataSourceRequestMarshaller(); internal static CreateDataSourceRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateDataSourceRequestMarshaller Instance { get { return _instance; } } } }
199
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateDataSource operation /// </summary> public class CreateDataSourceResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateDataSourceResponse response = new CreateDataSourceResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("dataSource", targetDepth)) { var unmarshaller = DataSourceUnmarshaller.Instance; response.DataSource = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentModificationException")) { return ConcurrentModificationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalFailureException")) { return InternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppSyncException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateDataSourceResponseUnmarshaller _instance = new CreateDataSourceResponseUnmarshaller(); internal static CreateDataSourceResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateDataSourceResponseUnmarshaller Instance { get { return _instance; } } } }
126
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// CreateDomainName Request Marshaller /// </summary> public class CreateDomainNameRequestMarshaller : IMarshaller<IRequest, CreateDomainNameRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((CreateDomainNameRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateDomainNameRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppSync"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; request.HttpMethod = "POST"; request.ResourcePath = "/v1/domainnames"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetCertificateArn()) { context.Writer.WritePropertyName("certificateArn"); context.Writer.Write(publicRequest.CertificateArn); } if(publicRequest.IsSetDescription()) { context.Writer.WritePropertyName("description"); context.Writer.Write(publicRequest.Description); } if(publicRequest.IsSetDomainName()) { context.Writer.WritePropertyName("domainName"); context.Writer.Write(publicRequest.DomainName); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CreateDomainNameRequestMarshaller _instance = new CreateDomainNameRequestMarshaller(); internal static CreateDomainNameRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateDomainNameRequestMarshaller Instance { get { return _instance; } } } }
113
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateDomainName operation /// </summary> public class CreateDomainNameResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateDomainNameResponse response = new CreateDomainNameResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("domainNameConfig", targetDepth)) { var unmarshaller = DomainNameConfigUnmarshaller.Instance; response.DomainNameConfig = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalFailureException")) { return InternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppSyncException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateDomainNameResponseUnmarshaller _instance = new CreateDomainNameResponseUnmarshaller(); internal static CreateDomainNameResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateDomainNameResponseUnmarshaller Instance { get { return _instance; } } } }
118
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// CreateFunction Request Marshaller /// </summary> public class CreateFunctionRequestMarshaller : IMarshaller<IRequest, CreateFunctionRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((CreateFunctionRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateFunctionRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppSync"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; request.HttpMethod = "POST"; if (!publicRequest.IsSetApiId()) throw new AmazonAppSyncException("Request object does not have required field ApiId set"); request.AddPathResource("{apiId}", StringUtils.FromString(publicRequest.ApiId)); request.ResourcePath = "/v1/apis/{apiId}/functions"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetCode()) { context.Writer.WritePropertyName("code"); context.Writer.Write(publicRequest.Code); } if(publicRequest.IsSetDataSourceName()) { context.Writer.WritePropertyName("dataSourceName"); context.Writer.Write(publicRequest.DataSourceName); } if(publicRequest.IsSetDescription()) { context.Writer.WritePropertyName("description"); context.Writer.Write(publicRequest.Description); } if(publicRequest.IsSetFunctionVersion()) { context.Writer.WritePropertyName("functionVersion"); context.Writer.Write(publicRequest.FunctionVersion); } if(publicRequest.IsSetMaxBatchSize()) { context.Writer.WritePropertyName("maxBatchSize"); context.Writer.Write(publicRequest.MaxBatchSize); } if(publicRequest.IsSetName()) { context.Writer.WritePropertyName("name"); context.Writer.Write(publicRequest.Name); } if(publicRequest.IsSetRequestMappingTemplate()) { context.Writer.WritePropertyName("requestMappingTemplate"); context.Writer.Write(publicRequest.RequestMappingTemplate); } if(publicRequest.IsSetResponseMappingTemplate()) { context.Writer.WritePropertyName("responseMappingTemplate"); context.Writer.Write(publicRequest.ResponseMappingTemplate); } if(publicRequest.IsSetRuntime()) { context.Writer.WritePropertyName("runtime"); context.Writer.WriteObjectStart(); var marshaller = AppSyncRuntimeMarshaller.Instance; marshaller.Marshall(publicRequest.Runtime, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetSyncConfig()) { context.Writer.WritePropertyName("syncConfig"); context.Writer.WriteObjectStart(); var marshaller = SyncConfigMarshaller.Instance; marshaller.Marshall(publicRequest.SyncConfig, context); context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CreateFunctionRequestMarshaller _instance = new CreateFunctionRequestMarshaller(); internal static CreateFunctionRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateFunctionRequestMarshaller Instance { get { return _instance; } } } }
168
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateFunction operation /// </summary> public class CreateFunctionResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateFunctionResponse response = new CreateFunctionResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("functionConfiguration", targetDepth)) { var unmarshaller = FunctionConfigurationUnmarshaller.Instance; response.FunctionConfiguration = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentModificationException")) { return ConcurrentModificationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalFailureException")) { return InternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppSyncException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateFunctionResponseUnmarshaller _instance = new CreateFunctionResponseUnmarshaller(); internal static CreateFunctionResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateFunctionResponseUnmarshaller Instance { get { return _instance; } } } }
122
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// CreateGraphqlApi Request Marshaller /// </summary> public class CreateGraphqlApiRequestMarshaller : IMarshaller<IRequest, CreateGraphqlApiRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((CreateGraphqlApiRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateGraphqlApiRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppSync"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; request.HttpMethod = "POST"; request.ResourcePath = "/v1/apis"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetAdditionalAuthenticationProviders()) { context.Writer.WritePropertyName("additionalAuthenticationProviders"); context.Writer.WriteArrayStart(); foreach(var publicRequestAdditionalAuthenticationProvidersListValue in publicRequest.AdditionalAuthenticationProviders) { context.Writer.WriteObjectStart(); var marshaller = AdditionalAuthenticationProviderMarshaller.Instance; marshaller.Marshall(publicRequestAdditionalAuthenticationProvidersListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetApiType()) { context.Writer.WritePropertyName("apiType"); context.Writer.Write(publicRequest.ApiType); } if(publicRequest.IsSetAuthenticationType()) { context.Writer.WritePropertyName("authenticationType"); context.Writer.Write(publicRequest.AuthenticationType); } if(publicRequest.IsSetLambdaAuthorizerConfig()) { context.Writer.WritePropertyName("lambdaAuthorizerConfig"); context.Writer.WriteObjectStart(); var marshaller = LambdaAuthorizerConfigMarshaller.Instance; marshaller.Marshall(publicRequest.LambdaAuthorizerConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetLogConfig()) { context.Writer.WritePropertyName("logConfig"); context.Writer.WriteObjectStart(); var marshaller = LogConfigMarshaller.Instance; marshaller.Marshall(publicRequest.LogConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetMergedApiExecutionRoleArn()) { context.Writer.WritePropertyName("mergedApiExecutionRoleArn"); context.Writer.Write(publicRequest.MergedApiExecutionRoleArn); } if(publicRequest.IsSetName()) { context.Writer.WritePropertyName("name"); context.Writer.Write(publicRequest.Name); } if(publicRequest.IsSetOpenIDConnectConfig()) { context.Writer.WritePropertyName("openIDConnectConfig"); context.Writer.WriteObjectStart(); var marshaller = OpenIDConnectConfigMarshaller.Instance; marshaller.Marshall(publicRequest.OpenIDConnectConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetOwnerContact()) { context.Writer.WritePropertyName("ownerContact"); context.Writer.Write(publicRequest.OwnerContact); } if(publicRequest.IsSetTags()) { context.Writer.WritePropertyName("tags"); context.Writer.WriteObjectStart(); foreach (var publicRequestTagsKvp in publicRequest.Tags) { context.Writer.WritePropertyName(publicRequestTagsKvp.Key); var publicRequestTagsValue = publicRequestTagsKvp.Value; context.Writer.Write(publicRequestTagsValue); } context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetUserPoolConfig()) { context.Writer.WritePropertyName("userPoolConfig"); context.Writer.WriteObjectStart(); var marshaller = UserPoolConfigMarshaller.Instance; marshaller.Marshall(publicRequest.UserPoolConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetVisibility()) { context.Writer.WritePropertyName("visibility"); context.Writer.Write(publicRequest.Visibility); } if(publicRequest.IsSetXrayEnabled()) { context.Writer.WritePropertyName("xrayEnabled"); context.Writer.Write(publicRequest.XrayEnabled); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CreateGraphqlApiRequestMarshaller _instance = new CreateGraphqlApiRequestMarshaller(); internal static CreateGraphqlApiRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateGraphqlApiRequestMarshaller Instance { get { return _instance; } } } }
211
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateGraphqlApi operation /// </summary> public class CreateGraphqlApiResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateGraphqlApiResponse response = new CreateGraphqlApiResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("graphqlApi", targetDepth)) { var unmarshaller = GraphqlApiUnmarshaller.Instance; response.GraphqlApi = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ApiLimitExceededException")) { return ApiLimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentModificationException")) { return ConcurrentModificationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalFailureException")) { return InternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException")) { return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppSyncException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateGraphqlApiResponseUnmarshaller _instance = new CreateGraphqlApiResponseUnmarshaller(); internal static CreateGraphqlApiResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateGraphqlApiResponseUnmarshaller Instance { get { return _instance; } } } }
130
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// CreateResolver Request Marshaller /// </summary> public class CreateResolverRequestMarshaller : IMarshaller<IRequest, CreateResolverRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((CreateResolverRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateResolverRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppSync"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; request.HttpMethod = "POST"; if (!publicRequest.IsSetApiId()) throw new AmazonAppSyncException("Request object does not have required field ApiId set"); request.AddPathResource("{apiId}", StringUtils.FromString(publicRequest.ApiId)); if (!publicRequest.IsSetTypeName()) throw new AmazonAppSyncException("Request object does not have required field TypeName set"); request.AddPathResource("{typeName}", StringUtils.FromString(publicRequest.TypeName)); request.ResourcePath = "/v1/apis/{apiId}/types/{typeName}/resolvers"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetCachingConfig()) { context.Writer.WritePropertyName("cachingConfig"); context.Writer.WriteObjectStart(); var marshaller = CachingConfigMarshaller.Instance; marshaller.Marshall(publicRequest.CachingConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetCode()) { context.Writer.WritePropertyName("code"); context.Writer.Write(publicRequest.Code); } if(publicRequest.IsSetDataSourceName()) { context.Writer.WritePropertyName("dataSourceName"); context.Writer.Write(publicRequest.DataSourceName); } if(publicRequest.IsSetFieldName()) { context.Writer.WritePropertyName("fieldName"); context.Writer.Write(publicRequest.FieldName); } if(publicRequest.IsSetKind()) { context.Writer.WritePropertyName("kind"); context.Writer.Write(publicRequest.Kind); } if(publicRequest.IsSetMaxBatchSize()) { context.Writer.WritePropertyName("maxBatchSize"); context.Writer.Write(publicRequest.MaxBatchSize); } if(publicRequest.IsSetPipelineConfig()) { context.Writer.WritePropertyName("pipelineConfig"); context.Writer.WriteObjectStart(); var marshaller = PipelineConfigMarshaller.Instance; marshaller.Marshall(publicRequest.PipelineConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetRequestMappingTemplate()) { context.Writer.WritePropertyName("requestMappingTemplate"); context.Writer.Write(publicRequest.RequestMappingTemplate); } if(publicRequest.IsSetResponseMappingTemplate()) { context.Writer.WritePropertyName("responseMappingTemplate"); context.Writer.Write(publicRequest.ResponseMappingTemplate); } if(publicRequest.IsSetRuntime()) { context.Writer.WritePropertyName("runtime"); context.Writer.WriteObjectStart(); var marshaller = AppSyncRuntimeMarshaller.Instance; marshaller.Marshall(publicRequest.Runtime, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetSyncConfig()) { context.Writer.WritePropertyName("syncConfig"); context.Writer.WriteObjectStart(); var marshaller = SyncConfigMarshaller.Instance; marshaller.Marshall(publicRequest.SyncConfig, context); context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CreateResolverRequestMarshaller _instance = new CreateResolverRequestMarshaller(); internal static CreateResolverRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateResolverRequestMarshaller Instance { get { return _instance; } } } }
187
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateResolver operation /// </summary> public class CreateResolverResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateResolverResponse response = new CreateResolverResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("resolver", targetDepth)) { var unmarshaller = ResolverUnmarshaller.Instance; response.Resolver = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentModificationException")) { return ConcurrentModificationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalFailureException")) { return InternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppSyncException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateResolverResponseUnmarshaller _instance = new CreateResolverResponseUnmarshaller(); internal static CreateResolverResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateResolverResponseUnmarshaller Instance { get { return _instance; } } } }
126
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// CreateType Request Marshaller /// </summary> public class CreateTypeRequestMarshaller : IMarshaller<IRequest, CreateTypeRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((CreateTypeRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateTypeRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppSync"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; request.HttpMethod = "POST"; if (!publicRequest.IsSetApiId()) throw new AmazonAppSyncException("Request object does not have required field ApiId set"); request.AddPathResource("{apiId}", StringUtils.FromString(publicRequest.ApiId)); request.ResourcePath = "/v1/apis/{apiId}/types"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetDefinition()) { context.Writer.WritePropertyName("definition"); context.Writer.Write(publicRequest.Definition); } if(publicRequest.IsSetFormat()) { context.Writer.WritePropertyName("format"); context.Writer.Write(publicRequest.Format); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CreateTypeRequestMarshaller _instance = new CreateTypeRequestMarshaller(); internal static CreateTypeRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateTypeRequestMarshaller Instance { get { return _instance; } } } }
110
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateType operation /// </summary> public class CreateTypeResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateTypeResponse response = new CreateTypeResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("type", targetDepth)) { var unmarshaller = TypeUnmarshaller.Instance; response.Type = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentModificationException")) { return ConcurrentModificationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalFailureException")) { return InternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppSyncException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateTypeResponseUnmarshaller _instance = new CreateTypeResponseUnmarshaller(); internal static CreateTypeResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateTypeResponseUnmarshaller Instance { get { return _instance; } } } }
126
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DataSource Object /// </summary> public class DataSourceUnmarshaller : IUnmarshaller<DataSource, XmlUnmarshallerContext>, IUnmarshaller<DataSource, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> DataSource IUnmarshaller<DataSource, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public DataSource Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; DataSource unmarshalledObject = new DataSource(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("dataSourceArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DataSourceArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("dynamodbConfig", targetDepth)) { var unmarshaller = DynamodbDataSourceConfigUnmarshaller.Instance; unmarshalledObject.DynamodbConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("elasticsearchConfig", targetDepth)) { var unmarshaller = ElasticsearchDataSourceConfigUnmarshaller.Instance; unmarshalledObject.ElasticsearchConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("eventBridgeConfig", targetDepth)) { var unmarshaller = EventBridgeDataSourceConfigUnmarshaller.Instance; unmarshalledObject.EventBridgeConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("httpConfig", targetDepth)) { var unmarshaller = HttpDataSourceConfigUnmarshaller.Instance; unmarshalledObject.HttpConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lambdaConfig", targetDepth)) { var unmarshaller = LambdaDataSourceConfigUnmarshaller.Instance; unmarshalledObject.LambdaConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("openSearchServiceConfig", targetDepth)) { var unmarshaller = OpenSearchServiceDataSourceConfigUnmarshaller.Instance; unmarshalledObject.OpenSearchServiceConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("relationalDatabaseConfig", targetDepth)) { var unmarshaller = RelationalDatabaseDataSourceConfigUnmarshaller.Instance; unmarshalledObject.RelationalDatabaseConfig = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("serviceRoleArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ServiceRoleArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("type", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Type = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static DataSourceUnmarshaller _instance = new DataSourceUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static DataSourceUnmarshaller Instance { get { return _instance; } } } }
158
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// DeleteApiCache Request Marshaller /// </summary> public class DeleteApiCacheRequestMarshaller : IMarshaller<IRequest, DeleteApiCacheRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((DeleteApiCacheRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DeleteApiCacheRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppSync"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; request.HttpMethod = "DELETE"; if (!publicRequest.IsSetApiId()) throw new AmazonAppSyncException("Request object does not have required field ApiId set"); request.AddPathResource("{apiId}", StringUtils.FromString(publicRequest.ApiId)); request.ResourcePath = "/v1/apis/{apiId}/ApiCaches"; return request; } private static DeleteApiCacheRequestMarshaller _instance = new DeleteApiCacheRequestMarshaller(); internal static DeleteApiCacheRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteApiCacheRequestMarshaller Instance { get { return _instance; } } } }
87
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeleteApiCache operation /// </summary> public class DeleteApiCacheResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DeleteApiCacheResponse response = new DeleteApiCacheResponse(); return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentModificationException")) { return ConcurrentModificationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalFailureException")) { return InternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppSyncException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DeleteApiCacheResponseUnmarshaller _instance = new DeleteApiCacheResponseUnmarshaller(); internal static DeleteApiCacheResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteApiCacheResponseUnmarshaller Instance { get { return _instance; } } } }
115
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// DeleteApiKey Request Marshaller /// </summary> public class DeleteApiKeyRequestMarshaller : IMarshaller<IRequest, DeleteApiKeyRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((DeleteApiKeyRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DeleteApiKeyRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppSync"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; request.HttpMethod = "DELETE"; if (!publicRequest.IsSetApiId()) throw new AmazonAppSyncException("Request object does not have required field ApiId set"); request.AddPathResource("{apiId}", StringUtils.FromString(publicRequest.ApiId)); if (!publicRequest.IsSetId()) throw new AmazonAppSyncException("Request object does not have required field Id set"); request.AddPathResource("{id}", StringUtils.FromString(publicRequest.Id)); request.ResourcePath = "/v1/apis/{apiId}/apikeys/{id}"; return request; } private static DeleteApiKeyRequestMarshaller _instance = new DeleteApiKeyRequestMarshaller(); internal static DeleteApiKeyRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteApiKeyRequestMarshaller Instance { get { return _instance; } } } }
90
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeleteApiKey operation /// </summary> public class DeleteApiKeyResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DeleteApiKeyResponse response = new DeleteApiKeyResponse(); return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalFailureException")) { return InternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppSyncException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DeleteApiKeyResponseUnmarshaller _instance = new DeleteApiKeyResponseUnmarshaller(); internal static DeleteApiKeyResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteApiKeyResponseUnmarshaller Instance { get { return _instance; } } } }
111
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// DeleteDataSource Request Marshaller /// </summary> public class DeleteDataSourceRequestMarshaller : IMarshaller<IRequest, DeleteDataSourceRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((DeleteDataSourceRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DeleteDataSourceRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppSync"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; request.HttpMethod = "DELETE"; if (!publicRequest.IsSetApiId()) throw new AmazonAppSyncException("Request object does not have required field ApiId set"); request.AddPathResource("{apiId}", StringUtils.FromString(publicRequest.ApiId)); if (!publicRequest.IsSetName()) throw new AmazonAppSyncException("Request object does not have required field Name set"); request.AddPathResource("{name}", StringUtils.FromString(publicRequest.Name)); request.ResourcePath = "/v1/apis/{apiId}/datasources/{name}"; return request; } private static DeleteDataSourceRequestMarshaller _instance = new DeleteDataSourceRequestMarshaller(); internal static DeleteDataSourceRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteDataSourceRequestMarshaller Instance { get { return _instance; } } } }
90
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeleteDataSource operation /// </summary> public class DeleteDataSourceResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DeleteDataSourceResponse response = new DeleteDataSourceResponse(); return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentModificationException")) { return ConcurrentModificationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalFailureException")) { return InternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppSyncException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DeleteDataSourceResponseUnmarshaller _instance = new DeleteDataSourceResponseUnmarshaller(); internal static DeleteDataSourceResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteDataSourceResponseUnmarshaller Instance { get { return _instance; } } } }
115
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// DeleteDomainName Request Marshaller /// </summary> public class DeleteDomainNameRequestMarshaller : IMarshaller<IRequest, DeleteDomainNameRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((DeleteDomainNameRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DeleteDomainNameRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppSync"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; request.HttpMethod = "DELETE"; if (!publicRequest.IsSetDomainName()) throw new AmazonAppSyncException("Request object does not have required field DomainName set"); request.AddPathResource("{domainName}", StringUtils.FromString(publicRequest.DomainName)); request.ResourcePath = "/v1/domainnames/{domainName}"; return request; } private static DeleteDomainNameRequestMarshaller _instance = new DeleteDomainNameRequestMarshaller(); internal static DeleteDomainNameRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteDomainNameRequestMarshaller Instance { get { return _instance; } } } }
87
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeleteDomainName operation /// </summary> public class DeleteDomainNameResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DeleteDomainNameResponse response = new DeleteDomainNameResponse(); return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentModificationException")) { return ConcurrentModificationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalFailureException")) { return InternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppSyncException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DeleteDomainNameResponseUnmarshaller _instance = new DeleteDomainNameResponseUnmarshaller(); internal static DeleteDomainNameResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteDomainNameResponseUnmarshaller Instance { get { return _instance; } } } }
115
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// DeleteFunction Request Marshaller /// </summary> public class DeleteFunctionRequestMarshaller : IMarshaller<IRequest, DeleteFunctionRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((DeleteFunctionRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DeleteFunctionRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppSync"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; request.HttpMethod = "DELETE"; if (!publicRequest.IsSetApiId()) throw new AmazonAppSyncException("Request object does not have required field ApiId set"); request.AddPathResource("{apiId}", StringUtils.FromString(publicRequest.ApiId)); if (!publicRequest.IsSetFunctionId()) throw new AmazonAppSyncException("Request object does not have required field FunctionId set"); request.AddPathResource("{functionId}", StringUtils.FromString(publicRequest.FunctionId)); request.ResourcePath = "/v1/apis/{apiId}/functions/{functionId}"; return request; } private static DeleteFunctionRequestMarshaller _instance = new DeleteFunctionRequestMarshaller(); internal static DeleteFunctionRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteFunctionRequestMarshaller Instance { get { return _instance; } } } }
90
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeleteFunction operation /// </summary> public class DeleteFunctionResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DeleteFunctionResponse response = new DeleteFunctionResponse(); return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentModificationException")) { return ConcurrentModificationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalFailureException")) { return InternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppSyncException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DeleteFunctionResponseUnmarshaller _instance = new DeleteFunctionResponseUnmarshaller(); internal static DeleteFunctionResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteFunctionResponseUnmarshaller Instance { get { return _instance; } } } }
111
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// DeleteGraphqlApi Request Marshaller /// </summary> public class DeleteGraphqlApiRequestMarshaller : IMarshaller<IRequest, DeleteGraphqlApiRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((DeleteGraphqlApiRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DeleteGraphqlApiRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppSync"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; request.HttpMethod = "DELETE"; if (!publicRequest.IsSetApiId()) throw new AmazonAppSyncException("Request object does not have required field ApiId set"); request.AddPathResource("{apiId}", StringUtils.FromString(publicRequest.ApiId)); request.ResourcePath = "/v1/apis/{apiId}"; return request; } private static DeleteGraphqlApiRequestMarshaller _instance = new DeleteGraphqlApiRequestMarshaller(); internal static DeleteGraphqlApiRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteGraphqlApiRequestMarshaller Instance { get { return _instance; } } } }
87
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeleteGraphqlApi operation /// </summary> public class DeleteGraphqlApiResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DeleteGraphqlApiResponse response = new DeleteGraphqlApiResponse(); return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentModificationException")) { return ConcurrentModificationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalFailureException")) { return InternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppSyncException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DeleteGraphqlApiResponseUnmarshaller _instance = new DeleteGraphqlApiResponseUnmarshaller(); internal static DeleteGraphqlApiResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteGraphqlApiResponseUnmarshaller Instance { get { return _instance; } } } }
119
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// DeleteResolver Request Marshaller /// </summary> public class DeleteResolverRequestMarshaller : IMarshaller<IRequest, DeleteResolverRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((DeleteResolverRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DeleteResolverRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppSync"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; request.HttpMethod = "DELETE"; if (!publicRequest.IsSetApiId()) throw new AmazonAppSyncException("Request object does not have required field ApiId set"); request.AddPathResource("{apiId}", StringUtils.FromString(publicRequest.ApiId)); if (!publicRequest.IsSetFieldName()) throw new AmazonAppSyncException("Request object does not have required field FieldName set"); request.AddPathResource("{fieldName}", StringUtils.FromString(publicRequest.FieldName)); if (!publicRequest.IsSetTypeName()) throw new AmazonAppSyncException("Request object does not have required field TypeName set"); request.AddPathResource("{typeName}", StringUtils.FromString(publicRequest.TypeName)); request.ResourcePath = "/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}"; return request; } private static DeleteResolverRequestMarshaller _instance = new DeleteResolverRequestMarshaller(); internal static DeleteResolverRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteResolverRequestMarshaller Instance { get { return _instance; } } } }
93
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeleteResolver operation /// </summary> public class DeleteResolverResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DeleteResolverResponse response = new DeleteResolverResponse(); return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentModificationException")) { return ConcurrentModificationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalFailureException")) { return InternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppSyncException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DeleteResolverResponseUnmarshaller _instance = new DeleteResolverResponseUnmarshaller(); internal static DeleteResolverResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteResolverResponseUnmarshaller Instance { get { return _instance; } } } }
115
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// DeleteType Request Marshaller /// </summary> public class DeleteTypeRequestMarshaller : IMarshaller<IRequest, DeleteTypeRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((DeleteTypeRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DeleteTypeRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AppSync"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; request.HttpMethod = "DELETE"; if (!publicRequest.IsSetApiId()) throw new AmazonAppSyncException("Request object does not have required field ApiId set"); request.AddPathResource("{apiId}", StringUtils.FromString(publicRequest.ApiId)); if (!publicRequest.IsSetTypeName()) throw new AmazonAppSyncException("Request object does not have required field TypeName set"); request.AddPathResource("{typeName}", StringUtils.FromString(publicRequest.TypeName)); request.ResourcePath = "/v1/apis/{apiId}/types/{typeName}"; return request; } private static DeleteTypeRequestMarshaller _instance = new DeleteTypeRequestMarshaller(); internal static DeleteTypeRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteTypeRequestMarshaller Instance { get { return _instance; } } } }
90
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.AppSync.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AppSync.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeleteType operation /// </summary> public class DeleteTypeResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DeleteTypeResponse response = new DeleteTypeResponse(); return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("BadRequestException")) { return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentModificationException")) { return ConcurrentModificationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalFailureException")) { return InternalFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("NotFoundException")) { return NotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnauthorizedException")) { return UnauthorizedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAppSyncException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DeleteTypeResponseUnmarshaller _instance = new DeleteTypeResponseUnmarshaller(); internal static DeleteTypeResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteTypeResponseUnmarshaller Instance { get { return _instance; } } } }
115