AWS SDK for C++  1.9.108
AWS SDK for C++
HealthCheck.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace ECS
23 {
24 namespace Model
25 {
26 
66  {
67  public:
72 
73 
91  inline const Aws::Vector<Aws::String>& GetCommand() const{ return m_command; }
92 
110  inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
111 
129  inline void SetCommand(const Aws::Vector<Aws::String>& value) { m_commandHasBeenSet = true; m_command = value; }
130 
148  inline void SetCommand(Aws::Vector<Aws::String>&& value) { m_commandHasBeenSet = true; m_command = std::move(value); }
149 
167  inline HealthCheck& WithCommand(const Aws::Vector<Aws::String>& value) { SetCommand(value); return *this;}
168 
186  inline HealthCheck& WithCommand(Aws::Vector<Aws::String>&& value) { SetCommand(std::move(value)); return *this;}
187 
205  inline HealthCheck& AddCommand(const Aws::String& value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
206 
224  inline HealthCheck& AddCommand(Aws::String&& value) { m_commandHasBeenSet = true; m_command.push_back(std::move(value)); return *this; }
225 
243  inline HealthCheck& AddCommand(const char* value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
244 
245 
250  inline int GetInterval() const{ return m_interval; }
251 
256  inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
257 
262  inline void SetInterval(int value) { m_intervalHasBeenSet = true; m_interval = value; }
263 
268  inline HealthCheck& WithInterval(int value) { SetInterval(value); return *this;}
269 
270 
276  inline int GetTimeout() const{ return m_timeout; }
277 
283  inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
284 
290  inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; }
291 
297  inline HealthCheck& WithTimeout(int value) { SetTimeout(value); return *this;}
298 
299 
305  inline int GetRetries() const{ return m_retries; }
306 
312  inline bool RetriesHasBeenSet() const { return m_retriesHasBeenSet; }
313 
319  inline void SetRetries(int value) { m_retriesHasBeenSet = true; m_retries = value; }
320 
326  inline HealthCheck& WithRetries(int value) { SetRetries(value); return *this;}
327 
328 
337  inline int GetStartPeriod() const{ return m_startPeriod; }
338 
347  inline bool StartPeriodHasBeenSet() const { return m_startPeriodHasBeenSet; }
348 
357  inline void SetStartPeriod(int value) { m_startPeriodHasBeenSet = true; m_startPeriod = value; }
358 
367  inline HealthCheck& WithStartPeriod(int value) { SetStartPeriod(value); return *this;}
368 
369  private:
370 
371  Aws::Vector<Aws::String> m_command;
372  bool m_commandHasBeenSet;
373 
374  int m_interval;
375  bool m_intervalHasBeenSet;
376 
377  int m_timeout;
378  bool m_timeoutHasBeenSet;
379 
380  int m_retries;
381  bool m_retriesHasBeenSet;
382 
383  int m_startPeriod;
384  bool m_startPeriodHasBeenSet;
385  };
386 
387 } // namespace Model
388 } // namespace ECS
389 } // namespace Aws
Aws::ECS::Model::HealthCheck::WithTimeout
HealthCheck & WithTimeout(int value)
Definition: HealthCheck.h:297
Aws::ECS::Model::HealthCheck::GetInterval
int GetInterval() const
Definition: HealthCheck.h:250
Aws::ECS::Model::HealthCheck::IntervalHasBeenSet
bool IntervalHasBeenSet() const
Definition: HealthCheck.h:256
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::HealthCheck::GetTimeout
int GetTimeout() const
Definition: HealthCheck.h:276
Aws::ECS::Model::HealthCheck::HealthCheck
HealthCheck(Aws::Utils::Json::JsonView jsonValue)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECS::Model::HealthCheck::AddCommand
HealthCheck & AddCommand(Aws::String &&value)
Definition: HealthCheck.h:224
Aws::ECS::Model::HealthCheck::SetInterval
void SetInterval(int value)
Definition: HealthCheck.h:262
Aws::ECS::Model::HealthCheck::RetriesHasBeenSet
bool RetriesHasBeenSet() const
Definition: HealthCheck.h:312
AWSVector.h
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::HealthCheck
Definition: HealthCheck.h:66
Aws::ECS::Model::HealthCheck::StartPeriodHasBeenSet
bool StartPeriodHasBeenSet() const
Definition: HealthCheck.h:347
Aws::ECS::Model::HealthCheck::SetCommand
void SetCommand(Aws::Vector< Aws::String > &&value)
Definition: HealthCheck.h:148
Aws::ECS::Model::HealthCheck::HealthCheck
HealthCheck()
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::ECS::Model::HealthCheck::operator=
HealthCheck & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::HealthCheck::AddCommand
HealthCheck & AddCommand(const Aws::String &value)
Definition: HealthCheck.h:205
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECS::Model::HealthCheck::SetTimeout
void SetTimeout(int value)
Definition: HealthCheck.h:290
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::HealthCheck::TimeoutHasBeenSet
bool TimeoutHasBeenSet() const
Definition: HealthCheck.h:283
Aws::ECS::Model::HealthCheck::WithStartPeriod
HealthCheck & WithStartPeriod(int value)
Definition: HealthCheck.h:367
Aws::ECS::Model::HealthCheck::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECS::Model::HealthCheck::WithInterval
HealthCheck & WithInterval(int value)
Definition: HealthCheck.h:268
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::HealthCheck::WithCommand
HealthCheck & WithCommand(const Aws::Vector< Aws::String > &value)
Definition: HealthCheck.h:167
Aws::ECS::Model::HealthCheck::GetStartPeriod
int GetStartPeriod() const
Definition: HealthCheck.h:337
Aws::ECS::Model::HealthCheck::CommandHasBeenSet
bool CommandHasBeenSet() const
Definition: HealthCheck.h:110
Aws::ECS::Model::HealthCheck::AddCommand
HealthCheck & AddCommand(const char *value)
Definition: HealthCheck.h:243
Aws::ECS::Model::HealthCheck::SetRetries
void SetRetries(int value)
Definition: HealthCheck.h:319
Aws::ECS::Model::HealthCheck::SetStartPeriod
void SetStartPeriod(int value)
Definition: HealthCheck.h:357
Aws::ECS::Model::HealthCheck::GetCommand
const Aws::Vector< Aws::String > & GetCommand() const
Definition: HealthCheck.h:91
Aws::ECS::Model::HealthCheck::WithRetries
HealthCheck & WithRetries(int value)
Definition: HealthCheck.h:326
Aws::ECS::Model::HealthCheck::GetRetries
int GetRetries() const
Definition: HealthCheck.h:305
ECS_EXPORTS.h
Aws::ECS::Model::HealthCheck::SetCommand
void SetCommand(const Aws::Vector< Aws::String > &value)
Definition: HealthCheck.h:129
Aws::ECS::Model::HealthCheck::WithCommand
HealthCheck & WithCommand(Aws::Vector< Aws::String > &&value)
Definition: HealthCheck.h:186