AWS SDK for C++  1.9.108
AWS SDK for C++
ContainerServiceHealthCheckConfig.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Lightsail
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
46  inline int GetHealthyThreshold() const{ return m_healthyThreshold; }
47 
53  inline bool HealthyThresholdHasBeenSet() const { return m_healthyThresholdHasBeenSet; }
54 
60  inline void SetHealthyThreshold(int value) { m_healthyThresholdHasBeenSet = true; m_healthyThreshold = value; }
61 
67  inline ContainerServiceHealthCheckConfig& WithHealthyThreshold(int value) { SetHealthyThreshold(value); return *this;}
68 
69 
75  inline int GetUnhealthyThreshold() const{ return m_unhealthyThreshold; }
76 
82  inline bool UnhealthyThresholdHasBeenSet() const { return m_unhealthyThresholdHasBeenSet; }
83 
89  inline void SetUnhealthyThreshold(int value) { m_unhealthyThresholdHasBeenSet = true; m_unhealthyThreshold = value; }
90 
96  inline ContainerServiceHealthCheckConfig& WithUnhealthyThreshold(int value) { SetUnhealthyThreshold(value); return *this;}
97 
98 
104  inline int GetTimeoutSeconds() const{ return m_timeoutSeconds; }
105 
111  inline bool TimeoutSecondsHasBeenSet() const { return m_timeoutSecondsHasBeenSet; }
112 
118  inline void SetTimeoutSeconds(int value) { m_timeoutSecondsHasBeenSet = true; m_timeoutSeconds = value; }
119 
125  inline ContainerServiceHealthCheckConfig& WithTimeoutSeconds(int value) { SetTimeoutSeconds(value); return *this;}
126 
127 
133  inline int GetIntervalSeconds() const{ return m_intervalSeconds; }
134 
140  inline bool IntervalSecondsHasBeenSet() const { return m_intervalSecondsHasBeenSet; }
141 
147  inline void SetIntervalSeconds(int value) { m_intervalSecondsHasBeenSet = true; m_intervalSeconds = value; }
148 
154  inline ContainerServiceHealthCheckConfig& WithIntervalSeconds(int value) { SetIntervalSeconds(value); return *this;}
155 
156 
161  inline const Aws::String& GetPath() const{ return m_path; }
162 
167  inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
168 
173  inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
174 
179  inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
180 
185  inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
186 
191  inline ContainerServiceHealthCheckConfig& WithPath(const Aws::String& value) { SetPath(value); return *this;}
192 
197  inline ContainerServiceHealthCheckConfig& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
198 
203  inline ContainerServiceHealthCheckConfig& WithPath(const char* value) { SetPath(value); return *this;}
204 
205 
212  inline const Aws::String& GetSuccessCodes() const{ return m_successCodes; }
213 
220  inline bool SuccessCodesHasBeenSet() const { return m_successCodesHasBeenSet; }
221 
228  inline void SetSuccessCodes(const Aws::String& value) { m_successCodesHasBeenSet = true; m_successCodes = value; }
229 
236  inline void SetSuccessCodes(Aws::String&& value) { m_successCodesHasBeenSet = true; m_successCodes = std::move(value); }
237 
244  inline void SetSuccessCodes(const char* value) { m_successCodesHasBeenSet = true; m_successCodes.assign(value); }
245 
252  inline ContainerServiceHealthCheckConfig& WithSuccessCodes(const Aws::String& value) { SetSuccessCodes(value); return *this;}
253 
260  inline ContainerServiceHealthCheckConfig& WithSuccessCodes(Aws::String&& value) { SetSuccessCodes(std::move(value)); return *this;}
261 
268  inline ContainerServiceHealthCheckConfig& WithSuccessCodes(const char* value) { SetSuccessCodes(value); return *this;}
269 
270  private:
271 
272  int m_healthyThreshold;
273  bool m_healthyThresholdHasBeenSet;
274 
275  int m_unhealthyThreshold;
276  bool m_unhealthyThresholdHasBeenSet;
277 
278  int m_timeoutSeconds;
279  bool m_timeoutSecondsHasBeenSet;
280 
281  int m_intervalSeconds;
282  bool m_intervalSecondsHasBeenSet;
283 
284  Aws::String m_path;
285  bool m_pathHasBeenSet;
286 
287  Aws::String m_successCodes;
288  bool m_successCodesHasBeenSet;
289  };
290 
291 } // namespace Model
292 } // namespace Lightsail
293 } // namespace Aws
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig::SetSuccessCodes
void SetSuccessCodes(const char *value)
Definition: ContainerServiceHealthCheckConfig.h:244
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig::PathHasBeenSet
bool PathHasBeenSet() const
Definition: ContainerServiceHealthCheckConfig.h:167
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig::WithSuccessCodes
ContainerServiceHealthCheckConfig & WithSuccessCodes(const char *value)
Definition: ContainerServiceHealthCheckConfig.h:268
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig::WithHealthyThreshold
ContainerServiceHealthCheckConfig & WithHealthyThreshold(int value)
Definition: ContainerServiceHealthCheckConfig.h:67
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig::GetSuccessCodes
const Aws::String & GetSuccessCodes() const
Definition: ContainerServiceHealthCheckConfig.h:212
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig
Definition: ContainerServiceHealthCheckConfig.h:33
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig::WithPath
ContainerServiceHealthCheckConfig & WithPath(Aws::String &&value)
Definition: ContainerServiceHealthCheckConfig.h:197
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig::WithSuccessCodes
ContainerServiceHealthCheckConfig & WithSuccessCodes(const Aws::String &value)
Definition: ContainerServiceHealthCheckConfig.h:252
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig::GetPath
const Aws::String & GetPath() const
Definition: ContainerServiceHealthCheckConfig.h:161
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig::ContainerServiceHealthCheckConfig
ContainerServiceHealthCheckConfig()
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig::IntervalSecondsHasBeenSet
bool IntervalSecondsHasBeenSet() const
Definition: ContainerServiceHealthCheckConfig.h:140
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig::WithUnhealthyThreshold
ContainerServiceHealthCheckConfig & WithUnhealthyThreshold(int value)
Definition: ContainerServiceHealthCheckConfig.h:96
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig::WithTimeoutSeconds
ContainerServiceHealthCheckConfig & WithTimeoutSeconds(int value)
Definition: ContainerServiceHealthCheckConfig.h:125
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig::SetUnhealthyThreshold
void SetUnhealthyThreshold(int value)
Definition: ContainerServiceHealthCheckConfig.h:89
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig::WithPath
ContainerServiceHealthCheckConfig & WithPath(const char *value)
Definition: ContainerServiceHealthCheckConfig.h:203
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig::SetSuccessCodes
void SetSuccessCodes(Aws::String &&value)
Definition: ContainerServiceHealthCheckConfig.h:236
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig::GetUnhealthyThreshold
int GetUnhealthyThreshold() const
Definition: ContainerServiceHealthCheckConfig.h:75
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig::ContainerServiceHealthCheckConfig
ContainerServiceHealthCheckConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig::SuccessCodesHasBeenSet
bool SuccessCodesHasBeenSet() const
Definition: ContainerServiceHealthCheckConfig.h:220
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig::SetSuccessCodes
void SetSuccessCodes(const Aws::String &value)
Definition: ContainerServiceHealthCheckConfig.h:228
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig::GetHealthyThreshold
int GetHealthyThreshold() const
Definition: ContainerServiceHealthCheckConfig.h:46
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig::TimeoutSecondsHasBeenSet
bool TimeoutSecondsHasBeenSet() const
Definition: ContainerServiceHealthCheckConfig.h:111
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig::WithIntervalSeconds
ContainerServiceHealthCheckConfig & WithIntervalSeconds(int value)
Definition: ContainerServiceHealthCheckConfig.h:154
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig::HealthyThresholdHasBeenSet
bool HealthyThresholdHasBeenSet() const
Definition: ContainerServiceHealthCheckConfig.h:53
Lightsail_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig::operator=
ContainerServiceHealthCheckConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig::SetIntervalSeconds
void SetIntervalSeconds(int value)
Definition: ContainerServiceHealthCheckConfig.h:147
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig::SetPath
void SetPath(const Aws::String &value)
Definition: ContainerServiceHealthCheckConfig.h:173
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig::SetPath
void SetPath(const char *value)
Definition: ContainerServiceHealthCheckConfig.h:185
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig::UnhealthyThresholdHasBeenSet
bool UnhealthyThresholdHasBeenSet() const
Definition: ContainerServiceHealthCheckConfig.h:82
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig::WithSuccessCodes
ContainerServiceHealthCheckConfig & WithSuccessCodes(Aws::String &&value)
Definition: ContainerServiceHealthCheckConfig.h:260
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig::SetHealthyThreshold
void SetHealthyThreshold(int value)
Definition: ContainerServiceHealthCheckConfig.h:60
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig::GetTimeoutSeconds
int GetTimeoutSeconds() const
Definition: ContainerServiceHealthCheckConfig.h:104
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig::SetPath
void SetPath(Aws::String &&value)
Definition: ContainerServiceHealthCheckConfig.h:179
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig::GetIntervalSeconds
int GetIntervalSeconds() const
Definition: ContainerServiceHealthCheckConfig.h:133
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig::WithPath
ContainerServiceHealthCheckConfig & WithPath(const Aws::String &value)
Definition: ContainerServiceHealthCheckConfig.h:191
Aws::Lightsail::Model::ContainerServiceHealthCheckConfig::SetTimeoutSeconds
void SetTimeoutSeconds(int value)
Definition: ContainerServiceHealthCheckConfig.h:118