AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
HealthCheck.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ecs/ECS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ECS {
21namespace Model {
22
134 public:
135 AWS_ECS_API HealthCheck() = default;
139
141
155 inline const Aws::Vector<Aws::String>& GetCommand() const { return m_command; }
156 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
157 template <typename CommandT = Aws::Vector<Aws::String>>
158 void SetCommand(CommandT&& value) {
159 m_commandHasBeenSet = true;
160 m_command = std::forward<CommandT>(value);
161 }
162 template <typename CommandT = Aws::Vector<Aws::String>>
163 HealthCheck& WithCommand(CommandT&& value) {
164 SetCommand(std::forward<CommandT>(value));
165 return *this;
166 }
167 template <typename CommandT = Aws::String>
168 HealthCheck& AddCommand(CommandT&& value) {
169 m_commandHasBeenSet = true;
170 m_command.emplace_back(std::forward<CommandT>(value));
171 return *this;
172 }
174
176
181 inline int GetInterval() const { return m_interval; }
182 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
183 inline void SetInterval(int value) {
184 m_intervalHasBeenSet = true;
185 m_interval = value;
186 }
187 inline HealthCheck& WithInterval(int value) {
188 SetInterval(value);
189 return *this;
190 }
192
194
200 inline int GetTimeout() const { return m_timeout; }
201 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
202 inline void SetTimeout(int value) {
203 m_timeoutHasBeenSet = true;
204 m_timeout = value;
205 }
206 inline HealthCheck& WithTimeout(int value) {
207 SetTimeout(value);
208 return *this;
209 }
211
213
219 inline int GetRetries() const { return m_retries; }
220 inline bool RetriesHasBeenSet() const { return m_retriesHasBeenSet; }
221 inline void SetRetries(int value) {
222 m_retriesHasBeenSet = true;
223 m_retries = value;
224 }
225 inline HealthCheck& WithRetries(int value) {
226 SetRetries(value);
227 return *this;
228 }
230
232
241 inline int GetStartPeriod() const { return m_startPeriod; }
242 inline bool StartPeriodHasBeenSet() const { return m_startPeriodHasBeenSet; }
243 inline void SetStartPeriod(int value) {
244 m_startPeriodHasBeenSet = true;
245 m_startPeriod = value;
246 }
247 inline HealthCheck& WithStartPeriod(int value) {
248 SetStartPeriod(value);
249 return *this;
250 }
252 private:
253 Aws::Vector<Aws::String> m_command;
254
255 int m_interval{0};
256
257 int m_timeout{0};
258
259 int m_retries{0};
260
261 int m_startPeriod{0};
262 bool m_commandHasBeenSet = false;
263 bool m_intervalHasBeenSet = false;
264 bool m_timeoutHasBeenSet = false;
265 bool m_retriesHasBeenSet = false;
266 bool m_startPeriodHasBeenSet = false;
267};
268
269} // namespace Model
270} // namespace ECS
271} // namespace Aws
HealthCheck & WithRetries(int value)
AWS_ECS_API HealthCheck & operator=(Aws::Utils::Json::JsonView jsonValue)
HealthCheck & AddCommand(CommandT &&value)
void SetCommand(CommandT &&value)
HealthCheck & WithStartPeriod(int value)
HealthCheck & WithTimeout(int value)
const Aws::Vector< Aws::String > & GetCommand() const
AWS_ECS_API HealthCheck()=default
HealthCheck & WithCommand(CommandT &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStartPeriod(int value)
HealthCheck & WithInterval(int value)
AWS_ECS_API HealthCheck(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue