AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
46
47
49
53 inline const ServiceDeploymentRollbackMonitorsStatus& GetStatus() const{ return m_status; }
54 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
55 inline void SetStatus(const ServiceDeploymentRollbackMonitorsStatus& value) { m_statusHasBeenSet = true; m_status = value; }
56 inline void SetStatus(ServiceDeploymentRollbackMonitorsStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
60
62
66 inline int GetFailureCount() const{ return m_failureCount; }
67 inline bool FailureCountHasBeenSet() const { return m_failureCountHasBeenSet; }
68 inline void SetFailureCount(int value) { m_failureCountHasBeenSet = true; m_failureCount = value; }
69 inline ServiceDeploymentCircuitBreaker& WithFailureCount(int value) { SetFailureCount(value); return *this;}
71
73
81 inline int GetThreshold() const{ return m_threshold; }
82 inline bool ThresholdHasBeenSet() const { return m_thresholdHasBeenSet; }
83 inline void SetThreshold(int value) { m_thresholdHasBeenSet = true; m_threshold = value; }
84 inline ServiceDeploymentCircuitBreaker& WithThreshold(int value) { SetThreshold(value); return *this;}
86 private:
87
89 bool m_statusHasBeenSet = false;
90
91 int m_failureCount;
92 bool m_failureCountHasBeenSet = false;
93
94 int m_threshold;
95 bool m_thresholdHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace ECS
100} // namespace Aws
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API ServiceDeploymentCircuitBreaker & operator=(Aws::Utils::Json::JsonView jsonValue)
const ServiceDeploymentRollbackMonitorsStatus & GetStatus() const
void SetStatus(const ServiceDeploymentRollbackMonitorsStatus &value)
ServiceDeploymentCircuitBreaker & WithStatus(const ServiceDeploymentRollbackMonitorsStatus &value)
ServiceDeploymentCircuitBreaker & WithFailureCount(int value)
AWS_ECS_API ServiceDeploymentCircuitBreaker(Aws::Utils::Json::JsonView jsonValue)
ServiceDeploymentCircuitBreaker & WithStatus(ServiceDeploymentRollbackMonitorsStatus &&value)
void SetStatus(ServiceDeploymentRollbackMonitorsStatus &&value)
ServiceDeploymentCircuitBreaker & WithThreshold(int value)
Aws::Utils::Json::JsonValue JsonValue