AWS SDK for C++

AWS SDK for C++ Version 1.11.932

Loading...
Searching...
No Matches
HealthCheckConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/rtbfabric/RTBFabric_EXPORTS.h>
9#include <aws/rtbfabric/model/Protocol.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace RTBFabric {
21namespace Model {
22
31 public:
32 AWS_RTBFABRIC_API HealthCheckConfig() = default;
33 AWS_RTBFABRIC_API HealthCheckConfig(Aws::Utils::Json::JsonView jsonValue);
35 AWS_RTBFABRIC_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline int GetPort() const { return m_port; }
42 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
43 inline void SetPort(int value) {
44 m_portHasBeenSet = true;
45 m_port = value;
46 }
47 inline HealthCheckConfig& WithPort(int value) {
48 SetPort(value);
49 return *this;
50 }
52
54
58 inline const Aws::String& GetPath() const { return m_path; }
59 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
60 template <typename PathT = Aws::String>
61 void SetPath(PathT&& value) {
62 m_pathHasBeenSet = true;
63 m_path = std::forward<PathT>(value);
64 }
65 template <typename PathT = Aws::String>
66 HealthCheckConfig& WithPath(PathT&& value) {
67 SetPath(std::forward<PathT>(value));
68 return *this;
69 }
71
73
76 inline Protocol GetProtocol() const { return m_protocol; }
77 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
78 inline void SetProtocol(Protocol value) {
79 m_protocolHasBeenSet = true;
80 m_protocol = value;
81 }
83 SetProtocol(value);
84 return *this;
85 }
87
89
93 inline int GetTimeoutMs() const { return m_timeoutMs; }
94 inline bool TimeoutMsHasBeenSet() const { return m_timeoutMsHasBeenSet; }
95 inline void SetTimeoutMs(int value) {
96 m_timeoutMsHasBeenSet = true;
97 m_timeoutMs = value;
98 }
99 inline HealthCheckConfig& WithTimeoutMs(int value) {
100 SetTimeoutMs(value);
101 return *this;
102 }
104
106
110 inline int GetIntervalSeconds() const { return m_intervalSeconds; }
111 inline bool IntervalSecondsHasBeenSet() const { return m_intervalSecondsHasBeenSet; }
112 inline void SetIntervalSeconds(int value) {
113 m_intervalSecondsHasBeenSet = true;
114 m_intervalSeconds = value;
115 }
117 SetIntervalSeconds(value);
118 return *this;
119 }
121
123
129 inline const Aws::String& GetStatusCodeMatcher() const { return m_statusCodeMatcher; }
130 inline bool StatusCodeMatcherHasBeenSet() const { return m_statusCodeMatcherHasBeenSet; }
131 template <typename StatusCodeMatcherT = Aws::String>
132 void SetStatusCodeMatcher(StatusCodeMatcherT&& value) {
133 m_statusCodeMatcherHasBeenSet = true;
134 m_statusCodeMatcher = std::forward<StatusCodeMatcherT>(value);
135 }
136 template <typename StatusCodeMatcherT = Aws::String>
137 HealthCheckConfig& WithStatusCodeMatcher(StatusCodeMatcherT&& value) {
138 SetStatusCodeMatcher(std::forward<StatusCodeMatcherT>(value));
139 return *this;
140 }
142
144
148 inline int GetHealthyThresholdCount() const { return m_healthyThresholdCount; }
149 inline bool HealthyThresholdCountHasBeenSet() const { return m_healthyThresholdCountHasBeenSet; }
150 inline void SetHealthyThresholdCount(int value) {
151 m_healthyThresholdCountHasBeenSet = true;
152 m_healthyThresholdCount = value;
153 }
156 return *this;
157 }
159
161
165 inline int GetUnhealthyThresholdCount() const { return m_unhealthyThresholdCount; }
166 inline bool UnhealthyThresholdCountHasBeenSet() const { return m_unhealthyThresholdCountHasBeenSet; }
167 inline void SetUnhealthyThresholdCount(int value) {
168 m_unhealthyThresholdCountHasBeenSet = true;
169 m_unhealthyThresholdCount = value;
170 }
173 return *this;
174 }
176 private:
177 int m_port{0};
178
179 Aws::String m_path;
180
181 Protocol m_protocol{Protocol::NOT_SET};
182
183 int m_timeoutMs{0};
184
185 int m_intervalSeconds{0};
186
187 Aws::String m_statusCodeMatcher;
188
189 int m_healthyThresholdCount{0};
190
191 int m_unhealthyThresholdCount{0};
192 bool m_portHasBeenSet = false;
193 bool m_pathHasBeenSet = false;
194 bool m_protocolHasBeenSet = false;
195 bool m_timeoutMsHasBeenSet = false;
196 bool m_intervalSecondsHasBeenSet = false;
197 bool m_statusCodeMatcherHasBeenSet = false;
198 bool m_healthyThresholdCountHasBeenSet = false;
199 bool m_unhealthyThresholdCountHasBeenSet = false;
200};
201
202} // namespace Model
203} // namespace RTBFabric
204} // namespace Aws
HealthCheckConfig & WithPort(int value)
AWS_RTBFABRIC_API HealthCheckConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
HealthCheckConfig & WithPath(PathT &&value)
AWS_RTBFABRIC_API HealthCheckConfig(Aws::Utils::Json::JsonView jsonValue)
HealthCheckConfig & WithStatusCodeMatcher(StatusCodeMatcherT &&value)
void SetStatusCodeMatcher(StatusCodeMatcherT &&value)
HealthCheckConfig & WithTimeoutMs(int value)
HealthCheckConfig & WithIntervalSeconds(int value)
AWS_RTBFABRIC_API HealthCheckConfig()=default
AWS_RTBFABRIC_API Aws::Utils::Json::JsonValue Jsonize() const
HealthCheckConfig & WithHealthyThresholdCount(int value)
HealthCheckConfig & WithProtocol(Protocol value)
const Aws::String & GetStatusCodeMatcher() const
HealthCheckConfig & WithUnhealthyThresholdCount(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue