AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AppRunner {
21namespace Model {
22
30 public:
31 AWS_APPRUNNER_API HealthCheckConfiguration() = default;
34 AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
43 inline HealthCheckProtocol GetProtocol() const { return m_protocol; }
44 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
45 inline void SetProtocol(HealthCheckProtocol value) {
46 m_protocolHasBeenSet = true;
47 m_protocol = value;
48 }
50 SetProtocol(value);
51 return *this;
52 }
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) {
65 m_pathHasBeenSet = true;
66 m_path = std::forward<PathT>(value);
67 }
68 template <typename PathT = Aws::String>
70 SetPath(std::forward<PathT>(value));
71 return *this;
72 }
74
76
80 inline int GetInterval() const { return m_interval; }
81 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
82 inline void SetInterval(int value) {
83 m_intervalHasBeenSet = true;
84 m_interval = value;
85 }
87 SetInterval(value);
88 return *this;
89 }
91
93
97 inline int GetTimeout() const { return m_timeout; }
98 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
99 inline void SetTimeout(int value) {
100 m_timeoutHasBeenSet = true;
101 m_timeout = value;
102 }
104 SetTimeout(value);
105 return *this;
106 }
108
110
114 inline int GetHealthyThreshold() const { return m_healthyThreshold; }
115 inline bool HealthyThresholdHasBeenSet() const { return m_healthyThresholdHasBeenSet; }
116 inline void SetHealthyThreshold(int value) {
117 m_healthyThresholdHasBeenSet = true;
118 m_healthyThreshold = value;
119 }
121 SetHealthyThreshold(value);
122 return *this;
123 }
125
127
131 inline int GetUnhealthyThreshold() const { return m_unhealthyThreshold; }
132 inline bool UnhealthyThresholdHasBeenSet() const { return m_unhealthyThresholdHasBeenSet; }
133 inline void SetUnhealthyThreshold(int value) {
134 m_unhealthyThresholdHasBeenSet = true;
135 m_unhealthyThreshold = value;
136 }
139 return *this;
140 }
142 private:
144
145 Aws::String m_path;
146
147 int m_interval{0};
148
149 int m_timeout{0};
150
151 int m_healthyThreshold{0};
152
153 int m_unhealthyThreshold{0};
154 bool m_protocolHasBeenSet = false;
155 bool m_pathHasBeenSet = false;
156 bool m_intervalHasBeenSet = false;
157 bool m_timeoutHasBeenSet = false;
158 bool m_healthyThresholdHasBeenSet = false;
159 bool m_unhealthyThresholdHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace AppRunner
164} // 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