/* * 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 apigateway-2015-07-09.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.APIGateway.Model { /// /// Container for the parameters to the CreateDeployment operation. /// Creates a Deployment resource, which makes a specified RestApi callable over the internet. /// public partial class CreateDeploymentRequest : AmazonAPIGatewayRequest { private bool? _cacheClusterEnabled; private CacheClusterSize _cacheClusterSize; private DeploymentCanarySettings _canarySettings; private string _description; private string _restApiId; private string _stageDescription; private string _stageName; private bool? _tracingEnabled; private Dictionary _variables = new Dictionary(); /// /// Gets and sets the property CacheClusterEnabled. /// /// Enables a cache cluster for the Stage resource specified in the input. /// /// public bool CacheClusterEnabled { get { return this._cacheClusterEnabled.GetValueOrDefault(); } set { this._cacheClusterEnabled = value; } } // Check to see if CacheClusterEnabled property is set internal bool IsSetCacheClusterEnabled() { return this._cacheClusterEnabled.HasValue; } /// /// Gets and sets the property CacheClusterSize. /// /// The stage's cache capacity in GB. For more information about choosing a cache size, /// see Enabling /// API caching to enhance responsiveness. /// /// public CacheClusterSize CacheClusterSize { get { return this._cacheClusterSize; } set { this._cacheClusterSize = value; } } // Check to see if CacheClusterSize property is set internal bool IsSetCacheClusterSize() { return this._cacheClusterSize != null; } /// /// Gets and sets the property CanarySettings. /// /// The input configuration for the canary deployment when the deployment is a canary /// release deployment. /// /// public DeploymentCanarySettings CanarySettings { get { return this._canarySettings; } set { this._canarySettings = value; } } // Check to see if CanarySettings property is set internal bool IsSetCanarySettings() { return this._canarySettings != null; } /// /// Gets and sets the property Description. /// /// The description for the Deployment resource to create. /// /// 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; } /// /// Gets and sets the property RestApiId. /// /// The string identifier of the associated RestApi. /// /// [AWSProperty(Required=true)] public string RestApiId { get { return this._restApiId; } set { this._restApiId = value; } } // Check to see if RestApiId property is set internal bool IsSetRestApiId() { return this._restApiId != null; } /// /// Gets and sets the property StageDescription. /// /// The description of the Stage resource for the Deployment resource to create. /// /// public string StageDescription { get { return this._stageDescription; } set { this._stageDescription = value; } } // Check to see if StageDescription property is set internal bool IsSetStageDescription() { return this._stageDescription != null; } /// /// Gets and sets the property StageName. /// /// The name of the Stage resource for the Deployment resource to create. /// /// public string StageName { get { return this._stageName; } set { this._stageName = value; } } // Check to see if StageName property is set internal bool IsSetStageName() { return this._stageName != null; } /// /// Gets and sets the property TracingEnabled. /// /// Specifies whether active tracing with X-ray is enabled for the Stage. /// /// public bool TracingEnabled { get { return this._tracingEnabled.GetValueOrDefault(); } set { this._tracingEnabled = value; } } // Check to see if TracingEnabled property is set internal bool IsSetTracingEnabled() { return this._tracingEnabled.HasValue; } /// /// Gets and sets the property Variables. /// /// A map that defines the stage variables for the Stage resource that is associated with /// the new deployment. Variable names can have alphanumeric and underscore characters, /// and the values must match [A-Za-z0-9-._~:/?#&=,]+. /// /// public Dictionary Variables { get { return this._variables; } set { this._variables = value; } } // Check to see if Variables property is set internal bool IsSetVariables() { return this._variables != null && this._variables.Count > 0; } } }