AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 HealthCheckType GetType() const { return m_type; }
104 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
105 inline void SetType(HealthCheckType value) { m_typeHasBeenSet = true; m_type = value; }
106 inline HealthCheckConfig& WithType(HealthCheckType value) { SetType(value); return *this;}
108
110
120 inline const Aws::String& GetResourcePath() const { return m_resourcePath; }
121 inline bool ResourcePathHasBeenSet() const { return m_resourcePathHasBeenSet; }
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>
125 HealthCheckConfig& WithResourcePath(ResourcePathT&& value) { SetResourcePath(std::forward<ResourcePathT>(value)); return *this;}
127
129
137 inline int GetFailureThreshold() const { return m_failureThreshold; }
138 inline bool FailureThresholdHasBeenSet() const { return m_failureThresholdHasBeenSet; }
139 inline void SetFailureThreshold(int value) { m_failureThresholdHasBeenSet = true; m_failureThreshold = value; }
140 inline HealthCheckConfig& WithFailureThreshold(int value) { SetFailureThreshold(value); return *this;}
142 private:
143
145 bool m_typeHasBeenSet = false;
146
147 Aws::String m_resourcePath;
148 bool m_resourcePathHasBeenSet = false;
149
150 int m_failureThreshold{0};
151 bool m_failureThresholdHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace ServiceDiscovery
156} // namespace Aws
AWS_SERVICEDISCOVERY_API HealthCheckConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_SERVICEDISCOVERY_API HealthCheckConfig()=default
HealthCheckConfig & WithResourcePath(ResourcePathT &&value)
AWS_SERVICEDISCOVERY_API HealthCheckConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
HealthCheckConfig & WithType(HealthCheckType value)
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