AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ModifyTargetGroupRequest.h
1
6#pragma once
7#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
8#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/elasticloadbalancingv2/model/ProtocolEnum.h>
11#include <aws/elasticloadbalancingv2/model/Matcher.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ElasticLoadBalancingv2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_ELASTICLOADBALANCINGV2_API ModifyTargetGroupRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ModifyTargetGroup"; }
33
34 AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
45 inline const Aws::String& GetTargetGroupArn() const { return m_targetGroupArn; }
46 inline bool TargetGroupArnHasBeenSet() const { return m_targetGroupArnHasBeenSet; }
47 template<typename TargetGroupArnT = Aws::String>
48 void SetTargetGroupArn(TargetGroupArnT&& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = std::forward<TargetGroupArnT>(value); }
49 template<typename TargetGroupArnT = Aws::String>
50 ModifyTargetGroupRequest& WithTargetGroupArn(TargetGroupArnT&& value) { SetTargetGroupArn(std::forward<TargetGroupArnT>(value)); return *this;}
52
54
63 inline ProtocolEnum GetHealthCheckProtocol() const { return m_healthCheckProtocol; }
64 inline bool HealthCheckProtocolHasBeenSet() const { return m_healthCheckProtocolHasBeenSet; }
65 inline void SetHealthCheckProtocol(ProtocolEnum value) { m_healthCheckProtocolHasBeenSet = true; m_healthCheckProtocol = value; }
68
70
73 inline const Aws::String& GetHealthCheckPort() const { return m_healthCheckPort; }
74 inline bool HealthCheckPortHasBeenSet() const { return m_healthCheckPortHasBeenSet; }
75 template<typename HealthCheckPortT = Aws::String>
76 void SetHealthCheckPort(HealthCheckPortT&& value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort = std::forward<HealthCheckPortT>(value); }
77 template<typename HealthCheckPortT = Aws::String>
78 ModifyTargetGroupRequest& WithHealthCheckPort(HealthCheckPortT&& value) { SetHealthCheckPort(std::forward<HealthCheckPortT>(value)); return *this;}
80
82
89 inline const Aws::String& GetHealthCheckPath() const { return m_healthCheckPath; }
90 inline bool HealthCheckPathHasBeenSet() const { return m_healthCheckPathHasBeenSet; }
91 template<typename HealthCheckPathT = Aws::String>
92 void SetHealthCheckPath(HealthCheckPathT&& value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath = std::forward<HealthCheckPathT>(value); }
93 template<typename HealthCheckPathT = Aws::String>
94 ModifyTargetGroupRequest& WithHealthCheckPath(HealthCheckPathT&& value) { SetHealthCheckPath(std::forward<HealthCheckPathT>(value)); return *this;}
96
98
101 inline bool GetHealthCheckEnabled() const { return m_healthCheckEnabled; }
102 inline bool HealthCheckEnabledHasBeenSet() const { return m_healthCheckEnabledHasBeenSet; }
103 inline void SetHealthCheckEnabled(bool value) { m_healthCheckEnabledHasBeenSet = true; m_healthCheckEnabled = value; }
104 inline ModifyTargetGroupRequest& WithHealthCheckEnabled(bool value) { SetHealthCheckEnabled(value); return *this;}
106
108
112 inline int GetHealthCheckIntervalSeconds() const { return m_healthCheckIntervalSeconds; }
113 inline bool HealthCheckIntervalSecondsHasBeenSet() const { return m_healthCheckIntervalSecondsHasBeenSet; }
114 inline void SetHealthCheckIntervalSeconds(int value) { m_healthCheckIntervalSecondsHasBeenSet = true; m_healthCheckIntervalSeconds = value; }
117
119
123 inline int GetHealthCheckTimeoutSeconds() const { return m_healthCheckTimeoutSeconds; }
124 inline bool HealthCheckTimeoutSecondsHasBeenSet() const { return m_healthCheckTimeoutSecondsHasBeenSet; }
125 inline void SetHealthCheckTimeoutSeconds(int value) { m_healthCheckTimeoutSecondsHasBeenSet = true; m_healthCheckTimeoutSeconds = value; }
128
130
134 inline int GetHealthyThresholdCount() const { return m_healthyThresholdCount; }
135 inline bool HealthyThresholdCountHasBeenSet() const { return m_healthyThresholdCountHasBeenSet; }
136 inline void SetHealthyThresholdCount(int value) { m_healthyThresholdCountHasBeenSet = true; m_healthyThresholdCount = value; }
139
141
145 inline int GetUnhealthyThresholdCount() const { return m_unhealthyThresholdCount; }
146 inline bool UnhealthyThresholdCountHasBeenSet() const { return m_unhealthyThresholdCountHasBeenSet; }
147 inline void SetUnhealthyThresholdCount(int value) { m_unhealthyThresholdCountHasBeenSet = true; m_unhealthyThresholdCount = value; }
150
152
159 inline const Matcher& GetMatcher() const { return m_matcher; }
160 inline bool MatcherHasBeenSet() const { return m_matcherHasBeenSet; }
161 template<typename MatcherT = Matcher>
162 void SetMatcher(MatcherT&& value) { m_matcherHasBeenSet = true; m_matcher = std::forward<MatcherT>(value); }
163 template<typename MatcherT = Matcher>
164 ModifyTargetGroupRequest& WithMatcher(MatcherT&& value) { SetMatcher(std::forward<MatcherT>(value)); return *this;}
166 private:
167
168 Aws::String m_targetGroupArn;
169 bool m_targetGroupArnHasBeenSet = false;
170
171 ProtocolEnum m_healthCheckProtocol{ProtocolEnum::NOT_SET};
172 bool m_healthCheckProtocolHasBeenSet = false;
173
174 Aws::String m_healthCheckPort;
175 bool m_healthCheckPortHasBeenSet = false;
176
177 Aws::String m_healthCheckPath;
178 bool m_healthCheckPathHasBeenSet = false;
179
180 bool m_healthCheckEnabled{false};
181 bool m_healthCheckEnabledHasBeenSet = false;
182
183 int m_healthCheckIntervalSeconds{0};
184 bool m_healthCheckIntervalSecondsHasBeenSet = false;
185
186 int m_healthCheckTimeoutSeconds{0};
187 bool m_healthCheckTimeoutSecondsHasBeenSet = false;
188
189 int m_healthyThresholdCount{0};
190 bool m_healthyThresholdCountHasBeenSet = false;
191
192 int m_unhealthyThresholdCount{0};
193 bool m_unhealthyThresholdCountHasBeenSet = false;
194
195 Matcher m_matcher;
196 bool m_matcherHasBeenSet = false;
197 };
198
199} // namespace Model
200} // namespace ElasticLoadBalancingv2
201} // namespace Aws
ModifyTargetGroupRequest & WithTargetGroupArn(TargetGroupArnT &&value)
AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_ELASTICLOADBALANCINGV2_API ModifyTargetGroupRequest()=default
ModifyTargetGroupRequest & WithHealthCheckProtocol(ProtocolEnum value)
AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override
ModifyTargetGroupRequest & WithHealthCheckPort(HealthCheckPortT &&value)
ModifyTargetGroupRequest & WithHealthCheckPath(HealthCheckPathT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String