AWS SDK for C++

AWS SDK for C++ Version 1.11.915

Loading...
Searching...
No Matches
GatewayConnectorHealthCheck.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecs/ECS_EXPORTS.h>
9#include <aws/ecs/model/GatewayConnectorHealthCheckMatcher.h>
10#include <aws/ecs/model/GatewayConnectorHealthCheckProtocol.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ECS {
22namespace Model {
23
31 public:
32 AWS_ECS_API GatewayConnectorHealthCheck() = default;
36
38
44 inline GatewayConnectorHealthCheckProtocol GetHealthCheckProtocol() const { return m_healthCheckProtocol; }
45 inline bool HealthCheckProtocolHasBeenSet() const { return m_healthCheckProtocolHasBeenSet; }
47 m_healthCheckProtocolHasBeenSet = true;
48 m_healthCheckProtocol = value;
49 }
52 return *this;
53 }
55
57
60 inline int GetHealthCheckPort() const { return m_healthCheckPort; }
61 inline bool HealthCheckPortHasBeenSet() const { return m_healthCheckPortHasBeenSet; }
62 inline void SetHealthCheckPort(int value) {
63 m_healthCheckPortHasBeenSet = true;
64 m_healthCheckPort = value;
65 }
67 SetHealthCheckPort(value);
68 return *this;
69 }
71
73
76 inline const Aws::String& GetHealthCheckPath() const { return m_healthCheckPath; }
77 inline bool HealthCheckPathHasBeenSet() const { return m_healthCheckPathHasBeenSet; }
78 template <typename HealthCheckPathT = Aws::String>
79 void SetHealthCheckPath(HealthCheckPathT&& value) {
80 m_healthCheckPathHasBeenSet = true;
81 m_healthCheckPath = std::forward<HealthCheckPathT>(value);
82 }
83 template <typename HealthCheckPathT = Aws::String>
85 SetHealthCheckPath(std::forward<HealthCheckPathT>(value));
86 return *this;
87 }
89
91
95 inline int GetHealthCheckTimeoutSeconds() const { return m_healthCheckTimeoutSeconds; }
96 inline bool HealthCheckTimeoutSecondsHasBeenSet() const { return m_healthCheckTimeoutSecondsHasBeenSet; }
97 inline void SetHealthCheckTimeoutSeconds(int value) {
98 m_healthCheckTimeoutSecondsHasBeenSet = true;
99 m_healthCheckTimeoutSeconds = value;
100 }
103 return *this;
104 }
106
108
112 inline int GetHealthCheckIntervalSeconds() const { return m_healthCheckIntervalSeconds; }
113 inline bool HealthCheckIntervalSecondsHasBeenSet() const { return m_healthCheckIntervalSecondsHasBeenSet; }
114 inline void SetHealthCheckIntervalSeconds(int value) {
115 m_healthCheckIntervalSecondsHasBeenSet = true;
116 m_healthCheckIntervalSeconds = value;
117 }
120 return *this;
121 }
123
125
129 inline int GetHealthyThresholdCount() const { return m_healthyThresholdCount; }
130 inline bool HealthyThresholdCountHasBeenSet() const { return m_healthyThresholdCountHasBeenSet; }
131 inline void SetHealthyThresholdCount(int value) {
132 m_healthyThresholdCountHasBeenSet = true;
133 m_healthyThresholdCount = value;
134 }
137 return *this;
138 }
140
142
146 inline int GetUnhealthyThresholdCount() const { return m_unhealthyThresholdCount; }
147 inline bool UnhealthyThresholdCountHasBeenSet() const { return m_unhealthyThresholdCountHasBeenSet; }
148 inline void SetUnhealthyThresholdCount(int value) {
149 m_unhealthyThresholdCountHasBeenSet = true;
150 m_unhealthyThresholdCount = value;
151 }
154 return *this;
155 }
157
159
163 inline const GatewayConnectorHealthCheckMatcher& GetMatcher() const { return m_matcher; }
164 inline bool MatcherHasBeenSet() const { return m_matcherHasBeenSet; }
165 template <typename MatcherT = GatewayConnectorHealthCheckMatcher>
166 void SetMatcher(MatcherT&& value) {
167 m_matcherHasBeenSet = true;
168 m_matcher = std::forward<MatcherT>(value);
169 }
170 template <typename MatcherT = GatewayConnectorHealthCheckMatcher>
172 SetMatcher(std::forward<MatcherT>(value));
173 return *this;
174 }
176 private:
178
179 int m_healthCheckPort{0};
180
181 Aws::String m_healthCheckPath;
182
183 int m_healthCheckTimeoutSeconds{0};
184
185 int m_healthCheckIntervalSeconds{0};
186
187 int m_healthyThresholdCount{0};
188
189 int m_unhealthyThresholdCount{0};
190
191 GatewayConnectorHealthCheckMatcher m_matcher;
192 bool m_healthCheckProtocolHasBeenSet = false;
193 bool m_healthCheckPortHasBeenSet = false;
194 bool m_healthCheckPathHasBeenSet = false;
195 bool m_healthCheckTimeoutSecondsHasBeenSet = false;
196 bool m_healthCheckIntervalSecondsHasBeenSet = false;
197 bool m_healthyThresholdCountHasBeenSet = false;
198 bool m_unhealthyThresholdCountHasBeenSet = false;
199 bool m_matcherHasBeenSet = false;
200};
201
202} // namespace Model
203} // namespace ECS
204} // namespace Aws
AWS_ECS_API GatewayConnectorHealthCheck()=default
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
GatewayConnectorHealthCheck & WithHealthCheckProtocol(GatewayConnectorHealthCheckProtocol value)
GatewayConnectorHealthCheckProtocol GetHealthCheckProtocol() const
GatewayConnectorHealthCheck & WithHealthCheckTimeoutSeconds(int value)
AWS_ECS_API GatewayConnectorHealthCheck & operator=(Aws::Utils::Json::JsonView jsonValue)
GatewayConnectorHealthCheck & WithHealthCheckPath(HealthCheckPathT &&value)
AWS_ECS_API GatewayConnectorHealthCheck(Aws::Utils::Json::JsonView jsonValue)
GatewayConnectorHealthCheck & WithMatcher(MatcherT &&value)
void SetHealthCheckProtocol(GatewayConnectorHealthCheckProtocol value)
GatewayConnectorHealthCheck & WithHealthyThresholdCount(int value)
GatewayConnectorHealthCheck & WithHealthCheckIntervalSeconds(int value)
GatewayConnectorHealthCheck & WithUnhealthyThresholdCount(int value)
GatewayConnectorHealthCheck & WithHealthCheckPort(int value)
const GatewayConnectorHealthCheckMatcher & GetMatcher() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue