AWS SDK for C++

AWS SDK for C++ Version 1.11.757

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ECS {
20namespace Model {
21
36 public:
37 AWS_ECS_API ServiceDeploymentCircuitBreaker() = default;
41
43
47 inline ServiceDeploymentRollbackMonitorsStatus GetStatus() const { return m_status; }
48 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
50 m_statusHasBeenSet = true;
51 m_status = value;
52 }
54 SetStatus(value);
55 return *this;
56 }
58
60
64 inline int GetFailureCount() const { return m_failureCount; }
65 inline bool FailureCountHasBeenSet() const { return m_failureCountHasBeenSet; }
66 inline void SetFailureCount(int value) {
67 m_failureCountHasBeenSet = true;
68 m_failureCount = value;
69 }
71 SetFailureCount(value);
72 return *this;
73 }
75
77
85 inline int GetThreshold() const { return m_threshold; }
86 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
87 inline void SetThreshold(int value) {
88 m_thresholdHasBeenSet = true;
89 m_threshold = value;
90 }
92 SetThreshold(value);
93 return *this;
94 }
96 private:
98
99 int m_failureCount{0};
100
101 int m_threshold{0};
102 bool m_statusHasBeenSet = false;
103 bool m_failureCountHasBeenSet = false;
104 bool m_thresholdHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace ECS
109} // 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