/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Configuration settings of a canary deployment.See Also:
AWS
* API Reference
The percent (0-100) of traffic diverted to a canary deployment.
*/ inline double GetPercentTraffic() const{ return m_percentTraffic; } /** *The percent (0-100) of traffic diverted to a canary deployment.
*/ inline bool PercentTrafficHasBeenSet() const { return m_percentTrafficHasBeenSet; } /** *The percent (0-100) of traffic diverted to a canary deployment.
*/ inline void SetPercentTraffic(double value) { m_percentTrafficHasBeenSet = true; m_percentTraffic = value; } /** *The percent (0-100) of traffic diverted to a canary deployment.
*/ inline CanarySettings& WithPercentTraffic(double value) { SetPercentTraffic(value); return *this;} /** *The ID of the canary deployment.
*/ inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; } /** *The ID of the canary deployment.
*/ inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; } /** *The ID of the canary deployment.
*/ inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; } /** *The ID of the canary deployment.
*/ inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); } /** *The ID of the canary deployment.
*/ inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); } /** *The ID of the canary deployment.
*/ inline CanarySettings& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;} /** *The ID of the canary deployment.
*/ inline CanarySettings& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;} /** *The ID of the canary deployment.
*/ inline CanarySettings& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;} /** *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.
*/ inline const Aws::MapStage 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.
*/ inline bool StageVariableOverridesHasBeenSet() const { return m_stageVariableOverridesHasBeenSet; } /** *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.
*/ inline void SetStageVariableOverrides(const Aws::MapStage 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.
*/ inline void SetStageVariableOverrides(Aws::MapStage 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.
*/ inline CanarySettings& WithStageVariableOverrides(const Aws::MapStage 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.
*/ inline CanarySettings& WithStageVariableOverrides(Aws::MapStage 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.
*/ inline CanarySettings& AddStageVariableOverrides(const Aws::String& key, const Aws::String& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(key, value); return *this; } /** *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.
*/ inline CanarySettings& AddStageVariableOverrides(Aws::String&& key, const Aws::String& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(std::move(key), value); return *this; } /** *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.
*/ inline CanarySettings& AddStageVariableOverrides(const Aws::String& key, Aws::String&& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(key, std::move(value)); return *this; } /** *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.
*/ inline CanarySettings& AddStageVariableOverrides(Aws::String&& key, Aws::String&& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(std::move(key), std::move(value)); return *this; } /** *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.
*/ inline CanarySettings& AddStageVariableOverrides(const char* key, Aws::String&& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(key, std::move(value)); return *this; } /** *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.
*/ inline CanarySettings& AddStageVariableOverrides(Aws::String&& key, const char* value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(std::move(key), value); return *this; } /** *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.
*/ inline CanarySettings& 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 deployment uses the stage cache * or not.
*/ inline bool GetUseStageCache() const{ return m_useStageCache; } /** *A Boolean flag to indicate whether the canary deployment uses the stage cache * or not.
*/ inline bool UseStageCacheHasBeenSet() const { return m_useStageCacheHasBeenSet; } /** *A Boolean flag to indicate whether the canary 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 deployment uses the stage cache * or not.
*/ inline CanarySettings& WithUseStageCache(bool value) { SetUseStageCache(value); return *this;} private: double m_percentTraffic; bool m_percentTrafficHasBeenSet = false; Aws::String m_deploymentId; bool m_deploymentIdHasBeenSet = false; Aws::Map