AWS SDK for C++  1.9.156
AWS SDK for C++
DeploymentCircuitBreaker.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
8 
9 namespace Aws
10 {
11 namespace Utils
12 {
13 namespace Json
14 {
15  class JsonValue;
16  class JsonView;
17 } // namespace Json
18 } // namespace Utils
19 namespace ECS
20 {
21 namespace Model
22 {
23 
40  {
41  public:
46 
47 
52  inline bool GetEnable() const{ return m_enable; }
53 
58  inline bool EnableHasBeenSet() const { return m_enableHasBeenSet; }
59 
64  inline void SetEnable(bool value) { m_enableHasBeenSet = true; m_enable = value; }
65 
70  inline DeploymentCircuitBreaker& WithEnable(bool value) { SetEnable(value); return *this;}
71 
72 
78  inline bool GetRollback() const{ return m_rollback; }
79 
85  inline bool RollbackHasBeenSet() const { return m_rollbackHasBeenSet; }
86 
92  inline void SetRollback(bool value) { m_rollbackHasBeenSet = true; m_rollback = value; }
93 
99  inline DeploymentCircuitBreaker& WithRollback(bool value) { SetRollback(value); return *this;}
100 
101  private:
102 
103  bool m_enable;
104  bool m_enableHasBeenSet;
105 
106  bool m_rollback;
107  bool m_rollbackHasBeenSet;
108  };
109 
110 } // namespace Model
111 } // namespace ECS
112 } // namespace Aws
Aws::ECS::Model::DeploymentCircuitBreaker::GetEnable
bool GetEnable() const
Definition: DeploymentCircuitBreaker.h:52
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::DeploymentCircuitBreaker::WithEnable
DeploymentCircuitBreaker & WithEnable(bool value)
Definition: DeploymentCircuitBreaker.h:70
Aws::ECS::Model::DeploymentCircuitBreaker::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECS::Model::DeploymentCircuitBreaker::WithRollback
DeploymentCircuitBreaker & WithRollback(bool value)
Definition: DeploymentCircuitBreaker.h:99
Aws::ECS::Model::DeploymentCircuitBreaker::DeploymentCircuitBreaker
DeploymentCircuitBreaker(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::DeploymentCircuitBreaker::RollbackHasBeenSet
bool RollbackHasBeenSet() const
Definition: DeploymentCircuitBreaker.h:85
Aws::ECS::Model::DeploymentCircuitBreaker::EnableHasBeenSet
bool EnableHasBeenSet() const
Definition: DeploymentCircuitBreaker.h:58
Aws::ECS::Model::DeploymentCircuitBreaker::SetRollback
void SetRollback(bool value)
Definition: DeploymentCircuitBreaker.h:92
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::DeploymentCircuitBreaker::GetRollback
bool GetRollback() const
Definition: DeploymentCircuitBreaker.h:78
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::DeploymentCircuitBreaker::DeploymentCircuitBreaker
DeploymentCircuitBreaker()
Aws::ECS::Model::DeploymentCircuitBreaker::operator=
DeploymentCircuitBreaker & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::DeploymentCircuitBreaker::SetEnable
void SetEnable(bool value)
Definition: DeploymentCircuitBreaker.h:64
ECS_EXPORTS.h