AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
HealthCheck.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.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 ECS
23{
24namespace Model
25{
26
138 {
139 public:
140 AWS_ECS_API HealthCheck() = default;
144
145
147
161 inline const Aws::Vector<Aws::String>& GetCommand() const { return m_command; }
162 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
163 template<typename CommandT = Aws::Vector<Aws::String>>
164 void SetCommand(CommandT&& value) { m_commandHasBeenSet = true; m_command = std::forward<CommandT>(value); }
165 template<typename CommandT = Aws::Vector<Aws::String>>
166 HealthCheck& WithCommand(CommandT&& value) { SetCommand(std::forward<CommandT>(value)); return *this;}
167 template<typename CommandT = Aws::String>
168 HealthCheck& AddCommand(CommandT&& value) { m_commandHasBeenSet = true; m_command.emplace_back(std::forward<CommandT>(value)); return *this; }
170
172
177 inline int GetInterval() const { return m_interval; }
178 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
179 inline void SetInterval(int value) { m_intervalHasBeenSet = true; m_interval = value; }
180 inline HealthCheck& WithInterval(int value) { SetInterval(value); return *this;}
182
184
190 inline int GetTimeout() const { return m_timeout; }
191 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
192 inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; }
193 inline HealthCheck& WithTimeout(int value) { SetTimeout(value); return *this;}
195
197
203 inline int GetRetries() const { return m_retries; }
204 inline bool RetriesHasBeenSet() const { return m_retriesHasBeenSet; }
205 inline void SetRetries(int value) { m_retriesHasBeenSet = true; m_retries = value; }
206 inline HealthCheck& WithRetries(int value) { SetRetries(value); return *this;}
208
210
219 inline int GetStartPeriod() const { return m_startPeriod; }
220 inline bool StartPeriodHasBeenSet() const { return m_startPeriodHasBeenSet; }
221 inline void SetStartPeriod(int value) { m_startPeriodHasBeenSet = true; m_startPeriod = value; }
222 inline HealthCheck& WithStartPeriod(int value) { SetStartPeriod(value); return *this;}
224 private:
225
226 Aws::Vector<Aws::String> m_command;
227 bool m_commandHasBeenSet = false;
228
229 int m_interval{0};
230 bool m_intervalHasBeenSet = false;
231
232 int m_timeout{0};
233 bool m_timeoutHasBeenSet = false;
234
235 int m_retries{0};
236 bool m_retriesHasBeenSet = false;
237
238 int m_startPeriod{0};
239 bool m_startPeriodHasBeenSet = false;
240 };
241
242} // namespace Model
243} // namespace ECS
244} // 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