AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ServiceDeploymentCircuitBreaker.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/model/ServiceDeploymentRollbackMonitorsStatus.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ECS
22{
23namespace Model
24{
25
40 {
41 public:
42 AWS_ECS_API ServiceDeploymentCircuitBreaker() = default;
46
47
49
53 inline ServiceDeploymentRollbackMonitorsStatus GetStatus() const { return m_status; }
54 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
55 inline void SetStatus(ServiceDeploymentRollbackMonitorsStatus value) { m_statusHasBeenSet = true; m_status = value; }
58
60
64 inline int GetFailureCount() const { return m_failureCount; }
65 inline bool FailureCountHasBeenSet() const { return m_failureCountHasBeenSet; }
66 inline void SetFailureCount(int value) { m_failureCountHasBeenSet = true; m_failureCount = value; }
67 inline ServiceDeploymentCircuitBreaker& WithFailureCount(int value) { SetFailureCount(value); return *this;}
69
71
79 inline int GetThreshold() const { return m_threshold; }
80 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
81 inline void SetThreshold(int value) { m_thresholdHasBeenSet = true; m_threshold = value; }
82 inline ServiceDeploymentCircuitBreaker& WithThreshold(int value) { SetThreshold(value); return *this;}
84 private:
85
87 bool m_statusHasBeenSet = false;
88
89 int m_failureCount{0};
90 bool m_failureCountHasBeenSet = false;
91
92 int m_threshold{0};
93 bool m_thresholdHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace ECS
98} // namespace Aws
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API ServiceDeploymentCircuitBreaker & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceDeploymentRollbackMonitorsStatus GetStatus() const
ServiceDeploymentCircuitBreaker & WithFailureCount(int value)
void SetStatus(ServiceDeploymentRollbackMonitorsStatus value)
ServiceDeploymentCircuitBreaker & WithStatus(ServiceDeploymentRollbackMonitorsStatus value)
AWS_ECS_API ServiceDeploymentCircuitBreaker(Aws::Utils::Json::JsonView jsonValue)
ServiceDeploymentCircuitBreaker & WithThreshold(int value)
Aws::Utils::Json::JsonValue JsonValue