AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
ContainerServiceHealthCheckConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lightsail/Lightsail_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Lightsail {
20namespace Model {
21
29 public:
30 AWS_LIGHTSAIL_API ContainerServiceHealthCheckConfig() = default;
33 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
41 inline int GetHealthyThreshold() const { return m_healthyThreshold; }
42 inline bool HealthyThresholdHasBeenSet() const { return m_healthyThresholdHasBeenSet; }
43 inline void SetHealthyThreshold(int value) {
44 m_healthyThresholdHasBeenSet = true;
45 m_healthyThreshold = value;
46 }
49 return *this;
50 }
52
54
59 inline int GetUnhealthyThreshold() const { return m_unhealthyThreshold; }
60 inline bool UnhealthyThresholdHasBeenSet() const { return m_unhealthyThresholdHasBeenSet; }
61 inline void SetUnhealthyThreshold(int value) {
62 m_unhealthyThresholdHasBeenSet = true;
63 m_unhealthyThreshold = value;
64 }
67 return *this;
68 }
70
72
77 inline int GetTimeoutSeconds() const { return m_timeoutSeconds; }
78 inline bool TimeoutSecondsHasBeenSet() const { return m_timeoutSecondsHasBeenSet; }
79 inline void SetTimeoutSeconds(int value) {
80 m_timeoutSecondsHasBeenSet = true;
81 m_timeoutSeconds = value;
82 }
84 SetTimeoutSeconds(value);
85 return *this;
86 }
88
90
95 inline int GetIntervalSeconds() const { return m_intervalSeconds; }
96 inline bool IntervalSecondsHasBeenSet() const { return m_intervalSecondsHasBeenSet; }
97 inline void SetIntervalSeconds(int value) {
98 m_intervalSecondsHasBeenSet = true;
99 m_intervalSeconds = value;
100 }
102 SetIntervalSeconds(value);
103 return *this;
104 }
106
108
112 inline const Aws::String& GetPath() const { return m_path; }
113 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
114 template <typename PathT = Aws::String>
115 void SetPath(PathT&& value) {
116 m_pathHasBeenSet = true;
117 m_path = std::forward<PathT>(value);
118 }
119 template <typename PathT = Aws::String>
121 SetPath(std::forward<PathT>(value));
122 return *this;
123 }
125
127
133 inline const Aws::String& GetSuccessCodes() const { return m_successCodes; }
134 inline bool SuccessCodesHasBeenSet() const { return m_successCodesHasBeenSet; }
135 template <typename SuccessCodesT = Aws::String>
136 void SetSuccessCodes(SuccessCodesT&& value) {
137 m_successCodesHasBeenSet = true;
138 m_successCodes = std::forward<SuccessCodesT>(value);
139 }
140 template <typename SuccessCodesT = Aws::String>
142 SetSuccessCodes(std::forward<SuccessCodesT>(value));
143 return *this;
144 }
146 private:
147 int m_healthyThreshold{0};
148
149 int m_unhealthyThreshold{0};
150
151 int m_timeoutSeconds{0};
152
153 int m_intervalSeconds{0};
154
155 Aws::String m_path;
156
157 Aws::String m_successCodes;
158 bool m_healthyThresholdHasBeenSet = false;
159 bool m_unhealthyThresholdHasBeenSet = false;
160 bool m_timeoutSecondsHasBeenSet = false;
161 bool m_intervalSecondsHasBeenSet = false;
162 bool m_pathHasBeenSet = false;
163 bool m_successCodesHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace Lightsail
168} // namespace Aws
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
ContainerServiceHealthCheckConfig & WithPath(PathT &&value)
ContainerServiceHealthCheckConfig & WithSuccessCodes(SuccessCodesT &&value)
ContainerServiceHealthCheckConfig & WithUnhealthyThreshold(int value)
AWS_LIGHTSAIL_API ContainerServiceHealthCheckConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API ContainerServiceHealthCheckConfig()=default
ContainerServiceHealthCheckConfig & WithHealthyThreshold(int value)
AWS_LIGHTSAIL_API ContainerServiceHealthCheckConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
ContainerServiceHealthCheckConfig & WithTimeoutSeconds(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue