AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
DaemonCircuitBreaker.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/model/DaemonDeploymentRollbackMonitorsStatus.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
29 public:
30 AWS_ECS_API DaemonCircuitBreaker() = default;
34
36
40 inline int GetFailureCount() const { return m_failureCount; }
41 inline bool FailureCountHasBeenSet() const { return m_failureCountHasBeenSet; }
42 inline void SetFailureCount(int value) {
43 m_failureCountHasBeenSet = true;
44 m_failureCount = value;
45 }
47 SetFailureCount(value);
48 return *this;
49 }
51
53
57 inline DaemonDeploymentRollbackMonitorsStatus GetStatus() const { return m_status; }
58 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
60 m_statusHasBeenSet = true;
61 m_status = value;
62 }
64 SetStatus(value);
65 return *this;
66 }
68
70
73 inline int GetThreshold() const { return m_threshold; }
74 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
75 inline void SetThreshold(int value) {
76 m_thresholdHasBeenSet = true;
77 m_threshold = value;
78 }
80 SetThreshold(value);
81 return *this;
82 }
84 private:
85 int m_failureCount{0};
86
88
89 int m_threshold{0};
90 bool m_failureCountHasBeenSet = false;
91 bool m_statusHasBeenSet = false;
92 bool m_thresholdHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace ECS
97} // namespace Aws
AWS_ECS_API DaemonCircuitBreaker(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API DaemonCircuitBreaker()=default
DaemonCircuitBreaker & WithFailureCount(int value)
DaemonDeploymentRollbackMonitorsStatus GetStatus() const
DaemonCircuitBreaker & WithThreshold(int value)
DaemonCircuitBreaker & WithStatus(DaemonDeploymentRollbackMonitorsStatus value)
AWS_ECS_API DaemonCircuitBreaker & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(DaemonDeploymentRollbackMonitorsStatus value)
Aws::Utils::Json::JsonValue JsonValue