AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
HealthCheckConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/servicediscovery/ServiceDiscovery_EXPORTS.h>
9#include <aws/servicediscovery/model/HealthCheckType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ServiceDiscovery {
21namespace Model {
22
71 public:
72 AWS_SERVICEDISCOVERY_API HealthCheckConfig() = default;
73 AWS_SERVICEDISCOVERY_API HealthCheckConfig(Aws::Utils::Json::JsonView jsonValue);
74 AWS_SERVICEDISCOVERY_API HealthCheckConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
75 AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const;
76
78
97 inline HealthCheckType GetType() const { return m_type; }
98 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
99 inline void SetType(HealthCheckType value) {
100 m_typeHasBeenSet = true;
101 m_type = value;
102 }
104 SetType(value);
105 return *this;
106 }
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) {
124 m_resourcePathHasBeenSet = true;
125 m_resourcePath = std::forward<ResourcePathT>(value);
126 }
127 template <typename ResourcePathT = Aws::String>
128 HealthCheckConfig& WithResourcePath(ResourcePathT&& value) {
129 SetResourcePath(std::forward<ResourcePathT>(value));
130 return *this;
131 }
133
135
143 inline int GetFailureThreshold() const { return m_failureThreshold; }
144 inline bool FailureThresholdHasBeenSet() const { return m_failureThresholdHasBeenSet; }
145 inline void SetFailureThreshold(int value) {
146 m_failureThresholdHasBeenSet = true;
147 m_failureThreshold = value;
148 }
150 SetFailureThreshold(value);
151 return *this;
152 }
154 private:
156
157 Aws::String m_resourcePath;
158
159 int m_failureThreshold{0};
160 bool m_typeHasBeenSet = false;
161 bool m_resourcePathHasBeenSet = false;
162 bool m_failureThresholdHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace ServiceDiscovery
167} // 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