/* * 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 { /// /// Configuration settings of a canary deployment. /// public partial class CanarySettings { private string _deploymentId; private double? _percentTraffic; private Dictionary _stageVariableOverrides = new Dictionary(); private bool? _useStageCache; /// /// Gets and sets the property DeploymentId. /// /// The ID of the canary deployment. /// /// public string DeploymentId { get { return this._deploymentId; } set { this._deploymentId = value; } } // Check to see if DeploymentId property is set internal bool IsSetDeploymentId() { return this._deploymentId != null; } /// /// Gets and sets the property PercentTraffic. /// /// The percent (0-100) of traffic diverted to a canary deployment. /// /// public double PercentTraffic { get { return this._percentTraffic.GetValueOrDefault(); } set { this._percentTraffic = value; } } // Check to see if PercentTraffic property is set internal bool IsSetPercentTraffic() { return this._percentTraffic.HasValue; } /// /// Gets and sets the property StageVariableOverrides. /// /// Stage variables overridden for a canary release deployment, including new stage variables /// introduced in the canary. These stage variables are represented as a string-to-string /// map between stage variable names and their values. /// /// public Dictionary StageVariableOverrides { get { return this._stageVariableOverrides; } set { this._stageVariableOverrides = value; } } // Check to see if StageVariableOverrides property is set internal bool IsSetStageVariableOverrides() { return this._stageVariableOverrides != null && this._stageVariableOverrides.Count > 0; } /// /// Gets and sets the property UseStageCache. /// /// A Boolean flag to indicate whether the canary deployment uses the stage cache or not. /// /// public bool UseStageCache { get { return this._useStageCache.GetValueOrDefault(); } set { this._useStageCache = value; } } // Check to see if UseStageCache property is set internal bool IsSetUseStageCache() { return this._useStageCache.HasValue; } } }