AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
HealthCheckPolicy.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appmesh/model/PortProtocol.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppMesh
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_APPMESH_API HealthCheckPolicy();
39 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline int GetHealthyThreshold() const{ return m_healthyThreshold; }
48 inline bool HealthyThresholdHasBeenSet() const { return m_healthyThresholdHasBeenSet; }
49 inline void SetHealthyThreshold(int value) { m_healthyThresholdHasBeenSet = true; m_healthyThreshold = value; }
50 inline HealthCheckPolicy& WithHealthyThreshold(int value) { SetHealthyThreshold(value); return *this;}
52
54
57 inline long long GetIntervalMillis() const{ return m_intervalMillis; }
58 inline bool IntervalMillisHasBeenSet() const { return m_intervalMillisHasBeenSet; }
59 inline void SetIntervalMillis(long long value) { m_intervalMillisHasBeenSet = true; m_intervalMillis = value; }
60 inline HealthCheckPolicy& WithIntervalMillis(long long value) { SetIntervalMillis(value); return *this;}
62
64
69 inline const Aws::String& GetPath() const{ return m_path; }
70 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
71 inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
72 inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
73 inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
74 inline HealthCheckPolicy& WithPath(const Aws::String& value) { SetPath(value); return *this;}
75 inline HealthCheckPolicy& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
76 inline HealthCheckPolicy& WithPath(const char* value) { SetPath(value); return *this;}
78
80
84 inline int GetPort() const{ return m_port; }
85 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
86 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
87 inline HealthCheckPolicy& WithPort(int value) { SetPort(value); return *this;}
89
91
97 inline const PortProtocol& GetProtocol() const{ return m_protocol; }
98 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
99 inline void SetProtocol(const PortProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
100 inline void SetProtocol(PortProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
101 inline HealthCheckPolicy& WithProtocol(const PortProtocol& value) { SetProtocol(value); return *this;}
102 inline HealthCheckPolicy& WithProtocol(PortProtocol&& value) { SetProtocol(std::move(value)); return *this;}
104
106
110 inline long long GetTimeoutMillis() const{ return m_timeoutMillis; }
111 inline bool TimeoutMillisHasBeenSet() const { return m_timeoutMillisHasBeenSet; }
112 inline void SetTimeoutMillis(long long value) { m_timeoutMillisHasBeenSet = true; m_timeoutMillis = value; }
113 inline HealthCheckPolicy& WithTimeoutMillis(long long value) { SetTimeoutMillis(value); return *this;}
115
117
121 inline int GetUnhealthyThreshold() const{ return m_unhealthyThreshold; }
122 inline bool UnhealthyThresholdHasBeenSet() const { return m_unhealthyThresholdHasBeenSet; }
123 inline void SetUnhealthyThreshold(int value) { m_unhealthyThresholdHasBeenSet = true; m_unhealthyThreshold = value; }
124 inline HealthCheckPolicy& WithUnhealthyThreshold(int value) { SetUnhealthyThreshold(value); return *this;}
126 private:
127
128 int m_healthyThreshold;
129 bool m_healthyThresholdHasBeenSet = false;
130
131 long long m_intervalMillis;
132 bool m_intervalMillisHasBeenSet = false;
133
134 Aws::String m_path;
135 bool m_pathHasBeenSet = false;
136
137 int m_port;
138 bool m_portHasBeenSet = false;
139
140 PortProtocol m_protocol;
141 bool m_protocolHasBeenSet = false;
142
143 long long m_timeoutMillis;
144 bool m_timeoutMillisHasBeenSet = false;
145
146 int m_unhealthyThreshold;
147 bool m_unhealthyThresholdHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace AppMesh
152} // namespace Aws
HealthCheckPolicy & WithTimeoutMillis(long long value)
void SetPath(const Aws::String &value)
HealthCheckPolicy & WithPath(Aws::String &&value)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPMESH_API HealthCheckPolicy(Aws::Utils::Json::JsonView jsonValue)
HealthCheckPolicy & WithIntervalMillis(long long value)
const PortProtocol & GetProtocol() const
AWS_APPMESH_API HealthCheckPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPath() const
HealthCheckPolicy & WithPath(const char *value)
HealthCheckPolicy & WithPort(int value)
HealthCheckPolicy & WithProtocol(const PortProtocol &value)
void SetProtocol(const PortProtocol &value)
HealthCheckPolicy & WithPath(const Aws::String &value)
HealthCheckPolicy & WithUnhealthyThreshold(int value)
HealthCheckPolicy & WithHealthyThreshold(int value)
HealthCheckPolicy & WithProtocol(PortProtocol &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue