AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
109 {
110 public:
111 AWS_ECS_API HealthCheck();
115
116
118
132 inline const Aws::Vector<Aws::String>& GetCommand() const{ return m_command; }
133 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
134 inline void SetCommand(const Aws::Vector<Aws::String>& value) { m_commandHasBeenSet = true; m_command = value; }
135 inline void SetCommand(Aws::Vector<Aws::String>&& value) { m_commandHasBeenSet = true; m_command = std::move(value); }
136 inline HealthCheck& WithCommand(const Aws::Vector<Aws::String>& value) { SetCommand(value); return *this;}
137 inline HealthCheck& WithCommand(Aws::Vector<Aws::String>&& value) { SetCommand(std::move(value)); return *this;}
138 inline HealthCheck& AddCommand(const Aws::String& value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
139 inline HealthCheck& AddCommand(Aws::String&& value) { m_commandHasBeenSet = true; m_command.push_back(std::move(value)); return *this; }
140 inline HealthCheck& AddCommand(const char* value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
142
144
148 inline int GetInterval() const{ return m_interval; }
149 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
150 inline void SetInterval(int value) { m_intervalHasBeenSet = true; m_interval = value; }
151 inline HealthCheck& WithInterval(int value) { SetInterval(value); return *this;}
153
155
160 inline int GetTimeout() const{ return m_timeout; }
161 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
162 inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; }
163 inline HealthCheck& WithTimeout(int value) { SetTimeout(value); return *this;}
165
167
172 inline int GetRetries() const{ return m_retries; }
173 inline bool RetriesHasBeenSet() const { return m_retriesHasBeenSet; }
174 inline void SetRetries(int value) { m_retriesHasBeenSet = true; m_retries = value; }
175 inline HealthCheck& WithRetries(int value) { SetRetries(value); return *this;}
177
179
187 inline int GetStartPeriod() const{ return m_startPeriod; }
188 inline bool StartPeriodHasBeenSet() const { return m_startPeriodHasBeenSet; }
189 inline void SetStartPeriod(int value) { m_startPeriodHasBeenSet = true; m_startPeriod = value; }
190 inline HealthCheck& WithStartPeriod(int value) { SetStartPeriod(value); return *this;}
192 private:
193
194 Aws::Vector<Aws::String> m_command;
195 bool m_commandHasBeenSet = false;
196
197 int m_interval;
198 bool m_intervalHasBeenSet = false;
199
200 int m_timeout;
201 bool m_timeoutHasBeenSet = false;
202
203 int m_retries;
204 bool m_retriesHasBeenSet = false;
205
206 int m_startPeriod;
207 bool m_startPeriodHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace ECS
212} // namespace Aws
HealthCheck & WithRetries(int value)
void SetCommand(const Aws::Vector< Aws::String > &value)
AWS_ECS_API HealthCheck & operator=(Aws::Utils::Json::JsonView jsonValue)
HealthCheck & WithCommand(Aws::Vector< Aws::String > &&value)
void SetCommand(Aws::Vector< Aws::String > &&value)
HealthCheck & WithCommand(const Aws::Vector< Aws::String > &value)
HealthCheck & WithStartPeriod(int value)
HealthCheck & WithTimeout(int value)
const Aws::Vector< Aws::String > & GetCommand() const
HealthCheck & AddCommand(const Aws::String &value)
HealthCheck & AddCommand(Aws::String &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStartPeriod(int value)
HealthCheck & AddCommand(const char *value)
HealthCheck & WithInterval(int value)
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
Aws::Utils::Json::JsonValue JsonValue