AWS SDK for C++

AWS SDK for C++ Version 1.11.891

Loading...
Searching...
No Matches
DeploymentEarlySuccessCriteria.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/model/ServiceRevisionCleanup.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
33 public:
34 AWS_ECS_API DeploymentEarlySuccessCriteria() = default;
38
40
50 inline bool GetEnable() const { return m_enable; }
51 inline bool EnableHasBeenSet() const { return m_enableHasBeenSet; }
52 inline void SetEnable(bool value) {
53 m_enableHasBeenSet = true;
54 m_enable = value;
55 }
57 SetEnable(value);
58 return *this;
59 }
61
63
73 inline int GetHealthyPercent() const { return m_healthyPercent; }
74 inline bool HealthyPercentHasBeenSet() const { return m_healthyPercentHasBeenSet; }
75 inline void SetHealthyPercent(int value) {
76 m_healthyPercentHasBeenSet = true;
77 m_healthyPercent = value;
78 }
80 SetHealthyPercent(value);
81 return *this;
82 }
84
86
94 inline ServiceRevisionCleanup GetSourceServiceRevisionCleanup() const { return m_sourceServiceRevisionCleanup; }
95 inline bool SourceServiceRevisionCleanupHasBeenSet() const { return m_sourceServiceRevisionCleanupHasBeenSet; }
97 m_sourceServiceRevisionCleanupHasBeenSet = true;
98 m_sourceServiceRevisionCleanup = value;
99 }
102 return *this;
103 }
105 private:
106 bool m_enable{false};
107
108 int m_healthyPercent{0};
109
110 ServiceRevisionCleanup m_sourceServiceRevisionCleanup{ServiceRevisionCleanup::NOT_SET};
111 bool m_enableHasBeenSet = false;
112 bool m_healthyPercentHasBeenSet = false;
113 bool m_sourceServiceRevisionCleanupHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace ECS
118} // namespace Aws
AWS_ECS_API DeploymentEarlySuccessCriteria & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSourceServiceRevisionCleanup(ServiceRevisionCleanup value)
AWS_ECS_API DeploymentEarlySuccessCriteria(Aws::Utils::Json::JsonView jsonValue)
DeploymentEarlySuccessCriteria & WithHealthyPercent(int value)
DeploymentEarlySuccessCriteria & WithSourceServiceRevisionCleanup(ServiceRevisionCleanup value)
DeploymentEarlySuccessCriteria & WithEnable(bool value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue