AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VirtualGatewayHealthCheckPolicy.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appmesh/model/VirtualGatewayPortProtocol.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 AppMesh
23{
24namespace Model
25{
26
34 {
35 public:
39 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
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
57 inline long long GetIntervalMillis() const{ return m_intervalMillis; }
58 inline bool IntervalMillisHasBeenSet() const { return m_intervalMillisHasBeenSet; }
59 inline void SetIntervalMillis(long long value) { m_intervalMillisHasBeenSet = true; m_intervalMillis = value; }
60 inline VirtualGatewayHealthCheckPolicy& WithIntervalMillis(long long value) { SetIntervalMillis(value); return *this;}
62
64
69 inline const Aws::String& GetPath() const{ return m_path; }
70 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
71 inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
72 inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
73 inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
74 inline VirtualGatewayHealthCheckPolicy& WithPath(const Aws::String& value) { SetPath(value); return *this;}
75 inline VirtualGatewayHealthCheckPolicy& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
76 inline VirtualGatewayHealthCheckPolicy& WithPath(const char* value) { SetPath(value); return *this;}
78
80
84 inline int GetPort() const{ return m_port; }
85 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
86 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
87 inline VirtualGatewayHealthCheckPolicy& WithPort(int value) { SetPort(value); return *this;}
89
91
97 inline const VirtualGatewayPortProtocol& GetProtocol() const{ return m_protocol; }
98 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
99 inline void SetProtocol(const VirtualGatewayPortProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
100 inline void SetProtocol(VirtualGatewayPortProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
102 inline VirtualGatewayHealthCheckPolicy& WithProtocol(VirtualGatewayPortProtocol&& value) { SetProtocol(std::move(value)); return *this;}
104
106
110 inline long long GetTimeoutMillis() const{ return m_timeoutMillis; }
111 inline bool TimeoutMillisHasBeenSet() const { return m_timeoutMillisHasBeenSet; }
112 inline void SetTimeoutMillis(long long value) { m_timeoutMillisHasBeenSet = true; m_timeoutMillis = value; }
113 inline VirtualGatewayHealthCheckPolicy& WithTimeoutMillis(long long value) { SetTimeoutMillis(value); return *this;}
115
117
121 inline int GetUnhealthyThreshold() const{ return m_unhealthyThreshold; }
122 inline bool UnhealthyThresholdHasBeenSet() const { return m_unhealthyThresholdHasBeenSet; }
123 inline void SetUnhealthyThreshold(int value) { m_unhealthyThresholdHasBeenSet = true; m_unhealthyThreshold = value; }
126 private:
127
128 int m_healthyThreshold;
129 bool m_healthyThresholdHasBeenSet = false;
130
131 long long m_intervalMillis;
132 bool m_intervalMillisHasBeenSet = false;
133
134 Aws::String m_path;
135 bool m_pathHasBeenSet = false;
136
137 int m_port;
138 bool m_portHasBeenSet = false;
139
141 bool m_protocolHasBeenSet = false;
142
143 long long m_timeoutMillis;
144 bool m_timeoutMillisHasBeenSet = false;
145
146 int m_unhealthyThreshold;
147 bool m_unhealthyThresholdHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace AppMesh
152} // namespace Aws
VirtualGatewayHealthCheckPolicy & WithPath(const Aws::String &value)
VirtualGatewayHealthCheckPolicy & WithPath(const char *value)
VirtualGatewayHealthCheckPolicy & WithHealthyThreshold(int value)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
VirtualGatewayHealthCheckPolicy & WithIntervalMillis(long long value)
AWS_APPMESH_API VirtualGatewayHealthCheckPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
VirtualGatewayHealthCheckPolicy & WithUnhealthyThreshold(int value)
VirtualGatewayHealthCheckPolicy & WithProtocol(VirtualGatewayPortProtocol &&value)
AWS_APPMESH_API VirtualGatewayHealthCheckPolicy(Aws::Utils::Json::JsonView jsonValue)
VirtualGatewayHealthCheckPolicy & WithPath(Aws::String &&value)
void SetProtocol(const VirtualGatewayPortProtocol &value)
VirtualGatewayHealthCheckPolicy & WithTimeoutMillis(long long value)
VirtualGatewayHealthCheckPolicy & WithProtocol(const VirtualGatewayPortProtocol &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue