AWS SDK for C++

AWS SDK for C++ Version 1.11.755

Loading...
Searching...
No Matches
VirtualGatewayHealthCheckPolicy.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/appmesh/model/VirtualGatewayPortProtocol.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AppMesh {
21namespace Model {
22
30 public:
31 AWS_APPMESH_API VirtualGatewayHealthCheckPolicy() = default;
34 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline int GetHealthyThreshold() const { return m_healthyThreshold; }
42 inline bool HealthyThresholdHasBeenSet() const { return m_healthyThresholdHasBeenSet; }
43 inline void SetHealthyThreshold(int value) {
44 m_healthyThresholdHasBeenSet = true;
45 m_healthyThreshold = value;
46 }
49 return *this;
50 }
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) {
60 m_intervalMillisHasBeenSet = true;
61 m_intervalMillis = value;
62 }
64 SetIntervalMillis(value);
65 return *this;
66 }
68
70
75 inline const Aws::String& GetPath() const { return m_path; }
76 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
77 template <typename PathT = Aws::String>
78 void SetPath(PathT&& value) {
79 m_pathHasBeenSet = true;
80 m_path = std::forward<PathT>(value);
81 }
82 template <typename PathT = Aws::String>
84 SetPath(std::forward<PathT>(value));
85 return *this;
86 }
88
90
94 inline int GetPort() const { return m_port; }
95 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
96 inline void SetPort(int value) {
97 m_portHasBeenSet = true;
98 m_port = value;
99 }
101 SetPort(value);
102 return *this;
103 }
105
107
113 inline VirtualGatewayPortProtocol GetProtocol() const { return m_protocol; }
114 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
116 m_protocolHasBeenSet = true;
117 m_protocol = value;
118 }
120 SetProtocol(value);
121 return *this;
122 }
124
126
130 inline long long GetTimeoutMillis() const { return m_timeoutMillis; }
131 inline bool TimeoutMillisHasBeenSet() const { return m_timeoutMillisHasBeenSet; }
132 inline void SetTimeoutMillis(long long value) {
133 m_timeoutMillisHasBeenSet = true;
134 m_timeoutMillis = value;
135 }
137 SetTimeoutMillis(value);
138 return *this;
139 }
141
143
147 inline int GetUnhealthyThreshold() const { return m_unhealthyThreshold; }
148 inline bool UnhealthyThresholdHasBeenSet() const { return m_unhealthyThresholdHasBeenSet; }
149 inline void SetUnhealthyThreshold(int value) {
150 m_unhealthyThresholdHasBeenSet = true;
151 m_unhealthyThreshold = value;
152 }
155 return *this;
156 }
158 private:
159 int m_healthyThreshold{0};
160
161 long long m_intervalMillis{0};
162
163 Aws::String m_path;
164
165 int m_port{0};
166
168
169 long long m_timeoutMillis{0};
170
171 int m_unhealthyThreshold{0};
172 bool m_healthyThresholdHasBeenSet = false;
173 bool m_intervalMillisHasBeenSet = false;
174 bool m_pathHasBeenSet = false;
175 bool m_portHasBeenSet = false;
176 bool m_protocolHasBeenSet = false;
177 bool m_timeoutMillisHasBeenSet = false;
178 bool m_unhealthyThresholdHasBeenSet = false;
179};
180
181} // namespace Model
182} // namespace AppMesh
183} // namespace Aws
VirtualGatewayHealthCheckPolicy & WithHealthyThreshold(int value)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
VirtualGatewayHealthCheckPolicy & WithIntervalMillis(long long value)
AWS_APPMESH_API VirtualGatewayHealthCheckPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
VirtualGatewayHealthCheckPolicy & WithUnhealthyThreshold(int value)
AWS_APPMESH_API VirtualGatewayHealthCheckPolicy()=default
AWS_APPMESH_API VirtualGatewayHealthCheckPolicy(Aws::Utils::Json::JsonView jsonValue)
VirtualGatewayHealthCheckPolicy & WithProtocol(VirtualGatewayPortProtocol value)
VirtualGatewayHealthCheckPolicy & WithPath(PathT &&value)
VirtualGatewayHealthCheckPolicy & WithTimeoutMillis(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue