AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
39 AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
49 inline const HealthCheckProtocol& GetProtocol() const{ return m_protocol; }
50 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
51 inline void SetProtocol(const HealthCheckProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
52 inline void SetProtocol(HealthCheckProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
53 inline HealthCheckConfiguration& WithProtocol(const HealthCheckProtocol& value) { SetProtocol(value); return *this;}
54 inline HealthCheckConfiguration& WithProtocol(HealthCheckProtocol&& value) { SetProtocol(std::move(value)); return *this;}
56
58
63 inline const Aws::String& GetPath() const{ return m_path; }
64 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
65 inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
66 inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
67 inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
68 inline HealthCheckConfiguration& WithPath(const Aws::String& value) { SetPath(value); return *this;}
69 inline HealthCheckConfiguration& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
70 inline HealthCheckConfiguration& WithPath(const char* value) { SetPath(value); return *this;}
72
74
78 inline int GetInterval() const{ return m_interval; }
79 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
80 inline void SetInterval(int value) { m_intervalHasBeenSet = true; m_interval = value; }
81 inline HealthCheckConfiguration& WithInterval(int value) { SetInterval(value); return *this;}
83
85
89 inline int GetTimeout() const{ return m_timeout; }
90 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
91 inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; }
92 inline HealthCheckConfiguration& WithTimeout(int value) { SetTimeout(value); return *this;}
94
96
100 inline int GetHealthyThreshold() const{ return m_healthyThreshold; }
101 inline bool HealthyThresholdHasBeenSet() const { return m_healthyThresholdHasBeenSet; }
102 inline void SetHealthyThreshold(int value) { m_healthyThresholdHasBeenSet = true; m_healthyThreshold = value; }
103 inline HealthCheckConfiguration& WithHealthyThreshold(int value) { SetHealthyThreshold(value); return *this;}
105
107
111 inline int GetUnhealthyThreshold() const{ return m_unhealthyThreshold; }
112 inline bool UnhealthyThresholdHasBeenSet() const { return m_unhealthyThresholdHasBeenSet; }
113 inline void SetUnhealthyThreshold(int value) { m_unhealthyThresholdHasBeenSet = true; m_unhealthyThreshold = value; }
116 private:
117
118 HealthCheckProtocol m_protocol;
119 bool m_protocolHasBeenSet = false;
120
121 Aws::String m_path;
122 bool m_pathHasBeenSet = false;
123
124 int m_interval;
125 bool m_intervalHasBeenSet = false;
126
127 int m_timeout;
128 bool m_timeoutHasBeenSet = false;
129
130 int m_healthyThreshold;
131 bool m_healthyThresholdHasBeenSet = false;
132
133 int m_unhealthyThreshold;
134 bool m_unhealthyThresholdHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace AppRunner
139} // namespace Aws
AWS_APPRUNNER_API HealthCheckConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
HealthCheckConfiguration & WithTimeout(int value)
HealthCheckConfiguration & WithHealthyThreshold(int value)
HealthCheckConfiguration & WithPath(const Aws::String &value)
HealthCheckConfiguration & WithProtocol(const HealthCheckProtocol &value)
HealthCheckConfiguration & WithPath(const char *value)
AWS_APPRUNNER_API HealthCheckConfiguration(Aws::Utils::Json::JsonView jsonValue)
HealthCheckConfiguration & WithUnhealthyThreshold(int value)
AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const
HealthCheckConfiguration & WithProtocol(HealthCheckProtocol &&value)
HealthCheckConfiguration & WithInterval(int value)
HealthCheckConfiguration & WithPath(Aws::String &&value)
void SetProtocol(const HealthCheckProtocol &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue