/*
* 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
{
///
/// The input configuration for a canary deployment.
///
public partial class DeploymentCanarySettings
{
private double? _percentTraffic;
private Dictionary _stageVariableOverrides = new Dictionary();
private bool? _useStageCache;
///
/// Gets and sets the property PercentTraffic.
///
/// The percentage (0.0-100.0) of traffic routed to the 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.
///
/// A stage variable overrides used for the canary release deployment. They can override
/// existing stage variables or add new stage variables for the canary release deployment.
/// 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 release 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;
}
}
}