AWS SDK for C++  0.14.3
AWS SDK for C++
CreateTargetGroupRequest.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& GetName() const{ return m_name; }
42 
46  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
47 
51  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
52 
56  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
57 
61  inline CreateTargetGroupRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
62 
66  inline CreateTargetGroupRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
67 
71  inline CreateTargetGroupRequest& WithName(const char* value) { SetName(value); return *this;}
72 
76  inline const ProtocolEnum& GetProtocol() const{ return m_protocol; }
77 
81  inline void SetProtocol(const ProtocolEnum& value) { m_protocolHasBeenSet = true; m_protocol = value; }
82 
86  inline void SetProtocol(ProtocolEnum&& value) { m_protocolHasBeenSet = true; m_protocol = value; }
87 
91  inline CreateTargetGroupRequest& WithProtocol(const ProtocolEnum& value) { SetProtocol(value); return *this;}
92 
96  inline CreateTargetGroupRequest& WithProtocol(ProtocolEnum&& value) { SetProtocol(value); return *this;}
97 
102  inline int GetPort() const{ return m_port; }
103 
108  inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
109 
114  inline CreateTargetGroupRequest& WithPort(int value) { SetPort(value); return *this;}
115 
119  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
120 
124  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
125 
129  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
130 
134  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
135 
139  inline CreateTargetGroupRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
140 
144  inline CreateTargetGroupRequest& WithVpcId(Aws::String&& value) { SetVpcId(value); return *this;}
145 
149  inline CreateTargetGroupRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
150 
155  inline const ProtocolEnum& GetHealthCheckProtocol() const{ return m_healthCheckProtocol; }
156 
161  inline void SetHealthCheckProtocol(const ProtocolEnum& value) { m_healthCheckProtocolHasBeenSet = true; m_healthCheckProtocol = value; }
162 
167  inline void SetHealthCheckProtocol(ProtocolEnum&& value) { m_healthCheckProtocolHasBeenSet = true; m_healthCheckProtocol = value; }
168 
173  inline CreateTargetGroupRequest& WithHealthCheckProtocol(const ProtocolEnum& value) { SetHealthCheckProtocol(value); return *this;}
174 
179  inline CreateTargetGroupRequest& WithHealthCheckProtocol(ProtocolEnum&& value) { SetHealthCheckProtocol(value); return *this;}
180 
186  inline const Aws::String& GetHealthCheckPort() const{ return m_healthCheckPort; }
187 
193  inline void SetHealthCheckPort(const Aws::String& value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort = value; }
194 
200  inline void SetHealthCheckPort(Aws::String&& value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort = value; }
201 
207  inline void SetHealthCheckPort(const char* value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort.assign(value); }
208 
214  inline CreateTargetGroupRequest& WithHealthCheckPort(const Aws::String& value) { SetHealthCheckPort(value); return *this;}
215 
221  inline CreateTargetGroupRequest& WithHealthCheckPort(Aws::String&& value) { SetHealthCheckPort(value); return *this;}
222 
228  inline CreateTargetGroupRequest& WithHealthCheckPort(const char* value) { SetHealthCheckPort(value); return *this;}
229 
234  inline const Aws::String& GetHealthCheckPath() const{ return m_healthCheckPath; }
235 
240  inline void SetHealthCheckPath(const Aws::String& value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath = value; }
241 
246  inline void SetHealthCheckPath(Aws::String&& value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath = value; }
247 
252  inline void SetHealthCheckPath(const char* value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath.assign(value); }
253 
258  inline CreateTargetGroupRequest& WithHealthCheckPath(const Aws::String& value) { SetHealthCheckPath(value); return *this;}
259 
264  inline CreateTargetGroupRequest& WithHealthCheckPath(Aws::String&& value) { SetHealthCheckPath(value); return *this;}
265 
270  inline CreateTargetGroupRequest& WithHealthCheckPath(const char* value) { SetHealthCheckPath(value); return *this;}
271 
276  inline int GetHealthCheckIntervalSeconds() const{ return m_healthCheckIntervalSeconds; }
277 
282  inline void SetHealthCheckIntervalSeconds(int value) { m_healthCheckIntervalSecondsHasBeenSet = true; m_healthCheckIntervalSeconds = value; }
283 
288  inline CreateTargetGroupRequest& WithHealthCheckIntervalSeconds(int value) { SetHealthCheckIntervalSeconds(value); return *this;}
289 
294  inline int GetHealthCheckTimeoutSeconds() const{ return m_healthCheckTimeoutSeconds; }
295 
300  inline void SetHealthCheckTimeoutSeconds(int value) { m_healthCheckTimeoutSecondsHasBeenSet = true; m_healthCheckTimeoutSeconds = value; }
301 
306  inline CreateTargetGroupRequest& WithHealthCheckTimeoutSeconds(int value) { SetHealthCheckTimeoutSeconds(value); return *this;}
307 
312  inline int GetHealthyThresholdCount() const{ return m_healthyThresholdCount; }
313 
318  inline void SetHealthyThresholdCount(int value) { m_healthyThresholdCountHasBeenSet = true; m_healthyThresholdCount = value; }
319 
324  inline CreateTargetGroupRequest& WithHealthyThresholdCount(int value) { SetHealthyThresholdCount(value); return *this;}
325 
330  inline int GetUnhealthyThresholdCount() const{ return m_unhealthyThresholdCount; }
331 
336  inline void SetUnhealthyThresholdCount(int value) { m_unhealthyThresholdCountHasBeenSet = true; m_unhealthyThresholdCount = value; }
337 
342  inline CreateTargetGroupRequest& WithUnhealthyThresholdCount(int value) { SetUnhealthyThresholdCount(value); return *this;}
343 
348  inline const Matcher& GetMatcher() const{ return m_matcher; }
349 
354  inline void SetMatcher(const Matcher& value) { m_matcherHasBeenSet = true; m_matcher = value; }
355 
360  inline void SetMatcher(Matcher&& value) { m_matcherHasBeenSet = true; m_matcher = value; }
361 
366  inline CreateTargetGroupRequest& WithMatcher(const Matcher& value) { SetMatcher(value); return *this;}
367 
372  inline CreateTargetGroupRequest& WithMatcher(Matcher&& value) { SetMatcher(value); return *this;}
373 
374  private:
375  Aws::String m_name;
376  bool m_nameHasBeenSet;
377  ProtocolEnum m_protocol;
378  bool m_protocolHasBeenSet;
379  int m_port;
380  bool m_portHasBeenSet;
381  Aws::String m_vpcId;
382  bool m_vpcIdHasBeenSet;
383  ProtocolEnum m_healthCheckProtocol;
384  bool m_healthCheckProtocolHasBeenSet;
385  Aws::String m_healthCheckPort;
386  bool m_healthCheckPortHasBeenSet;
387  Aws::String m_healthCheckPath;
388  bool m_healthCheckPathHasBeenSet;
389  int m_healthCheckIntervalSeconds;
390  bool m_healthCheckIntervalSecondsHasBeenSet;
391  int m_healthCheckTimeoutSeconds;
392  bool m_healthCheckTimeoutSecondsHasBeenSet;
393  int m_healthyThresholdCount;
394  bool m_healthyThresholdCountHasBeenSet;
395  int m_unhealthyThresholdCount;
396  bool m_unhealthyThresholdCountHasBeenSet;
397  Matcher m_matcher;
398  bool m_matcherHasBeenSet;
399  };
400 
401 } // namespace Model
402 } // namespace ElasticLoadBalancingv2
403 } // namespace Aws
CreateTargetGroupRequest & WithHealthCheckProtocol(ProtocolEnum &&value)
CreateTargetGroupRequest & WithHealthCheckPort(const Aws::String &value)
CreateTargetGroupRequest & WithHealthCheckProtocol(const ProtocolEnum &value)
CreateTargetGroupRequest & WithName(Aws::String &&value)
CreateTargetGroupRequest & WithName(const Aws::String &value)
CreateTargetGroupRequest & WithHealthCheckPort(Aws::String &&value)
CreateTargetGroupRequest & WithProtocol(ProtocolEnum &&value)
CreateTargetGroupRequest & WithVpcId(const Aws::String &value)
CreateTargetGroupRequest & WithHealthCheckPath(const Aws::String &value)
CreateTargetGroupRequest & WithHealthCheckPath(Aws::String &&value)
CreateTargetGroupRequest & WithHealthCheckPort(const char *value)
CreateTargetGroupRequest & WithHealthCheckPath(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateTargetGroupRequest & WithVpcId(Aws::String &&value)
#define AWS_ELASTICLOADBALANCINGV2_API
CreateTargetGroupRequest & WithName(const char *value)
CreateTargetGroupRequest & WithMatcher(const Matcher &value)
CreateTargetGroupRequest & WithProtocol(const ProtocolEnum &value)
JSON (JavaScript Object Notation).