AWS SDK for C++  1.9.156
AWS SDK for C++
DeploymentConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace ECS
22 {
23 namespace Model
24 {
25 
34  {
35  public:
40 
41 
52  inline const DeploymentCircuitBreaker& GetDeploymentCircuitBreaker() const{ return m_deploymentCircuitBreaker; }
53 
64  inline bool DeploymentCircuitBreakerHasBeenSet() const { return m_deploymentCircuitBreakerHasBeenSet; }
65 
76  inline void SetDeploymentCircuitBreaker(const DeploymentCircuitBreaker& value) { m_deploymentCircuitBreakerHasBeenSet = true; m_deploymentCircuitBreaker = value; }
77 
88  inline void SetDeploymentCircuitBreaker(DeploymentCircuitBreaker&& value) { m_deploymentCircuitBreakerHasBeenSet = true; m_deploymentCircuitBreaker = std::move(value); }
89 
100  inline DeploymentConfiguration& WithDeploymentCircuitBreaker(const DeploymentCircuitBreaker& value) { SetDeploymentCircuitBreaker(value); return *this;}
101 
112  inline DeploymentConfiguration& WithDeploymentCircuitBreaker(DeploymentCircuitBreaker&& value) { SetDeploymentCircuitBreaker(std::move(value)); return *this;}
113 
114 
136  inline int GetMaximumPercent() const{ return m_maximumPercent; }
137 
159  inline bool MaximumPercentHasBeenSet() const { return m_maximumPercentHasBeenSet; }
160 
182  inline void SetMaximumPercent(int value) { m_maximumPercentHasBeenSet = true; m_maximumPercent = value; }
183 
205  inline DeploymentConfiguration& WithMaximumPercent(int value) { SetMaximumPercent(value); return *this;}
206 
207 
232  inline int GetMinimumHealthyPercent() const{ return m_minimumHealthyPercent; }
233 
258  inline bool MinimumHealthyPercentHasBeenSet() const { return m_minimumHealthyPercentHasBeenSet; }
259 
284  inline void SetMinimumHealthyPercent(int value) { m_minimumHealthyPercentHasBeenSet = true; m_minimumHealthyPercent = value; }
285 
310  inline DeploymentConfiguration& WithMinimumHealthyPercent(int value) { SetMinimumHealthyPercent(value); return *this;}
311 
312  private:
313 
314  DeploymentCircuitBreaker m_deploymentCircuitBreaker;
315  bool m_deploymentCircuitBreakerHasBeenSet;
316 
317  int m_maximumPercent;
318  bool m_maximumPercentHasBeenSet;
319 
320  int m_minimumHealthyPercent;
321  bool m_minimumHealthyPercentHasBeenSet;
322  };
323 
324 } // namespace Model
325 } // namespace ECS
326 } // namespace Aws
Aws::ECS::Model::DeploymentConfiguration::GetDeploymentCircuitBreaker
const DeploymentCircuitBreaker & GetDeploymentCircuitBreaker() const
Definition: DeploymentConfiguration.h:52
Aws::ECS::Model::DeploymentConfiguration::GetMaximumPercent
int GetMaximumPercent() const
Definition: DeploymentConfiguration.h:136
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::DeploymentConfiguration::operator=
DeploymentConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::DeploymentConfiguration::SetDeploymentCircuitBreaker
void SetDeploymentCircuitBreaker(const DeploymentCircuitBreaker &value)
Definition: DeploymentConfiguration.h:76
Aws::ECS::Model::DeploymentConfiguration::DeploymentConfiguration
DeploymentConfiguration(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::DeploymentConfiguration::SetMinimumHealthyPercent
void SetMinimumHealthyPercent(int value)
Definition: DeploymentConfiguration.h:284
Aws::ECS::Model::DeploymentConfiguration::WithMinimumHealthyPercent
DeploymentConfiguration & WithMinimumHealthyPercent(int value)
Definition: DeploymentConfiguration.h:310
Aws::ECS::Model::DeploymentConfiguration::WithDeploymentCircuitBreaker
DeploymentConfiguration & WithDeploymentCircuitBreaker(DeploymentCircuitBreaker &&value)
Definition: DeploymentConfiguration.h:112
Aws::ECS::Model::DeploymentConfiguration::MinimumHealthyPercentHasBeenSet
bool MinimumHealthyPercentHasBeenSet() const
Definition: DeploymentConfiguration.h:258
Aws::ECS::Model::DeploymentConfiguration
Definition: DeploymentConfiguration.h:34
Aws::ECS::Model::DeploymentConfiguration::SetMaximumPercent
void SetMaximumPercent(int value)
Definition: DeploymentConfiguration.h:182
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::DeploymentConfiguration::GetMinimumHealthyPercent
int GetMinimumHealthyPercent() const
Definition: DeploymentConfiguration.h:232
DeploymentCircuitBreaker.h
Aws::ECS::Model::DeploymentConfiguration::SetDeploymentCircuitBreaker
void SetDeploymentCircuitBreaker(DeploymentCircuitBreaker &&value)
Definition: DeploymentConfiguration.h:88
Aws::ECS::Model::DeploymentConfiguration::DeploymentConfiguration
DeploymentConfiguration()
Aws::ECS::Model::DeploymentConfiguration::WithDeploymentCircuitBreaker
DeploymentConfiguration & WithDeploymentCircuitBreaker(const DeploymentCircuitBreaker &value)
Definition: DeploymentConfiguration.h:100
Aws::ECS::Model::DeploymentCircuitBreaker
Definition: DeploymentCircuitBreaker.h:40
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECS::Model::DeploymentConfiguration::MaximumPercentHasBeenSet
bool MaximumPercentHasBeenSet() const
Definition: DeploymentConfiguration.h:159
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::DeploymentConfiguration::WithMaximumPercent
DeploymentConfiguration & WithMaximumPercent(int value)
Definition: DeploymentConfiguration.h:205
Aws::ECS::Model::DeploymentConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
ECS_EXPORTS.h
Aws::ECS::Model::DeploymentConfiguration::DeploymentCircuitBreakerHasBeenSet
bool DeploymentCircuitBreakerHasBeenSet() const
Definition: DeploymentConfiguration.h:64