AWS SDK for C++  0.14.3
AWS SDK for C++
ModifyTargetGroupRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 
22 namespace Aws
23 {
24 namespace ElasticLoadBalancingv2
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
41  inline const Aws::String& GetTargetGroupArn() const{ return m_targetGroupArn; }
42 
46  inline void SetTargetGroupArn(const Aws::String& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = value; }
47 
51  inline void SetTargetGroupArn(Aws::String&& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = value; }
52 
56  inline void SetTargetGroupArn(const char* value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn.assign(value); }
57 
61  inline ModifyTargetGroupRequest& WithTargetGroupArn(const Aws::String& value) { SetTargetGroupArn(value); return *this;}
62 
66  inline ModifyTargetGroupRequest& WithTargetGroupArn(Aws::String&& value) { SetTargetGroupArn(value); return *this;}
67 
71  inline ModifyTargetGroupRequest& WithTargetGroupArn(const char* value) { SetTargetGroupArn(value); return *this;}
72 
76  inline const ProtocolEnum& GetHealthCheckProtocol() const{ return m_healthCheckProtocol; }
77 
81  inline void SetHealthCheckProtocol(const ProtocolEnum& value) { m_healthCheckProtocolHasBeenSet = true; m_healthCheckProtocol = value; }
82 
86  inline void SetHealthCheckProtocol(ProtocolEnum&& value) { m_healthCheckProtocolHasBeenSet = true; m_healthCheckProtocol = value; }
87 
91  inline ModifyTargetGroupRequest& WithHealthCheckProtocol(const ProtocolEnum& value) { SetHealthCheckProtocol(value); return *this;}
92 
96  inline ModifyTargetGroupRequest& WithHealthCheckProtocol(ProtocolEnum&& value) { SetHealthCheckProtocol(value); return *this;}
97 
101  inline const Aws::String& GetHealthCheckPort() const{ return m_healthCheckPort; }
102 
106  inline void SetHealthCheckPort(const Aws::String& value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort = value; }
107 
111  inline void SetHealthCheckPort(Aws::String&& value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort = value; }
112 
116  inline void SetHealthCheckPort(const char* value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort.assign(value); }
117 
121  inline ModifyTargetGroupRequest& WithHealthCheckPort(const Aws::String& value) { SetHealthCheckPort(value); return *this;}
122 
126  inline ModifyTargetGroupRequest& WithHealthCheckPort(Aws::String&& value) { SetHealthCheckPort(value); return *this;}
127 
131  inline ModifyTargetGroupRequest& WithHealthCheckPort(const char* value) { SetHealthCheckPort(value); return *this;}
132 
136  inline const Aws::String& GetHealthCheckPath() const{ return m_healthCheckPath; }
137 
141  inline void SetHealthCheckPath(const Aws::String& value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath = value; }
142 
146  inline void SetHealthCheckPath(Aws::String&& value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath = value; }
147 
151  inline void SetHealthCheckPath(const char* value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath.assign(value); }
152 
156  inline ModifyTargetGroupRequest& WithHealthCheckPath(const Aws::String& value) { SetHealthCheckPath(value); return *this;}
157 
161  inline ModifyTargetGroupRequest& WithHealthCheckPath(Aws::String&& value) { SetHealthCheckPath(value); return *this;}
162 
166  inline ModifyTargetGroupRequest& WithHealthCheckPath(const char* value) { SetHealthCheckPath(value); return *this;}
167 
172  inline int GetHealthCheckIntervalSeconds() const{ return m_healthCheckIntervalSeconds; }
173 
178  inline void SetHealthCheckIntervalSeconds(int value) { m_healthCheckIntervalSecondsHasBeenSet = true; m_healthCheckIntervalSeconds = value; }
179 
184  inline ModifyTargetGroupRequest& WithHealthCheckIntervalSeconds(int value) { SetHealthCheckIntervalSeconds(value); return *this;}
185 
190  inline int GetHealthCheckTimeoutSeconds() const{ return m_healthCheckTimeoutSeconds; }
191 
196  inline void SetHealthCheckTimeoutSeconds(int value) { m_healthCheckTimeoutSecondsHasBeenSet = true; m_healthCheckTimeoutSeconds = value; }
197 
202  inline ModifyTargetGroupRequest& WithHealthCheckTimeoutSeconds(int value) { SetHealthCheckTimeoutSeconds(value); return *this;}
203 
208  inline int GetHealthyThresholdCount() const{ return m_healthyThresholdCount; }
209 
214  inline void SetHealthyThresholdCount(int value) { m_healthyThresholdCountHasBeenSet = true; m_healthyThresholdCount = value; }
215 
220  inline ModifyTargetGroupRequest& WithHealthyThresholdCount(int value) { SetHealthyThresholdCount(value); return *this;}
221 
226  inline int GetUnhealthyThresholdCount() const{ return m_unhealthyThresholdCount; }
227 
232  inline void SetUnhealthyThresholdCount(int value) { m_unhealthyThresholdCountHasBeenSet = true; m_unhealthyThresholdCount = value; }
233 
238  inline ModifyTargetGroupRequest& WithUnhealthyThresholdCount(int value) { SetUnhealthyThresholdCount(value); return *this;}
239 
244  inline const Matcher& GetMatcher() const{ return m_matcher; }
245 
250  inline void SetMatcher(const Matcher& value) { m_matcherHasBeenSet = true; m_matcher = value; }
251 
256  inline void SetMatcher(Matcher&& value) { m_matcherHasBeenSet = true; m_matcher = value; }
257 
262  inline ModifyTargetGroupRequest& WithMatcher(const Matcher& value) { SetMatcher(value); return *this;}
263 
268  inline ModifyTargetGroupRequest& WithMatcher(Matcher&& value) { SetMatcher(value); return *this;}
269 
270  private:
271  Aws::String m_targetGroupArn;
272  bool m_targetGroupArnHasBeenSet;
273  ProtocolEnum m_healthCheckProtocol;
274  bool m_healthCheckProtocolHasBeenSet;
275  Aws::String m_healthCheckPort;
276  bool m_healthCheckPortHasBeenSet;
277  Aws::String m_healthCheckPath;
278  bool m_healthCheckPathHasBeenSet;
279  int m_healthCheckIntervalSeconds;
280  bool m_healthCheckIntervalSecondsHasBeenSet;
281  int m_healthCheckTimeoutSeconds;
282  bool m_healthCheckTimeoutSecondsHasBeenSet;
283  int m_healthyThresholdCount;
284  bool m_healthyThresholdCountHasBeenSet;
285  int m_unhealthyThresholdCount;
286  bool m_unhealthyThresholdCountHasBeenSet;
287  Matcher m_matcher;
288  bool m_matcherHasBeenSet;
289  };
290 
291 } // namespace Model
292 } // namespace ElasticLoadBalancingv2
293 } // namespace Aws
ModifyTargetGroupRequest & WithHealthCheckProtocol(ProtocolEnum &&value)
ModifyTargetGroupRequest & WithTargetGroupArn(const char *value)
ModifyTargetGroupRequest & WithMatcher(const Matcher &value)
ModifyTargetGroupRequest & WithHealthCheckPort(const char *value)
ModifyTargetGroupRequest & WithHealthCheckPath(const Aws::String &value)
ModifyTargetGroupRequest & WithHealthCheckPath(Aws::String &&value)
ModifyTargetGroupRequest & WithHealthCheckPort(Aws::String &&value)
ModifyTargetGroupRequest & WithHealthCheckPath(const char *value)
ModifyTargetGroupRequest & WithHealthCheckPort(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ModifyTargetGroupRequest & WithTargetGroupArn(Aws::String &&value)
ModifyTargetGroupRequest & WithHealthCheckProtocol(const ProtocolEnum &value)
#define AWS_ELASTICLOADBALANCINGV2_API
JSON (JavaScript Object Notation).
ModifyTargetGroupRequest & WithTargetGroupArn(const Aws::String &value)