/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace AppConfig { namespace Model { /** */ class AWS_APPCONFIG_API UpdateDeploymentStrategyRequest : public AppConfigRequest { public: UpdateDeploymentStrategyRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateDeploymentStrategy"; } Aws::String SerializePayload() const override; /** *

The deployment strategy ID.

*/ inline const Aws::String& GetDeploymentStrategyId() const{ return m_deploymentStrategyId; } /** *

The deployment strategy ID.

*/ inline bool DeploymentStrategyIdHasBeenSet() const { return m_deploymentStrategyIdHasBeenSet; } /** *

The deployment strategy ID.

*/ inline void SetDeploymentStrategyId(const Aws::String& value) { m_deploymentStrategyIdHasBeenSet = true; m_deploymentStrategyId = value; } /** *

The deployment strategy ID.

*/ inline void SetDeploymentStrategyId(Aws::String&& value) { m_deploymentStrategyIdHasBeenSet = true; m_deploymentStrategyId = std::move(value); } /** *

The deployment strategy ID.

*/ inline void SetDeploymentStrategyId(const char* value) { m_deploymentStrategyIdHasBeenSet = true; m_deploymentStrategyId.assign(value); } /** *

The deployment strategy ID.

*/ inline UpdateDeploymentStrategyRequest& WithDeploymentStrategyId(const Aws::String& value) { SetDeploymentStrategyId(value); return *this;} /** *

The deployment strategy ID.

*/ inline UpdateDeploymentStrategyRequest& WithDeploymentStrategyId(Aws::String&& value) { SetDeploymentStrategyId(std::move(value)); return *this;} /** *

The deployment strategy ID.

*/ inline UpdateDeploymentStrategyRequest& WithDeploymentStrategyId(const char* value) { SetDeploymentStrategyId(value); return *this;} /** *

A description of the deployment strategy.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description of the deployment strategy.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description of the deployment strategy.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description of the deployment strategy.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description of the deployment strategy.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description of the deployment strategy.

*/ inline UpdateDeploymentStrategyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of the deployment strategy.

*/ inline UpdateDeploymentStrategyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description of the deployment strategy.

*/ inline UpdateDeploymentStrategyRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

Total amount of time for a deployment to last.

*/ inline int GetDeploymentDurationInMinutes() const{ return m_deploymentDurationInMinutes; } /** *

Total amount of time for a deployment to last.

*/ inline bool DeploymentDurationInMinutesHasBeenSet() const { return m_deploymentDurationInMinutesHasBeenSet; } /** *

Total amount of time for a deployment to last.

*/ inline void SetDeploymentDurationInMinutes(int value) { m_deploymentDurationInMinutesHasBeenSet = true; m_deploymentDurationInMinutes = value; } /** *

Total amount of time for a deployment to last.

*/ inline UpdateDeploymentStrategyRequest& WithDeploymentDurationInMinutes(int value) { SetDeploymentDurationInMinutes(value); return *this;} /** *

The amount of time AppConfig monitors for alarms before considering the * deployment to be complete and no longer eligible for automatic roll back.

*/ inline int GetFinalBakeTimeInMinutes() const{ return m_finalBakeTimeInMinutes; } /** *

The amount of time AppConfig monitors for alarms before considering the * deployment to be complete and no longer eligible for automatic roll back.

*/ inline bool FinalBakeTimeInMinutesHasBeenSet() const { return m_finalBakeTimeInMinutesHasBeenSet; } /** *

The amount of time AppConfig monitors for alarms before considering the * deployment to be complete and no longer eligible for automatic roll back.

*/ inline void SetFinalBakeTimeInMinutes(int value) { m_finalBakeTimeInMinutesHasBeenSet = true; m_finalBakeTimeInMinutes = value; } /** *

The amount of time AppConfig monitors for alarms before considering the * deployment to be complete and no longer eligible for automatic roll back.

*/ inline UpdateDeploymentStrategyRequest& WithFinalBakeTimeInMinutes(int value) { SetFinalBakeTimeInMinutes(value); return *this;} /** *

The percentage of targets to receive a deployed configuration during each * interval.

*/ inline double GetGrowthFactor() const{ return m_growthFactor; } /** *

The percentage of targets to receive a deployed configuration during each * interval.

*/ inline bool GrowthFactorHasBeenSet() const { return m_growthFactorHasBeenSet; } /** *

The percentage of targets to receive a deployed configuration during each * interval.

*/ inline void SetGrowthFactor(double value) { m_growthFactorHasBeenSet = true; m_growthFactor = value; } /** *

The percentage of targets to receive a deployed configuration during each * interval.

*/ inline UpdateDeploymentStrategyRequest& WithGrowthFactor(double value) { SetGrowthFactor(value); return *this;} /** *

The algorithm used to define how percentage grows over time. AWS AppConfig * supports the following growth types:

Linear: For this type, * AppConfig processes the deployment by increments of the growth factor evenly * distributed over the deployment time. For example, a linear deployment that uses * a growth factor of 20 initially makes the configuration available to 20 percent * of the targets. After 1/5th of the deployment time has passed, the system * updates the percentage to 40 percent. This continues until 100% of the targets * are set to receive the deployed configuration.

Exponential: For * this type, AppConfig processes the deployment exponentially using the following * formula: G*(2^N). In this formula, G is the growth * factor specified by the user and N is the number of steps until the * configuration is deployed to all targets. For example, if you specify a growth * factor of 2, then the system rolls out the configuration as follows:

* 2*(2^0)

2*(2^1)

2*(2^2) *

Expressed numerically, the deployment rolls out as follows: 2% of the * targets, 4% of the targets, 8% of the targets, and continues until the * configuration has been deployed to all targets.

*/ inline const GrowthType& GetGrowthType() const{ return m_growthType; } /** *

The algorithm used to define how percentage grows over time. AWS AppConfig * supports the following growth types:

Linear: For this type, * AppConfig processes the deployment by increments of the growth factor evenly * distributed over the deployment time. For example, a linear deployment that uses * a growth factor of 20 initially makes the configuration available to 20 percent * of the targets. After 1/5th of the deployment time has passed, the system * updates the percentage to 40 percent. This continues until 100% of the targets * are set to receive the deployed configuration.

Exponential: For * this type, AppConfig processes the deployment exponentially using the following * formula: G*(2^N). In this formula, G is the growth * factor specified by the user and N is the number of steps until the * configuration is deployed to all targets. For example, if you specify a growth * factor of 2, then the system rolls out the configuration as follows:

* 2*(2^0)

2*(2^1)

2*(2^2) *

Expressed numerically, the deployment rolls out as follows: 2% of the * targets, 4% of the targets, 8% of the targets, and continues until the * configuration has been deployed to all targets.

*/ inline bool GrowthTypeHasBeenSet() const { return m_growthTypeHasBeenSet; } /** *

The algorithm used to define how percentage grows over time. AWS AppConfig * supports the following growth types:

Linear: For this type, * AppConfig processes the deployment by increments of the growth factor evenly * distributed over the deployment time. For example, a linear deployment that uses * a growth factor of 20 initially makes the configuration available to 20 percent * of the targets. After 1/5th of the deployment time has passed, the system * updates the percentage to 40 percent. This continues until 100% of the targets * are set to receive the deployed configuration.

Exponential: For * this type, AppConfig processes the deployment exponentially using the following * formula: G*(2^N). In this formula, G is the growth * factor specified by the user and N is the number of steps until the * configuration is deployed to all targets. For example, if you specify a growth * factor of 2, then the system rolls out the configuration as follows:

* 2*(2^0)

2*(2^1)

2*(2^2) *

Expressed numerically, the deployment rolls out as follows: 2% of the * targets, 4% of the targets, 8% of the targets, and continues until the * configuration has been deployed to all targets.

*/ inline void SetGrowthType(const GrowthType& value) { m_growthTypeHasBeenSet = true; m_growthType = value; } /** *

The algorithm used to define how percentage grows over time. AWS AppConfig * supports the following growth types:

Linear: For this type, * AppConfig processes the deployment by increments of the growth factor evenly * distributed over the deployment time. For example, a linear deployment that uses * a growth factor of 20 initially makes the configuration available to 20 percent * of the targets. After 1/5th of the deployment time has passed, the system * updates the percentage to 40 percent. This continues until 100% of the targets * are set to receive the deployed configuration.

Exponential: For * this type, AppConfig processes the deployment exponentially using the following * formula: G*(2^N). In this formula, G is the growth * factor specified by the user and N is the number of steps until the * configuration is deployed to all targets. For example, if you specify a growth * factor of 2, then the system rolls out the configuration as follows:

* 2*(2^0)

2*(2^1)

2*(2^2) *

Expressed numerically, the deployment rolls out as follows: 2% of the * targets, 4% of the targets, 8% of the targets, and continues until the * configuration has been deployed to all targets.

*/ inline void SetGrowthType(GrowthType&& value) { m_growthTypeHasBeenSet = true; m_growthType = std::move(value); } /** *

The algorithm used to define how percentage grows over time. AWS AppConfig * supports the following growth types:

Linear: For this type, * AppConfig processes the deployment by increments of the growth factor evenly * distributed over the deployment time. For example, a linear deployment that uses * a growth factor of 20 initially makes the configuration available to 20 percent * of the targets. After 1/5th of the deployment time has passed, the system * updates the percentage to 40 percent. This continues until 100% of the targets * are set to receive the deployed configuration.

Exponential: For * this type, AppConfig processes the deployment exponentially using the following * formula: G*(2^N). In this formula, G is the growth * factor specified by the user and N is the number of steps until the * configuration is deployed to all targets. For example, if you specify a growth * factor of 2, then the system rolls out the configuration as follows:

* 2*(2^0)

2*(2^1)

2*(2^2) *

Expressed numerically, the deployment rolls out as follows: 2% of the * targets, 4% of the targets, 8% of the targets, and continues until the * configuration has been deployed to all targets.

*/ inline UpdateDeploymentStrategyRequest& WithGrowthType(const GrowthType& value) { SetGrowthType(value); return *this;} /** *

The algorithm used to define how percentage grows over time. AWS AppConfig * supports the following growth types:

Linear: For this type, * AppConfig processes the deployment by increments of the growth factor evenly * distributed over the deployment time. For example, a linear deployment that uses * a growth factor of 20 initially makes the configuration available to 20 percent * of the targets. After 1/5th of the deployment time has passed, the system * updates the percentage to 40 percent. This continues until 100% of the targets * are set to receive the deployed configuration.

Exponential: For * this type, AppConfig processes the deployment exponentially using the following * formula: G*(2^N). In this formula, G is the growth * factor specified by the user and N is the number of steps until the * configuration is deployed to all targets. For example, if you specify a growth * factor of 2, then the system rolls out the configuration as follows:

* 2*(2^0)

2*(2^1)

2*(2^2) *

Expressed numerically, the deployment rolls out as follows: 2% of the * targets, 4% of the targets, 8% of the targets, and continues until the * configuration has been deployed to all targets.

*/ inline UpdateDeploymentStrategyRequest& WithGrowthType(GrowthType&& value) { SetGrowthType(std::move(value)); return *this;} private: Aws::String m_deploymentStrategyId; bool m_deploymentStrategyIdHasBeenSet; Aws::String m_description; bool m_descriptionHasBeenSet; int m_deploymentDurationInMinutes; bool m_deploymentDurationInMinutesHasBeenSet; int m_finalBakeTimeInMinutes; bool m_finalBakeTimeInMinutesHasBeenSet; double m_growthFactor; bool m_growthFactorHasBeenSet; GrowthType m_growthType; bool m_growthTypeHasBeenSet; }; } // namespace Model } // namespace AppConfig } // namespace Aws