AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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:
35 AWS_LIGHTSAIL_API ContainerServiceHealthCheckConfig() = default;
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 template<typename PathT = Aws::String>
97 void SetPath(PathT&& value) { m_pathHasBeenSet = true; m_path = std::forward<PathT>(value); }
98 template<typename PathT = Aws::String>
99 ContainerServiceHealthCheckConfig& WithPath(PathT&& value) { SetPath(std::forward<PathT>(value)); return *this;}
101
103
109 inline const Aws::String& GetSuccessCodes() const { return m_successCodes; }
110 inline bool SuccessCodesHasBeenSet() const { return m_successCodesHasBeenSet; }
111 template<typename SuccessCodesT = Aws::String>
112 void SetSuccessCodes(SuccessCodesT&& value) { m_successCodesHasBeenSet = true; m_successCodes = std::forward<SuccessCodesT>(value); }
113 template<typename SuccessCodesT = Aws::String>
114 ContainerServiceHealthCheckConfig& WithSuccessCodes(SuccessCodesT&& value) { SetSuccessCodes(std::forward<SuccessCodesT>(value)); return *this;}
116 private:
117
118 int m_healthyThreshold{0};
119 bool m_healthyThresholdHasBeenSet = false;
120
121 int m_unhealthyThreshold{0};
122 bool m_unhealthyThresholdHasBeenSet = false;
123
124 int m_timeoutSeconds{0};
125 bool m_timeoutSecondsHasBeenSet = false;
126
127 int m_intervalSeconds{0};
128 bool m_intervalSecondsHasBeenSet = false;
129
130 Aws::String m_path;
131 bool m_pathHasBeenSet = false;
132
133 Aws::String m_successCodes;
134 bool m_successCodesHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace Lightsail
139} // namespace Aws
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
ContainerServiceHealthCheckConfig & WithPath(PathT &&value)
ContainerServiceHealthCheckConfig & WithSuccessCodes(SuccessCodesT &&value)
ContainerServiceHealthCheckConfig & WithUnhealthyThreshold(int value)
AWS_LIGHTSAIL_API ContainerServiceHealthCheckConfig(Aws::Utils::Json::JsonView jsonValue)
ContainerServiceHealthCheckConfig & WithIntervalSeconds(int value)
AWS_LIGHTSAIL_API ContainerServiceHealthCheckConfig()=default
ContainerServiceHealthCheckConfig & WithHealthyThreshold(int value)
AWS_LIGHTSAIL_API ContainerServiceHealthCheckConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
ContainerServiceHealthCheckConfig & WithTimeoutSeconds(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue