AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ContainerServiceHealthCheckConfig.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Lightsail
22{
23namespace Model
24{
25
33 {
34 public:
38 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
47 inline int GetHealthyThreshold() const{ return m_healthyThreshold; }
48 inline bool HealthyThresholdHasBeenSet() const { return m_healthyThresholdHasBeenSet; }
49 inline void SetHealthyThreshold(int value) { m_healthyThresholdHasBeenSet = true; m_healthyThreshold = value; }
52
54
59 inline int GetUnhealthyThreshold() const{ return m_unhealthyThreshold; }
60 inline bool UnhealthyThresholdHasBeenSet() const { return m_unhealthyThresholdHasBeenSet; }
61 inline void SetUnhealthyThreshold(int value) { m_unhealthyThresholdHasBeenSet = true; m_unhealthyThreshold = value; }
64
66
71 inline int GetTimeoutSeconds() const{ return m_timeoutSeconds; }
72 inline bool TimeoutSecondsHasBeenSet() const { return m_timeoutSecondsHasBeenSet; }
73 inline void SetTimeoutSeconds(int value) { m_timeoutSecondsHasBeenSet = true; m_timeoutSeconds = value; }
76
78
83 inline int GetIntervalSeconds() const{ return m_intervalSeconds; }
84 inline bool IntervalSecondsHasBeenSet() const { return m_intervalSecondsHasBeenSet; }
85 inline void SetIntervalSeconds(int value) { m_intervalSecondsHasBeenSet = true; m_intervalSeconds = value; }
88
90
94 inline const Aws::String& GetPath() const{ return m_path; }
95 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
96 inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
97 inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
98 inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
99 inline ContainerServiceHealthCheckConfig& WithPath(const Aws::String& value) { SetPath(value); return *this;}
100 inline ContainerServiceHealthCheckConfig& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
101 inline ContainerServiceHealthCheckConfig& WithPath(const char* value) { SetPath(value); return *this;}
103
105
111 inline const Aws::String& GetSuccessCodes() const{ return m_successCodes; }
112 inline bool SuccessCodesHasBeenSet() const { return m_successCodesHasBeenSet; }
113 inline void SetSuccessCodes(const Aws::String& value) { m_successCodesHasBeenSet = true; m_successCodes = value; }
114 inline void SetSuccessCodes(Aws::String&& value) { m_successCodesHasBeenSet = true; m_successCodes = std::move(value); }
115 inline void SetSuccessCodes(const char* value) { m_successCodesHasBeenSet = true; m_successCodes.assign(value); }
117 inline ContainerServiceHealthCheckConfig& WithSuccessCodes(Aws::String&& value) { SetSuccessCodes(std::move(value)); return *this;}
118 inline ContainerServiceHealthCheckConfig& WithSuccessCodes(const char* value) { SetSuccessCodes(value); return *this;}
120 private:
121
122 int m_healthyThreshold;
123 bool m_healthyThresholdHasBeenSet = false;
124
125 int m_unhealthyThreshold;
126 bool m_unhealthyThresholdHasBeenSet = false;
127
128 int m_timeoutSeconds;
129 bool m_timeoutSecondsHasBeenSet = false;
130
131 int m_intervalSeconds;
132 bool m_intervalSecondsHasBeenSet = false;
133
134 Aws::String m_path;
135 bool m_pathHasBeenSet = false;
136
137 Aws::String m_successCodes;
138 bool m_successCodesHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace Lightsail
143} // namespace Aws
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
ContainerServiceHealthCheckConfig & WithSuccessCodes(const Aws::String &value)
ContainerServiceHealthCheckConfig & WithPath(Aws::String &&value)
ContainerServiceHealthCheckConfig & WithPath(const char *value)
ContainerServiceHealthCheckConfig & WithUnhealthyThreshold(int value)
ContainerServiceHealthCheckConfig & WithSuccessCodes(Aws::String &&value)
AWS_LIGHTSAIL_API ContainerServiceHealthCheckConfig(Aws::Utils::Json::JsonView jsonValue)
ContainerServiceHealthCheckConfig & WithIntervalSeconds(int value)
ContainerServiceHealthCheckConfig & WithHealthyThreshold(int value)
ContainerServiceHealthCheckConfig & WithPath(const Aws::String &value)
AWS_LIGHTSAIL_API ContainerServiceHealthCheckConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
ContainerServiceHealthCheckConfig & WithSuccessCodes(const char *value)
ContainerServiceHealthCheckConfig & WithTimeoutSeconds(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue