/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace AppConfig { namespace Model { class DeploymentStrategy { public: AWS_APPCONFIG_API DeploymentStrategy(); AWS_APPCONFIG_API DeploymentStrategy(Aws::Utils::Json::JsonView jsonValue); AWS_APPCONFIG_API DeploymentStrategy& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The deployment strategy ID.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The deployment strategy ID.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The deployment strategy ID.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The deployment strategy ID.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The deployment strategy ID.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The deployment strategy ID.

*/ inline DeploymentStrategy& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The deployment strategy ID.

*/ inline DeploymentStrategy& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The deployment strategy ID.

*/ inline DeploymentStrategy& WithId(const char* value) { SetId(value); return *this;} /** *

The name of the deployment strategy.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the deployment strategy.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the deployment strategy.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the deployment strategy.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the deployment strategy.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the deployment strategy.

*/ inline DeploymentStrategy& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the deployment strategy.

*/ inline DeploymentStrategy& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the deployment strategy.

*/ inline DeploymentStrategy& WithName(const char* value) { SetName(value); return *this;} /** *

The description of the deployment strategy.

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

The description of the deployment strategy.

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

The description of the deployment strategy.

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

The description of the deployment strategy.

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

The description of the deployment strategy.

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

The description of the deployment strategy.

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

The description of the deployment strategy.

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

The description of the deployment strategy.

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

Total amount of time the deployment lasted.

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

Total amount of time the deployment lasted.

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

Total amount of time the deployment lasted.

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

Total amount of time the deployment lasted.

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

The algorithm used to define how percentage grew over time.

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

The algorithm used to define how percentage grew over time.

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

The algorithm used to define how percentage grew over time.

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

The algorithm used to define how percentage grew over time.

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

The algorithm used to define how percentage grew over time.

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

The algorithm used to define how percentage grew over time.

*/ inline DeploymentStrategy& WithGrowthType(GrowthType&& value) { SetGrowthType(std::move(value)); return *this;} /** *

The percentage of targets that received a deployed configuration during each * interval.

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

The percentage of targets that received a deployed configuration during each * interval.

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

The percentage of targets that received a deployed configuration during each * interval.

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

The percentage of targets that received a deployed configuration during each * interval.

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

The amount of time that AppConfig monitored for alarms before considering the * deployment to be complete and no longer eligible for automatic rollback.

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

The amount of time that AppConfig monitored for alarms before considering the * deployment to be complete and no longer eligible for automatic rollback.

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

The amount of time that AppConfig monitored for alarms before considering the * deployment to be complete and no longer eligible for automatic rollback.

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

The amount of time that AppConfig monitored for alarms before considering the * deployment to be complete and no longer eligible for automatic rollback.

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

Save the deployment strategy to a Systems Manager (SSM) document.

*/ inline const ReplicateTo& GetReplicateTo() const{ return m_replicateTo; } /** *

Save the deployment strategy to a Systems Manager (SSM) document.

*/ inline bool ReplicateToHasBeenSet() const { return m_replicateToHasBeenSet; } /** *

Save the deployment strategy to a Systems Manager (SSM) document.

*/ inline void SetReplicateTo(const ReplicateTo& value) { m_replicateToHasBeenSet = true; m_replicateTo = value; } /** *

Save the deployment strategy to a Systems Manager (SSM) document.

*/ inline void SetReplicateTo(ReplicateTo&& value) { m_replicateToHasBeenSet = true; m_replicateTo = std::move(value); } /** *

Save the deployment strategy to a Systems Manager (SSM) document.

*/ inline DeploymentStrategy& WithReplicateTo(const ReplicateTo& value) { SetReplicateTo(value); return *this;} /** *

Save the deployment strategy to a Systems Manager (SSM) document.

*/ inline DeploymentStrategy& WithReplicateTo(ReplicateTo&& value) { SetReplicateTo(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; } inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); } inline DeploymentStrategy& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DeploymentStrategy& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DeploymentStrategy& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; int m_deploymentDurationInMinutes; bool m_deploymentDurationInMinutesHasBeenSet = false; GrowthType m_growthType; bool m_growthTypeHasBeenSet = false; double m_growthFactor; bool m_growthFactorHasBeenSet = false; int m_finalBakeTimeInMinutes; bool m_finalBakeTimeInMinutesHasBeenSet = false; ReplicateTo m_replicateTo; bool m_replicateToHasBeenSet = false; Aws::String m_requestId; bool m_requestIdHasBeenSet = false; }; } // namespace Model } // namespace AppConfig } // namespace Aws