AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
HealthCheck.h
Go to the documentation of this file.
1
6#pragma once
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
78 {
79 public:
84
85
102 inline const Aws::Vector<Aws::String>& GetCommand() const{ return m_command; }
103
120 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
121
138 inline void SetCommand(const Aws::Vector<Aws::String>& value) { m_commandHasBeenSet = true; m_command = value; }
139
156 inline void SetCommand(Aws::Vector<Aws::String>&& value) { m_commandHasBeenSet = true; m_command = std::move(value); }
157
174 inline HealthCheck& WithCommand(const Aws::Vector<Aws::String>& value) { SetCommand(value); return *this;}
175
192 inline HealthCheck& WithCommand(Aws::Vector<Aws::String>&& value) { SetCommand(std::move(value)); return *this;}
193
210 inline HealthCheck& AddCommand(const Aws::String& value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
211
228 inline HealthCheck& AddCommand(Aws::String&& value) { m_commandHasBeenSet = true; m_command.push_back(std::move(value)); return *this; }
229
246 inline HealthCheck& AddCommand(const char* value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
247
248
253 inline int GetInterval() const{ return m_interval; }
254
259 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
260
265 inline void SetInterval(int value) { m_intervalHasBeenSet = true; m_interval = value; }
266
271 inline HealthCheck& WithInterval(int value) { SetInterval(value); return *this;}
272
273
279 inline int GetTimeout() const{ return m_timeout; }
280
286 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
287
293 inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; }
294
300 inline HealthCheck& WithTimeout(int value) { SetTimeout(value); return *this;}
301
302
308 inline int GetRetries() const{ return m_retries; }
309
315 inline bool RetriesHasBeenSet() const { return m_retriesHasBeenSet; }
316
322 inline void SetRetries(int value) { m_retriesHasBeenSet = true; m_retries = value; }
323
329 inline HealthCheck& WithRetries(int value) { SetRetries(value); return *this;}
330
331
340 inline int GetStartPeriod() const{ return m_startPeriod; }
341
350 inline bool StartPeriodHasBeenSet() const { return m_startPeriodHasBeenSet; }
351
360 inline void SetStartPeriod(int value) { m_startPeriodHasBeenSet = true; m_startPeriod = value; }
361
370 inline HealthCheck& WithStartPeriod(int value) { SetStartPeriod(value); return *this;}
371
372 private:
373
374 Aws::Vector<Aws::String> m_command;
375 bool m_commandHasBeenSet = false;
376
377 int m_interval;
378 bool m_intervalHasBeenSet = false;
379
380 int m_timeout;
381 bool m_timeoutHasBeenSet = false;
382
383 int m_retries;
384 bool m_retriesHasBeenSet = false;
385
386 int m_startPeriod;
387 bool m_startPeriodHasBeenSet = false;
388 };
389
390} // namespace Model
391} // namespace ECS
392} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
HealthCheck & WithRetries(int value)
Definition: HealthCheck.h:329
void SetCommand(const Aws::Vector< Aws::String > &value)
Definition: HealthCheck.h:138
AWS_ECS_API HealthCheck & operator=(Aws::Utils::Json::JsonView jsonValue)
HealthCheck & WithCommand(Aws::Vector< Aws::String > &&value)
Definition: HealthCheck.h:192
void SetCommand(Aws::Vector< Aws::String > &&value)
Definition: HealthCheck.h:156
HealthCheck & WithCommand(const Aws::Vector< Aws::String > &value)
Definition: HealthCheck.h:174
bool StartPeriodHasBeenSet() const
Definition: HealthCheck.h:350
HealthCheck & WithStartPeriod(int value)
Definition: HealthCheck.h:370
HealthCheck & WithTimeout(int value)
Definition: HealthCheck.h:300
void SetRetries(int value)
Definition: HealthCheck.h:322
const Aws::Vector< Aws::String > & GetCommand() const
Definition: HealthCheck.h:102
HealthCheck & AddCommand(const Aws::String &value)
Definition: HealthCheck.h:210
void SetTimeout(int value)
Definition: HealthCheck.h:293
HealthCheck & AddCommand(Aws::String &&value)
Definition: HealthCheck.h:228
void SetInterval(int value)
Definition: HealthCheck.h:265
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStartPeriod(int value)
Definition: HealthCheck.h:360
HealthCheck & AddCommand(const char *value)
Definition: HealthCheck.h:246
HealthCheck & WithInterval(int value)
Definition: HealthCheck.h:271
AWS_ECS_API HealthCheck(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector