7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appmesh/model/PortProtocol.h>
49 inline void SetHealthyThreshold(
int value) { m_healthyThresholdHasBeenSet =
true; m_healthyThreshold = value; }
59 inline void SetIntervalMillis(
long long value) { m_intervalMillisHasBeenSet =
true; m_intervalMillis = value; }
71 template<
typename PathT = Aws::String>
72 void SetPath(PathT&& value) { m_pathHasBeenSet =
true; m_path = std::forward<PathT>(value); }
73 template<
typename PathT = Aws::String>
82 inline int GetPort()
const {
return m_port; }
84 inline void SetPort(
int value) { m_portHasBeenSet =
true; m_port = value; }
108 inline void SetTimeoutMillis(
long long value) { m_timeoutMillisHasBeenSet =
true; m_timeoutMillis = value; }
119 inline void SetUnhealthyThreshold(
int value) { m_unhealthyThresholdHasBeenSet =
true; m_unhealthyThreshold = value; }
124 int m_healthyThreshold{0};
125 bool m_healthyThresholdHasBeenSet =
false;
127 long long m_intervalMillis{0};
128 bool m_intervalMillisHasBeenSet =
false;
131 bool m_pathHasBeenSet =
false;
134 bool m_portHasBeenSet =
false;
137 bool m_protocolHasBeenSet =
false;
139 long long m_timeoutMillis{0};
140 bool m_timeoutMillisHasBeenSet =
false;
142 int m_unhealthyThreshold{0};
143 bool m_unhealthyThresholdHasBeenSet =
false;
HealthCheckPolicy & WithTimeoutMillis(long long value)
void SetTimeoutMillis(long long value)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPMESH_API HealthCheckPolicy(Aws::Utils::Json::JsonView jsonValue)
HealthCheckPolicy & WithIntervalMillis(long long value)
bool ProtocolHasBeenSet() const
long long GetIntervalMillis() const
HealthCheckPolicy & WithProtocol(PortProtocol value)
HealthCheckPolicy & WithPath(PathT &&value)
PortProtocol GetProtocol() const
AWS_APPMESH_API HealthCheckPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMESH_API HealthCheckPolicy()=default
bool UnhealthyThresholdHasBeenSet() const
const Aws::String & GetPath() const
bool PortHasBeenSet() const
int GetHealthyThreshold() const
void SetPath(PathT &&value)
HealthCheckPolicy & WithPort(int value)
long long GetTimeoutMillis() const
bool TimeoutMillisHasBeenSet() const
bool PathHasBeenSet() const
int GetUnhealthyThreshold() const
void SetIntervalMillis(long long value)
void SetProtocol(PortProtocol value)
bool IntervalMillisHasBeenSet() const
HealthCheckPolicy & WithUnhealthyThreshold(int value)
void SetHealthyThreshold(int value)
bool HealthyThresholdHasBeenSet() const
void SetUnhealthyThreshold(int value)
HealthCheckPolicy & WithHealthyThreshold(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue