/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

Contains information about settings for canary deployment in the * stage.

See Also:

AWS * API Reference

*/ class AwsApiGatewayCanarySettings { public: AWS_SECURITYHUB_API AwsApiGatewayCanarySettings(); AWS_SECURITYHUB_API AwsApiGatewayCanarySettings(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsApiGatewayCanarySettings& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The percentage of traffic that is diverted to a canary deployment.

*/ inline double GetPercentTraffic() const{ return m_percentTraffic; } /** *

The percentage of traffic that is diverted to a canary deployment.

*/ inline bool PercentTrafficHasBeenSet() const { return m_percentTrafficHasBeenSet; } /** *

The percentage of traffic that is diverted to a canary deployment.

*/ inline void SetPercentTraffic(double value) { m_percentTrafficHasBeenSet = true; m_percentTraffic = value; } /** *

The percentage of traffic that is diverted to a canary deployment.

*/ inline AwsApiGatewayCanarySettings& WithPercentTraffic(double value) { SetPercentTraffic(value); return *this;} /** *

The deployment identifier for the canary deployment.

*/ inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; } /** *

The deployment identifier for the canary deployment.

*/ inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; } /** *

The deployment identifier for the canary deployment.

*/ inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; } /** *

The deployment identifier for the canary deployment.

*/ inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); } /** *

The deployment identifier for the canary deployment.

*/ inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); } /** *

The deployment identifier for the canary deployment.

*/ inline AwsApiGatewayCanarySettings& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;} /** *

The deployment identifier for the canary deployment.

*/ inline AwsApiGatewayCanarySettings& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;} /** *

The deployment identifier for the canary deployment.

*/ inline AwsApiGatewayCanarySettings& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;} /** *

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.

*/ inline const Aws::Map& GetStageVariableOverrides() const{ return m_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.

*/ inline bool StageVariableOverridesHasBeenSet() const { return m_stageVariableOverridesHasBeenSet; } /** *

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.

*/ inline void SetStageVariableOverrides(const Aws::Map& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides = value; } /** *

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.

*/ inline void SetStageVariableOverrides(Aws::Map&& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides = std::move(value); } /** *

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.

*/ inline AwsApiGatewayCanarySettings& WithStageVariableOverrides(const Aws::Map& value) { SetStageVariableOverrides(value); return *this;} /** *

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.

*/ inline AwsApiGatewayCanarySettings& WithStageVariableOverrides(Aws::Map&& value) { SetStageVariableOverrides(std::move(value)); return *this;} /** *

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.

*/ inline AwsApiGatewayCanarySettings& AddStageVariableOverrides(const Aws::String& key, const Aws::String& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(key, value); return *this; } /** *

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.

*/ inline AwsApiGatewayCanarySettings& AddStageVariableOverrides(Aws::String&& key, const Aws::String& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(std::move(key), value); return *this; } /** *

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.

*/ inline AwsApiGatewayCanarySettings& AddStageVariableOverrides(const Aws::String& key, Aws::String&& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(key, std::move(value)); return *this; } /** *

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.

*/ inline AwsApiGatewayCanarySettings& AddStageVariableOverrides(Aws::String&& key, Aws::String&& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(std::move(key), std::move(value)); return *this; } /** *

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.

*/ inline AwsApiGatewayCanarySettings& AddStageVariableOverrides(const char* key, Aws::String&& value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(key, std::move(value)); return *this; } /** *

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.

*/ inline AwsApiGatewayCanarySettings& AddStageVariableOverrides(Aws::String&& key, const char* value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(std::move(key), value); return *this; } /** *

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.

*/ inline AwsApiGatewayCanarySettings& AddStageVariableOverrides(const char* key, const char* value) { m_stageVariableOverridesHasBeenSet = true; m_stageVariableOverrides.emplace(key, value); return *this; } /** *

Indicates whether the canary deployment uses the stage cache.

*/ inline bool GetUseStageCache() const{ return m_useStageCache; } /** *

Indicates whether the canary deployment uses the stage cache.

*/ inline bool UseStageCacheHasBeenSet() const { return m_useStageCacheHasBeenSet; } /** *

Indicates whether the canary deployment uses the stage cache.

*/ inline void SetUseStageCache(bool value) { m_useStageCacheHasBeenSet = true; m_useStageCache = value; } /** *

Indicates whether the canary deployment uses the stage cache.

*/ inline AwsApiGatewayCanarySettings& 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 m_stageVariableOverrides; bool m_stageVariableOverridesHasBeenSet = false; bool m_useStageCache; bool m_useStageCacheHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws