AWS SDK for C++  1.9.13
AWS SDK for C++
HealthCheckPolicy.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace AppMesh
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
46  inline int GetHealthyThreshold() const{ return m_healthyThreshold; }
47 
52  inline bool HealthyThresholdHasBeenSet() const { return m_healthyThresholdHasBeenSet; }
53 
58  inline void SetHealthyThreshold(int value) { m_healthyThresholdHasBeenSet = true; m_healthyThreshold = value; }
59 
64  inline HealthCheckPolicy& WithHealthyThreshold(int value) { SetHealthyThreshold(value); return *this;}
65 
66 
70  inline long long GetIntervalMillis() const{ return m_intervalMillis; }
71 
75  inline bool IntervalMillisHasBeenSet() const { return m_intervalMillisHasBeenSet; }
76 
80  inline void SetIntervalMillis(long long value) { m_intervalMillisHasBeenSet = true; m_intervalMillis = value; }
81 
85  inline HealthCheckPolicy& WithIntervalMillis(long long value) { SetIntervalMillis(value); return *this;}
86 
87 
93  inline const Aws::String& GetPath() const{ return m_path; }
94 
100  inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
101 
107  inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
108 
114  inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
115 
121  inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
122 
128  inline HealthCheckPolicy& WithPath(const Aws::String& value) { SetPath(value); return *this;}
129 
135  inline HealthCheckPolicy& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
136 
142  inline HealthCheckPolicy& WithPath(const char* value) { SetPath(value); return *this;}
143 
144 
149  inline int GetPort() const{ return m_port; }
150 
155  inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
156 
161  inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
162 
167  inline HealthCheckPolicy& WithPort(int value) { SetPort(value); return *this;}
168 
169 
176  inline const PortProtocol& GetProtocol() const{ return m_protocol; }
177 
184  inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
185 
192  inline void SetProtocol(const PortProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
193 
200  inline void SetProtocol(PortProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
201 
208  inline HealthCheckPolicy& WithProtocol(const PortProtocol& value) { SetProtocol(value); return *this;}
209 
216  inline HealthCheckPolicy& WithProtocol(PortProtocol&& value) { SetProtocol(std::move(value)); return *this;}
217 
218 
223  inline long long GetTimeoutMillis() const{ return m_timeoutMillis; }
224 
229  inline bool TimeoutMillisHasBeenSet() const { return m_timeoutMillisHasBeenSet; }
230 
235  inline void SetTimeoutMillis(long long value) { m_timeoutMillisHasBeenSet = true; m_timeoutMillis = value; }
236 
241  inline HealthCheckPolicy& WithTimeoutMillis(long long value) { SetTimeoutMillis(value); return *this;}
242 
243 
248  inline int GetUnhealthyThreshold() const{ return m_unhealthyThreshold; }
249 
254  inline bool UnhealthyThresholdHasBeenSet() const { return m_unhealthyThresholdHasBeenSet; }
255 
260  inline void SetUnhealthyThreshold(int value) { m_unhealthyThresholdHasBeenSet = true; m_unhealthyThreshold = value; }
261 
266  inline HealthCheckPolicy& WithUnhealthyThreshold(int value) { SetUnhealthyThreshold(value); return *this;}
267 
268  private:
269 
270  int m_healthyThreshold;
271  bool m_healthyThresholdHasBeenSet;
272 
273  long long m_intervalMillis;
274  bool m_intervalMillisHasBeenSet;
275 
276  Aws::String m_path;
277  bool m_pathHasBeenSet;
278 
279  int m_port;
280  bool m_portHasBeenSet;
281 
282  PortProtocol m_protocol;
283  bool m_protocolHasBeenSet;
284 
285  long long m_timeoutMillis;
286  bool m_timeoutMillisHasBeenSet;
287 
288  int m_unhealthyThreshold;
289  bool m_unhealthyThresholdHasBeenSet;
290  };
291 
292 } // namespace Model
293 } // namespace AppMesh
294 } // namespace Aws
Aws::AppMesh::Model::HealthCheckPolicy::SetProtocol
void SetProtocol(const PortProtocol &value)
Definition: HealthCheckPolicy.h:192
Aws::AppMesh::Model::HealthCheckPolicy::WithPath
HealthCheckPolicy & WithPath(Aws::String &&value)
Definition: HealthCheckPolicy.h:135
Aws::AppMesh::Model::HealthCheckPolicy::PortHasBeenSet
bool PortHasBeenSet() const
Definition: HealthCheckPolicy.h:155
Aws::AppMesh::Model::HealthCheckPolicy::GetPort
int GetPort() const
Definition: HealthCheckPolicy.h:149
Aws::AppMesh::Model::HealthCheckPolicy::operator=
HealthCheckPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::HealthCheckPolicy::SetPath
void SetPath(const char *value)
Definition: HealthCheckPolicy.h:121
Aws::AppMesh::Model::HealthCheckPolicy::WithProtocol
HealthCheckPolicy & WithProtocol(PortProtocol &&value)
Definition: HealthCheckPolicy.h:216
Aws::AppMesh::Model::HealthCheckPolicy::ProtocolHasBeenSet
bool ProtocolHasBeenSet() const
Definition: HealthCheckPolicy.h:184
Aws::AppMesh::Model::PortProtocol
PortProtocol
Definition: PortProtocol.h:17
Aws::AppMesh::Model::HealthCheckPolicy::SetPath
void SetPath(const Aws::String &value)
Definition: HealthCheckPolicy.h:107
Aws::AppMesh::Model::HealthCheckPolicy::IntervalMillisHasBeenSet
bool IntervalMillisHasBeenSet() const
Definition: HealthCheckPolicy.h:75
Aws::AppMesh::Model::HealthCheckPolicy::UnhealthyThresholdHasBeenSet
bool UnhealthyThresholdHasBeenSet() const
Definition: HealthCheckPolicy.h:254
Aws::AppMesh::Model::HealthCheckPolicy::PathHasBeenSet
bool PathHasBeenSet() const
Definition: HealthCheckPolicy.h:100
AppMesh_EXPORTS.h
Aws::AppMesh::Model::HealthCheckPolicy::WithPort
HealthCheckPolicy & WithPort(int value)
Definition: HealthCheckPolicy.h:167
Aws::AppMesh::Model::HealthCheckPolicy::GetTimeoutMillis
long long GetTimeoutMillis() const
Definition: HealthCheckPolicy.h:223
Aws::AppMesh::Model::HealthCheckPolicy::WithIntervalMillis
HealthCheckPolicy & WithIntervalMillis(long long value)
Definition: HealthCheckPolicy.h:85
Aws::AppMesh::Model::HealthCheckPolicy::SetPort
void SetPort(int value)
Definition: HealthCheckPolicy.h:161
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::AppMesh::Model::HealthCheckPolicy::HealthCheckPolicy
HealthCheckPolicy()
AWSString.h
Aws::AppMesh::Model::HealthCheckPolicy::SetProtocol
void SetProtocol(PortProtocol &&value)
Definition: HealthCheckPolicy.h:200
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::AppMesh::Model::HealthCheckPolicy::SetPath
void SetPath(Aws::String &&value)
Definition: HealthCheckPolicy.h:114
Aws::AppMesh::Model::HealthCheckPolicy::SetTimeoutMillis
void SetTimeoutMillis(long long value)
Definition: HealthCheckPolicy.h:235
Aws::AppMesh::Model::HealthCheckPolicy::SetIntervalMillis
void SetIntervalMillis(long long value)
Definition: HealthCheckPolicy.h:80
Aws::AppMesh::Model::HealthCheckPolicy::HealthyThresholdHasBeenSet
bool HealthyThresholdHasBeenSet() const
Definition: HealthCheckPolicy.h:52
Aws::AppMesh::Model::HealthCheckPolicy::WithPath
HealthCheckPolicy & WithPath(const Aws::String &value)
Definition: HealthCheckPolicy.h:128
Aws::AppMesh::Model::HealthCheckPolicy::GetUnhealthyThreshold
int GetUnhealthyThreshold() const
Definition: HealthCheckPolicy.h:248
Aws::AppMesh::Model::HealthCheckPolicy::GetHealthyThreshold
int GetHealthyThreshold() const
Definition: HealthCheckPolicy.h:46
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::HealthCheckPolicy
Definition: HealthCheckPolicy.h:34
Aws::AppMesh::Model::HealthCheckPolicy::SetUnhealthyThreshold
void SetUnhealthyThreshold(int value)
Definition: HealthCheckPolicy.h:260
Aws::AppMesh::Model::HealthCheckPolicy::HealthCheckPolicy
HealthCheckPolicy(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::HealthCheckPolicy::TimeoutMillisHasBeenSet
bool TimeoutMillisHasBeenSet() const
Definition: HealthCheckPolicy.h:229
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppMesh::Model::HealthCheckPolicy::GetProtocol
const PortProtocol & GetProtocol() const
Definition: HealthCheckPolicy.h:176
Aws::AppMesh::Model::HealthCheckPolicy::WithPath
HealthCheckPolicy & WithPath(const char *value)
Definition: HealthCheckPolicy.h:142
Aws::AppMesh::Model::HealthCheckPolicy::WithProtocol
HealthCheckPolicy & WithProtocol(const PortProtocol &value)
Definition: HealthCheckPolicy.h:208
Aws::AppMesh::Model::HealthCheckPolicy::WithHealthyThreshold
HealthCheckPolicy & WithHealthyThreshold(int value)
Definition: HealthCheckPolicy.h:64
Aws::AppMesh::Model::HealthCheckPolicy::WithTimeoutMillis
HealthCheckPolicy & WithTimeoutMillis(long long value)
Definition: HealthCheckPolicy.h:241
Aws::AppMesh::Model::HealthCheckPolicy::WithUnhealthyThreshold
HealthCheckPolicy & WithUnhealthyThreshold(int value)
Definition: HealthCheckPolicy.h:266
PortProtocol.h
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
Aws::AppMesh::Model::HealthCheckPolicy::SetHealthyThreshold
void SetHealthyThreshold(int value)
Definition: HealthCheckPolicy.h:58
Aws::AppMesh::Model::HealthCheckPolicy::GetIntervalMillis
long long GetIntervalMillis() const
Definition: HealthCheckPolicy.h:70
Aws::AppMesh::Model::HealthCheckPolicy::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppMesh::Model::HealthCheckPolicy::GetPath
const Aws::String & GetPath() const
Definition: HealthCheckPolicy.h:93