/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The input configuration for a canary deployment.See Also:
* AWS
* API Reference
The percentage (0.0-100.0) of traffic routed to the canary deployment.
*/ inline double GetPercentTraffic() const{ return m_percentTraffic; } /** *The percentage (0.0-100.0) of traffic routed to the canary deployment.
*/ inline bool PercentTrafficHasBeenSet() const { return m_percentTrafficHasBeenSet; } /** *The percentage (0.0-100.0) of traffic routed to the canary deployment.
*/ inline void SetPercentTraffic(double value) { m_percentTrafficHasBeenSet = true; m_percentTraffic = value; } /** *The percentage (0.0-100.0) of traffic routed to the canary deployment.
*/ inline DeploymentCanarySettings& WithPercentTraffic(double value) { SetPercentTraffic(value); return *this;} /** *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.
*/ inline const Aws::MapA 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.
*/ inline bool StageVariableOverridesHasBeenSet() const { return m_stageVariableOverridesHasBeenSet; } /** *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.
*/ inline void SetStageVariableOverrides(const Aws::MapA 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.
*/ inline void SetStageVariableOverrides(Aws::MapA 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.
*/ inline DeploymentCanarySettings& WithStageVariableOverrides(const Aws::MapA 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.
*/ inline DeploymentCanarySettings& WithStageVariableOverrides(Aws::MapA 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.
*/ inline DeploymentCanarySettings& AddStageVariableOverrides(const Aws::String& key, const Aws::String& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(key, value); return *this; } /** *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.
*/ inline DeploymentCanarySettings& AddStageVariableOverrides(Aws::String&& key, const Aws::String& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(std::move(key), value); return *this; } /** *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.
*/ inline DeploymentCanarySettings& AddStageVariableOverrides(const Aws::String& key, Aws::String&& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(key, std::move(value)); return *this; } /** *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.
*/ inline DeploymentCanarySettings& AddStageVariableOverrides(Aws::String&& key, Aws::String&& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(std::move(key), std::move(value)); return *this; } /** *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.
*/ inline DeploymentCanarySettings& AddStageVariableOverrides(const char* key, Aws::String&& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(key, std::move(value)); return *this; } /** *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.
*/ inline DeploymentCanarySettings& AddStageVariableOverrides(Aws::String&& key, const char* value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(std::move(key), value); return *this; } /** *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.
*/ inline DeploymentCanarySettings& AddStageVariableOverrides(const char* key, const char* value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(key, value); return *this; } /** *A Boolean flag to indicate whether the canary release deployment uses the * stage cache or not.
*/ inline bool GetUseStageCache() const{ return m_useStageCache; } /** *A Boolean flag to indicate whether the canary release deployment uses the * stage cache or not.
*/ inline bool UseStageCacheHasBeenSet() const { return m_useStageCacheHasBeenSet; } /** *A Boolean flag to indicate whether the canary release deployment uses the * stage cache or not.
*/ inline void SetUseStageCache(bool value) { m_useStageCacheHasBeenSet = true; m_useStageCache = value; } /** *A Boolean flag to indicate whether the canary release deployment uses the * stage cache or not.
*/ inline DeploymentCanarySettings& WithUseStageCache(bool value) { SetUseStageCache(value); return *this;} private: double m_percentTraffic; bool m_percentTrafficHasBeenSet = false; Aws::Map