AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsElbLoadBalancerHealthCheck.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SECURITYHUB_API AwsElbLoadBalancerHealthCheck() = default;
38 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline int GetHealthyThreshold() const { return m_healthyThreshold; }
47 inline bool HealthyThresholdHasBeenSet() const { return m_healthyThresholdHasBeenSet; }
48 inline void SetHealthyThreshold(int value) { m_healthyThresholdHasBeenSet = true; m_healthyThreshold = value; }
51
53
57 inline int GetInterval() const { return m_interval; }
58 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
59 inline void SetInterval(int value) { m_intervalHasBeenSet = true; m_interval = value; }
60 inline AwsElbLoadBalancerHealthCheck& WithInterval(int value) { SetInterval(value); return *this;}
62
64
75 inline const Aws::String& GetTarget() const { return m_target; }
76 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
77 template<typename TargetT = Aws::String>
78 void SetTarget(TargetT&& value) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
79 template<typename TargetT = Aws::String>
80 AwsElbLoadBalancerHealthCheck& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
82
84
88 inline int GetTimeout() const { return m_timeout; }
89 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
90 inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; }
91 inline AwsElbLoadBalancerHealthCheck& WithTimeout(int value) { SetTimeout(value); return *this;}
93
95
99 inline int GetUnhealthyThreshold() const { return m_unhealthyThreshold; }
100 inline bool UnhealthyThresholdHasBeenSet() const { return m_unhealthyThresholdHasBeenSet; }
101 inline void SetUnhealthyThreshold(int value) { m_unhealthyThresholdHasBeenSet = true; m_unhealthyThreshold = value; }
104 private:
105
106 int m_healthyThreshold{0};
107 bool m_healthyThresholdHasBeenSet = false;
108
109 int m_interval{0};
110 bool m_intervalHasBeenSet = false;
111
112 Aws::String m_target;
113 bool m_targetHasBeenSet = false;
114
115 int m_timeout{0};
116 bool m_timeoutHasBeenSet = false;
117
118 int m_unhealthyThreshold{0};
119 bool m_unhealthyThresholdHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace SecurityHub
124} // namespace Aws
AWS_SECURITYHUB_API AwsElbLoadBalancerHealthCheck(Aws::Utils::Json::JsonView jsonValue)
AwsElbLoadBalancerHealthCheck & WithTarget(TargetT &&value)
AWS_SECURITYHUB_API AwsElbLoadBalancerHealthCheck & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API AwsElbLoadBalancerHealthCheck()=default
AwsElbLoadBalancerHealthCheck & WithHealthyThreshold(int value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsElbLoadBalancerHealthCheck & WithUnhealthyThreshold(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue