AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
HealthCheckConfig.h
1
6#pragma once
7#include <aws/servicediscovery/ServiceDiscovery_EXPORTS.h>
8#include <aws/servicediscovery/model/HealthCheckType.h>
9#include <aws/core/utils/memory/stl/AWSString.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 ServiceDiscovery
23{
24namespace Model
25{
26
75 {
76 public:
77 AWS_SERVICEDISCOVERY_API HealthCheckConfig();
78 AWS_SERVICEDISCOVERY_API HealthCheckConfig(Aws::Utils::Json::JsonView jsonValue);
79 AWS_SERVICEDISCOVERY_API HealthCheckConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
80 AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const;
81
82
84
103 inline const HealthCheckType& GetType() const{ return m_type; }
104 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
105 inline void SetType(const HealthCheckType& value) { m_typeHasBeenSet = true; m_type = value; }
106 inline void SetType(HealthCheckType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
107 inline HealthCheckConfig& WithType(const HealthCheckType& value) { SetType(value); return *this;}
108 inline HealthCheckConfig& WithType(HealthCheckType&& value) { SetType(std::move(value)); return *this;}
110
112
122 inline const Aws::String& GetResourcePath() const{ return m_resourcePath; }
123 inline bool ResourcePathHasBeenSet() const { return m_resourcePathHasBeenSet; }
124 inline void SetResourcePath(const Aws::String& value) { m_resourcePathHasBeenSet = true; m_resourcePath = value; }
125 inline void SetResourcePath(Aws::String&& value) { m_resourcePathHasBeenSet = true; m_resourcePath = std::move(value); }
126 inline void SetResourcePath(const char* value) { m_resourcePathHasBeenSet = true; m_resourcePath.assign(value); }
127 inline HealthCheckConfig& WithResourcePath(const Aws::String& value) { SetResourcePath(value); return *this;}
128 inline HealthCheckConfig& WithResourcePath(Aws::String&& value) { SetResourcePath(std::move(value)); return *this;}
129 inline HealthCheckConfig& WithResourcePath(const char* value) { SetResourcePath(value); return *this;}
131
133
141 inline int GetFailureThreshold() const{ return m_failureThreshold; }
142 inline bool FailureThresholdHasBeenSet() const { return m_failureThresholdHasBeenSet; }
143 inline void SetFailureThreshold(int value) { m_failureThresholdHasBeenSet = true; m_failureThreshold = value; }
144 inline HealthCheckConfig& WithFailureThreshold(int value) { SetFailureThreshold(value); return *this;}
146 private:
147
148 HealthCheckType m_type;
149 bool m_typeHasBeenSet = false;
150
151 Aws::String m_resourcePath;
152 bool m_resourcePathHasBeenSet = false;
153
154 int m_failureThreshold;
155 bool m_failureThresholdHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace ServiceDiscovery
160} // namespace Aws
AWS_SERVICEDISCOVERY_API HealthCheckConfig(Aws::Utils::Json::JsonView jsonValue)
HealthCheckConfig & WithType(const HealthCheckType &value)
void SetType(const HealthCheckType &value)
HealthCheckConfig & WithResourcePath(Aws::String &&value)
AWS_SERVICEDISCOVERY_API HealthCheckConfig()
HealthCheckConfig & WithResourcePath(const Aws::String &value)
HealthCheckConfig & WithType(HealthCheckType &&value)
HealthCheckConfig & WithResourcePath(const char *value)
AWS_SERVICEDISCOVERY_API HealthCheckConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
HealthCheckConfig & WithFailureThreshold(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