AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
HealthCheckConfiguration.h
1
6#pragma once
7#include <aws/apprunner/AppRunner_EXPORTS.h>
8#include <aws/apprunner/model/HealthCheckProtocol.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 AppRunner
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_APPRUNNER_API HealthCheckConfiguration() = default;
39 AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
49 inline HealthCheckProtocol GetProtocol() const { return m_protocol; }
50 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
51 inline void SetProtocol(HealthCheckProtocol value) { m_protocolHasBeenSet = true; m_protocol = value; }
54
56
61 inline const Aws::String& GetPath() const { return m_path; }
62 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
63 template<typename PathT = Aws::String>
64 void SetPath(PathT&& value) { m_pathHasBeenSet = true; m_path = std::forward<PathT>(value); }
65 template<typename PathT = Aws::String>
66 HealthCheckConfiguration& WithPath(PathT&& value) { SetPath(std::forward<PathT>(value)); return *this;}
68
70
74 inline int GetInterval() const { return m_interval; }
75 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
76 inline void SetInterval(int value) { m_intervalHasBeenSet = true; m_interval = value; }
77 inline HealthCheckConfiguration& WithInterval(int value) { SetInterval(value); return *this;}
79
81
85 inline int GetTimeout() const { return m_timeout; }
86 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
87 inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; }
88 inline HealthCheckConfiguration& WithTimeout(int value) { SetTimeout(value); return *this;}
90
92
96 inline int GetHealthyThreshold() const { return m_healthyThreshold; }
97 inline bool HealthyThresholdHasBeenSet() const { return m_healthyThresholdHasBeenSet; }
98 inline void SetHealthyThreshold(int value) { m_healthyThresholdHasBeenSet = true; m_healthyThreshold = value; }
99 inline HealthCheckConfiguration& WithHealthyThreshold(int value) { SetHealthyThreshold(value); return *this;}
101
103
107 inline int GetUnhealthyThreshold() const { return m_unhealthyThreshold; }
108 inline bool UnhealthyThresholdHasBeenSet() const { return m_unhealthyThresholdHasBeenSet; }
109 inline void SetUnhealthyThreshold(int value) { m_unhealthyThresholdHasBeenSet = true; m_unhealthyThreshold = value; }
112 private:
113
115 bool m_protocolHasBeenSet = false;
116
117 Aws::String m_path;
118 bool m_pathHasBeenSet = false;
119
120 int m_interval{0};
121 bool m_intervalHasBeenSet = false;
122
123 int m_timeout{0};
124 bool m_timeoutHasBeenSet = false;
125
126 int m_healthyThreshold{0};
127 bool m_healthyThresholdHasBeenSet = false;
128
129 int m_unhealthyThreshold{0};
130 bool m_unhealthyThresholdHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace AppRunner
135} // namespace Aws
HealthCheckConfiguration & WithProtocol(HealthCheckProtocol value)
AWS_APPRUNNER_API HealthCheckConfiguration()=default
AWS_APPRUNNER_API HealthCheckConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
HealthCheckConfiguration & WithTimeout(int value)
HealthCheckConfiguration & WithHealthyThreshold(int value)
HealthCheckConfiguration & WithPath(PathT &&value)
AWS_APPRUNNER_API HealthCheckConfiguration(Aws::Utils::Json::JsonView jsonValue)
HealthCheckConfiguration & WithUnhealthyThreshold(int value)
AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const
HealthCheckConfiguration & WithInterval(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue