AWS SDK for C++  1.9.104
AWS SDK for C++
HealthCheckConfig.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace ServiceDiscovery
23 {
24 namespace Model
25 {
26 
75  {
76  public:
81 
82 
102  inline const HealthCheckType& GetType() const{ return m_type; }
103 
123  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
124 
144  inline void SetType(const HealthCheckType& value) { m_typeHasBeenSet = true; m_type = value; }
145 
165  inline void SetType(HealthCheckType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
166 
186  inline HealthCheckConfig& WithType(const HealthCheckType& value) { SetType(value); return *this;}
187 
207  inline HealthCheckConfig& WithType(HealthCheckType&& value) { SetType(std::move(value)); return *this;}
208 
209 
220  inline const Aws::String& GetResourcePath() const{ return m_resourcePath; }
221 
232  inline bool ResourcePathHasBeenSet() const { return m_resourcePathHasBeenSet; }
233 
244  inline void SetResourcePath(const Aws::String& value) { m_resourcePathHasBeenSet = true; m_resourcePath = value; }
245 
256  inline void SetResourcePath(Aws::String&& value) { m_resourcePathHasBeenSet = true; m_resourcePath = std::move(value); }
257 
268  inline void SetResourcePath(const char* value) { m_resourcePathHasBeenSet = true; m_resourcePath.assign(value); }
269 
280  inline HealthCheckConfig& WithResourcePath(const Aws::String& value) { SetResourcePath(value); return *this;}
281 
292  inline HealthCheckConfig& WithResourcePath(Aws::String&& value) { SetResourcePath(std::move(value)); return *this;}
293 
304  inline HealthCheckConfig& WithResourcePath(const char* value) { SetResourcePath(value); return *this;}
305 
306 
315  inline int GetFailureThreshold() const{ return m_failureThreshold; }
316 
325  inline bool FailureThresholdHasBeenSet() const { return m_failureThresholdHasBeenSet; }
326 
335  inline void SetFailureThreshold(int value) { m_failureThresholdHasBeenSet = true; m_failureThreshold = value; }
336 
345  inline HealthCheckConfig& WithFailureThreshold(int value) { SetFailureThreshold(value); return *this;}
346 
347  private:
348 
349  HealthCheckType m_type;
350  bool m_typeHasBeenSet;
351 
352  Aws::String m_resourcePath;
353  bool m_resourcePathHasBeenSet;
354 
355  int m_failureThreshold;
356  bool m_failureThresholdHasBeenSet;
357  };
358 
359 } // namespace Model
360 } // namespace ServiceDiscovery
361 } // namespace Aws
Aws::ServiceDiscovery::Model::HealthCheckConfig::SetType
void SetType(const HealthCheckType &value)
Definition: HealthCheckConfig.h:144
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
Aws::ServiceDiscovery::Model::HealthCheckConfig
Definition: HealthCheckConfig.h:75
Aws::ServiceDiscovery::Model::HealthCheckConfig::ResourcePathHasBeenSet
bool ResourcePathHasBeenSet() const
Definition: HealthCheckConfig.h:232
Aws::ServiceDiscovery::Model::HealthCheckConfig::operator=
HealthCheckConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::HealthCheckConfig::HealthCheckConfig
HealthCheckConfig()
Aws::ServiceDiscovery::Model::HealthCheckConfig::WithFailureThreshold
HealthCheckConfig & WithFailureThreshold(int value)
Definition: HealthCheckConfig.h:345
Aws::ServiceDiscovery::Model::HealthCheckConfig::GetType
const HealthCheckType & GetType() const
Definition: HealthCheckConfig.h:102
Aws::ServiceDiscovery::Model::HealthCheckConfig::WithResourcePath
HealthCheckConfig & WithResourcePath(const Aws::String &value)
Definition: HealthCheckConfig.h:280
Aws::ServiceDiscovery::Model::HealthCheckConfig::SetFailureThreshold
void SetFailureThreshold(int value)
Definition: HealthCheckConfig.h:335
Aws::ServiceDiscovery::Model::HealthCheckConfig::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: HealthCheckConfig.h:123
Aws::ServiceDiscovery::Model::HealthCheckConfig::SetResourcePath
void SetResourcePath(Aws::String &&value)
Definition: HealthCheckConfig.h:256
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::ServiceDiscovery::Model::HealthCheckConfig::FailureThresholdHasBeenSet
bool FailureThresholdHasBeenSet() const
Definition: HealthCheckConfig.h:325
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ServiceDiscovery::Model::HealthCheckConfig::WithType
HealthCheckConfig & WithType(HealthCheckType &&value)
Definition: HealthCheckConfig.h:207
Aws::ServiceDiscovery::Model::HealthCheckConfig::SetResourcePath
void SetResourcePath(const Aws::String &value)
Definition: HealthCheckConfig.h:244
Aws::ServiceDiscovery::Model::HealthCheckConfig::WithResourcePath
HealthCheckConfig & WithResourcePath(Aws::String &&value)
Definition: HealthCheckConfig.h:292
Aws::ServiceDiscovery::Model::HealthCheckConfig::GetResourcePath
const Aws::String & GetResourcePath() const
Definition: HealthCheckConfig.h:220
Aws::ServiceDiscovery::Model::HealthCheckConfig::WithResourcePath
HealthCheckConfig & WithResourcePath(const char *value)
Definition: HealthCheckConfig.h:304
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceDiscovery::Model::HealthCheckConfig::GetFailureThreshold
int GetFailureThreshold() const
Definition: HealthCheckConfig.h:315
Aws::ServiceDiscovery::Model::HealthCheckConfig::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ServiceDiscovery::Model::HealthCheckConfig::SetType
void SetType(HealthCheckType &&value)
Definition: HealthCheckConfig.h:165
Aws::ServiceDiscovery::Model::HealthCheckConfig::HealthCheckConfig
HealthCheckConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceDiscovery::Model::HealthCheckConfig::WithType
HealthCheckConfig & WithType(const HealthCheckType &value)
Definition: HealthCheckConfig.h:186
Aws::ServiceDiscovery::Model::HealthCheckConfig::SetResourcePath
void SetResourcePath(const char *value)
Definition: HealthCheckConfig.h:268
HealthCheckType.h
Aws::ServiceDiscovery::Model::HealthCheckType
HealthCheckType
Definition: HealthCheckType.h:17