7#include <aws/servicediscovery/ServiceDiscovery_EXPORTS.h>
8#include <aws/servicediscovery/model/HealthCheckType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
22namespace ServiceDiscovery
122 template<
typename ResourcePathT = Aws::String>
123 void SetResourcePath(ResourcePathT&& value) { m_resourcePathHasBeenSet =
true; m_resourcePath = std::forward<ResourcePathT>(value); }
124 template<
typename ResourcePathT = Aws::String>
139 inline void SetFailureThreshold(
int value) { m_failureThresholdHasBeenSet =
true; m_failureThreshold = value; }
145 bool m_typeHasBeenSet =
false;
148 bool m_resourcePathHasBeenSet =
false;
150 int m_failureThreshold{0};
151 bool m_failureThresholdHasBeenSet =
false;
AWS_SERVICEDISCOVERY_API HealthCheckConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_SERVICEDISCOVERY_API HealthCheckConfig()=default
HealthCheckType GetType() const
int GetFailureThreshold() const
const Aws::String & GetResourcePath() const
bool FailureThresholdHasBeenSet() const
bool ResourcePathHasBeenSet() const
void SetType(HealthCheckType value)
HealthCheckConfig & WithResourcePath(ResourcePathT &&value)
AWS_SERVICEDISCOVERY_API HealthCheckConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
HealthCheckConfig & WithType(HealthCheckType value)
HealthCheckConfig & WithFailureThreshold(int value)
void SetResourcePath(ResourcePathT &&value)
bool TypeHasBeenSet() const
void SetFailureThreshold(int value)
AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue