AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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:
36 AWS_APPMESH_API VirtualGatewayHealthCheckPolicy() = default;
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 template<typename PathT = Aws::String>
72 void SetPath(PathT&& value) { m_pathHasBeenSet = true; m_path = std::forward<PathT>(value); }
73 template<typename PathT = Aws::String>
74 VirtualGatewayHealthCheckPolicy& WithPath(PathT&& value) { SetPath(std::forward<PathT>(value)); return *this;}
76
78
82 inline int GetPort() const { return m_port; }
83 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
84 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
85 inline VirtualGatewayHealthCheckPolicy& WithPort(int value) { SetPort(value); return *this;}
87
89
95 inline VirtualGatewayPortProtocol GetProtocol() const { return m_protocol; }
96 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
97 inline void SetProtocol(VirtualGatewayPortProtocol value) { m_protocolHasBeenSet = true; m_protocol = value; }
100
102
106 inline long long GetTimeoutMillis() const { return m_timeoutMillis; }
107 inline bool TimeoutMillisHasBeenSet() const { return m_timeoutMillisHasBeenSet; }
108 inline void SetTimeoutMillis(long long value) { m_timeoutMillisHasBeenSet = true; m_timeoutMillis = value; }
109 inline VirtualGatewayHealthCheckPolicy& WithTimeoutMillis(long long value) { SetTimeoutMillis(value); return *this;}
111
113
117 inline int GetUnhealthyThreshold() const { return m_unhealthyThreshold; }
118 inline bool UnhealthyThresholdHasBeenSet() const { return m_unhealthyThresholdHasBeenSet; }
119 inline void SetUnhealthyThreshold(int value) { m_unhealthyThresholdHasBeenSet = true; m_unhealthyThreshold = value; }
122 private:
123
124 int m_healthyThreshold{0};
125 bool m_healthyThresholdHasBeenSet = false;
126
127 long long m_intervalMillis{0};
128 bool m_intervalMillisHasBeenSet = false;
129
130 Aws::String m_path;
131 bool m_pathHasBeenSet = false;
132
133 int m_port{0};
134 bool m_portHasBeenSet = false;
135
137 bool m_protocolHasBeenSet = false;
138
139 long long m_timeoutMillis{0};
140 bool m_timeoutMillisHasBeenSet = false;
141
142 int m_unhealthyThreshold{0};
143 bool m_unhealthyThresholdHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace AppMesh
148} // namespace Aws
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)
AWS_APPMESH_API VirtualGatewayHealthCheckPolicy()=default
AWS_APPMESH_API VirtualGatewayHealthCheckPolicy(Aws::Utils::Json::JsonView jsonValue)
VirtualGatewayHealthCheckPolicy & WithProtocol(VirtualGatewayPortProtocol value)
VirtualGatewayHealthCheckPolicy & WithPath(PathT &&value)
VirtualGatewayHealthCheckPolicy & WithTimeoutMillis(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue