/*
* 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 securityhub-2018-10-26.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.SecurityHub.Model
{
///
/// Contains information about settings for canary deployment in the stage.
///
public partial class AwsApiGatewayCanarySettings
{
private string _deploymentId;
private double? _percentTraffic;
private Dictionary _stageVariableOverrides = new Dictionary();
private bool? _useStageCache;
///
/// Gets and sets the property DeploymentId.
///
/// The deployment identifier for 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 percentage of traffic that is 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 that are overridden in the canary release deployment. The variables
/// include new stage variables that are introduced in the canary.
///
///
///
/// Each variable is represented as a string-to-string map between the stage variable
/// name and the variable value.
///
///
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.
///
/// Indicates whether the canary deployment uses the stage cache.
///
///
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;
}
}
}