/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace AppConfig { namespace Model { class CreateDeploymentStrategyResult { public: AWS_APPCONFIG_API CreateDeploymentStrategyResult(); AWS_APPCONFIG_API CreateDeploymentStrategyResult(const Aws::AmazonWebServiceResult& result); AWS_APPCONFIG_API CreateDeploymentStrategyResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The deployment strategy ID.

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

The deployment strategy ID.

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

The deployment strategy ID.

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

The deployment strategy ID.

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

The deployment strategy ID.

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

The deployment strategy ID.

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

The deployment strategy ID.

*/ inline CreateDeploymentStrategyResult& 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 void SetName(const Aws::String& value) { m_name = value; } /** *

The name of the deployment strategy.

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

The name of the deployment strategy.

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

The name of the deployment strategy.

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

The name of the deployment strategy.

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

The name of the deployment strategy.

*/ inline CreateDeploymentStrategyResult& 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 void SetDescription(const Aws::String& value) { m_description = value; } /** *

The description of the deployment strategy.

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

The description of the deployment strategy.

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

The description of the deployment strategy.

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

The description of the deployment strategy.

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

The description of the deployment strategy.

*/ inline CreateDeploymentStrategyResult& 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 void SetDeploymentDurationInMinutes(int value) { m_deploymentDurationInMinutes = value; } /** *

Total amount of time the deployment lasted.

*/ inline CreateDeploymentStrategyResult& 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 void SetGrowthType(const GrowthType& value) { m_growthType = value; } /** *

The algorithm used to define how percentage grew over time.

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

The algorithm used to define how percentage grew over time.

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

The algorithm used to define how percentage grew over time.

*/ inline CreateDeploymentStrategyResult& 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 void SetGrowthFactor(double value) { m_growthFactor = value; } /** *

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

*/ inline CreateDeploymentStrategyResult& 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 void SetFinalBakeTimeInMinutes(int value) { 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 CreateDeploymentStrategyResult& 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 void SetReplicateTo(const ReplicateTo& value) { m_replicateTo = value; } /** *

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

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

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

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

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

*/ inline CreateDeploymentStrategyResult& WithReplicateTo(ReplicateTo&& value) { SetReplicateTo(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateDeploymentStrategyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateDeploymentStrategyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateDeploymentStrategyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_id; Aws::String m_name; Aws::String m_description; int m_deploymentDurationInMinutes; GrowthType m_growthType; double m_growthFactor; int m_finalBakeTimeInMinutes; ReplicateTo m_replicateTo; Aws::String m_requestId; }; } // namespace Model } // namespace AppConfig } // namespace Aws