AWS SDK for C++  1.8.71
AWS SDK for C++
CreateTargetGroupRequest.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace ElasticLoadBalancingv2
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CreateTargetGroup"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
49  inline const Aws::String& GetName() const{ return m_name; }
50 
56  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 
63  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 
70  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
71 
77  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
78 
84  inline CreateTargetGroupRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
85 
91  inline CreateTargetGroupRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
92 
98  inline CreateTargetGroupRequest& WithName(const char* value) { SetName(value); return *this;}
99 
100 
108  inline const ProtocolEnum& GetProtocol() const{ return m_protocol; }
109 
117  inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
118 
126  inline void SetProtocol(const ProtocolEnum& value) { m_protocolHasBeenSet = true; m_protocol = value; }
127 
135  inline void SetProtocol(ProtocolEnum&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
136 
144  inline CreateTargetGroupRequest& WithProtocol(const ProtocolEnum& value) { SetProtocol(value); return *this;}
145 
153  inline CreateTargetGroupRequest& WithProtocol(ProtocolEnum&& value) { SetProtocol(std::move(value)); return *this;}
154 
155 
161  inline int GetPort() const{ return m_port; }
162 
168  inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
169 
175  inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
176 
182  inline CreateTargetGroupRequest& WithPort(int value) { SetPort(value); return *this;}
183 
184 
190  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
191 
197  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
198 
204  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
205 
211  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
212 
218  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
219 
225  inline CreateTargetGroupRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
226 
232  inline CreateTargetGroupRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
233 
239  inline CreateTargetGroupRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
240 
241 
249  inline const ProtocolEnum& GetHealthCheckProtocol() const{ return m_healthCheckProtocol; }
250 
258  inline bool HealthCheckProtocolHasBeenSet() const { return m_healthCheckProtocolHasBeenSet; }
259 
267  inline void SetHealthCheckProtocol(const ProtocolEnum& value) { m_healthCheckProtocolHasBeenSet = true; m_healthCheckProtocol = value; }
268 
276  inline void SetHealthCheckProtocol(ProtocolEnum&& value) { m_healthCheckProtocolHasBeenSet = true; m_healthCheckProtocol = std::move(value); }
277 
285  inline CreateTargetGroupRequest& WithHealthCheckProtocol(const ProtocolEnum& value) { SetHealthCheckProtocol(value); return *this;}
286 
294  inline CreateTargetGroupRequest& WithHealthCheckProtocol(ProtocolEnum&& value) { SetHealthCheckProtocol(std::move(value)); return *this;}
295 
296 
302  inline const Aws::String& GetHealthCheckPort() const{ return m_healthCheckPort; }
303 
309  inline bool HealthCheckPortHasBeenSet() const { return m_healthCheckPortHasBeenSet; }
310 
316  inline void SetHealthCheckPort(const Aws::String& value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort = value; }
317 
323  inline void SetHealthCheckPort(Aws::String&& value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort = std::move(value); }
324 
330  inline void SetHealthCheckPort(const char* value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort.assign(value); }
331 
337  inline CreateTargetGroupRequest& WithHealthCheckPort(const Aws::String& value) { SetHealthCheckPort(value); return *this;}
338 
344  inline CreateTargetGroupRequest& WithHealthCheckPort(Aws::String&& value) { SetHealthCheckPort(std::move(value)); return *this;}
345 
351  inline CreateTargetGroupRequest& WithHealthCheckPort(const char* value) { SetHealthCheckPort(value); return *this;}
352 
353 
360  inline bool GetHealthCheckEnabled() const{ return m_healthCheckEnabled; }
361 
368  inline bool HealthCheckEnabledHasBeenSet() const { return m_healthCheckEnabledHasBeenSet; }
369 
376  inline void SetHealthCheckEnabled(bool value) { m_healthCheckEnabledHasBeenSet = true; m_healthCheckEnabled = value; }
377 
384  inline CreateTargetGroupRequest& WithHealthCheckEnabled(bool value) { SetHealthCheckEnabled(value); return *this;}
385 
386 
391  inline const Aws::String& GetHealthCheckPath() const{ return m_healthCheckPath; }
392 
397  inline bool HealthCheckPathHasBeenSet() const { return m_healthCheckPathHasBeenSet; }
398 
403  inline void SetHealthCheckPath(const Aws::String& value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath = value; }
404 
409  inline void SetHealthCheckPath(Aws::String&& value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath = std::move(value); }
410 
415  inline void SetHealthCheckPath(const char* value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath.assign(value); }
416 
421  inline CreateTargetGroupRequest& WithHealthCheckPath(const Aws::String& value) { SetHealthCheckPath(value); return *this;}
422 
427  inline CreateTargetGroupRequest& WithHealthCheckPath(Aws::String&& value) { SetHealthCheckPath(std::move(value)); return *this;}
428 
433  inline CreateTargetGroupRequest& WithHealthCheckPath(const char* value) { SetHealthCheckPath(value); return *this;}
434 
435 
443  inline int GetHealthCheckIntervalSeconds() const{ return m_healthCheckIntervalSeconds; }
444 
452  inline bool HealthCheckIntervalSecondsHasBeenSet() const { return m_healthCheckIntervalSecondsHasBeenSet; }
453 
461  inline void SetHealthCheckIntervalSeconds(int value) { m_healthCheckIntervalSecondsHasBeenSet = true; m_healthCheckIntervalSeconds = value; }
462 
470  inline CreateTargetGroupRequest& WithHealthCheckIntervalSeconds(int value) { SetHealthCheckIntervalSeconds(value); return *this;}
471 
472 
481  inline int GetHealthCheckTimeoutSeconds() const{ return m_healthCheckTimeoutSeconds; }
482 
491  inline bool HealthCheckTimeoutSecondsHasBeenSet() const { return m_healthCheckTimeoutSecondsHasBeenSet; }
492 
501  inline void SetHealthCheckTimeoutSeconds(int value) { m_healthCheckTimeoutSecondsHasBeenSet = true; m_healthCheckTimeoutSeconds = value; }
502 
511  inline CreateTargetGroupRequest& WithHealthCheckTimeoutSeconds(int value) { SetHealthCheckTimeoutSeconds(value); return *this;}
512 
513 
520  inline int GetHealthyThresholdCount() const{ return m_healthyThresholdCount; }
521 
528  inline bool HealthyThresholdCountHasBeenSet() const { return m_healthyThresholdCountHasBeenSet; }
529 
536  inline void SetHealthyThresholdCount(int value) { m_healthyThresholdCountHasBeenSet = true; m_healthyThresholdCount = value; }
537 
544  inline CreateTargetGroupRequest& WithHealthyThresholdCount(int value) { SetHealthyThresholdCount(value); return *this;}
545 
546 
554  inline int GetUnhealthyThresholdCount() const{ return m_unhealthyThresholdCount; }
555 
563  inline bool UnhealthyThresholdCountHasBeenSet() const { return m_unhealthyThresholdCountHasBeenSet; }
564 
572  inline void SetUnhealthyThresholdCount(int value) { m_unhealthyThresholdCountHasBeenSet = true; m_unhealthyThresholdCount = value; }
573 
581  inline CreateTargetGroupRequest& WithUnhealthyThresholdCount(int value) { SetUnhealthyThresholdCount(value); return *this;}
582 
583 
588  inline const Matcher& GetMatcher() const{ return m_matcher; }
589 
594  inline bool MatcherHasBeenSet() const { return m_matcherHasBeenSet; }
595 
600  inline void SetMatcher(const Matcher& value) { m_matcherHasBeenSet = true; m_matcher = value; }
601 
606  inline void SetMatcher(Matcher&& value) { m_matcherHasBeenSet = true; m_matcher = std::move(value); }
607 
612  inline CreateTargetGroupRequest& WithMatcher(const Matcher& value) { SetMatcher(value); return *this;}
613 
618  inline CreateTargetGroupRequest& WithMatcher(Matcher&& value) { SetMatcher(std::move(value)); return *this;}
619 
620 
633  inline const TargetTypeEnum& GetTargetType() const{ return m_targetType; }
634 
647  inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
648 
661  inline void SetTargetType(const TargetTypeEnum& value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
662 
675  inline void SetTargetType(TargetTypeEnum&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::move(value); }
676 
689  inline CreateTargetGroupRequest& WithTargetType(const TargetTypeEnum& value) { SetTargetType(value); return *this;}
690 
703  inline CreateTargetGroupRequest& WithTargetType(TargetTypeEnum&& value) { SetTargetType(std::move(value)); return *this;}
704 
705 
709  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
710 
714  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
715 
719  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
720 
724  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
725 
729  inline CreateTargetGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
730 
734  inline CreateTargetGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
735 
739  inline CreateTargetGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
740 
744  inline CreateTargetGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
745 
746  private:
747 
748  Aws::String m_name;
749  bool m_nameHasBeenSet;
750 
751  ProtocolEnum m_protocol;
752  bool m_protocolHasBeenSet;
753 
754  int m_port;
755  bool m_portHasBeenSet;
756 
757  Aws::String m_vpcId;
758  bool m_vpcIdHasBeenSet;
759 
760  ProtocolEnum m_healthCheckProtocol;
761  bool m_healthCheckProtocolHasBeenSet;
762 
763  Aws::String m_healthCheckPort;
764  bool m_healthCheckPortHasBeenSet;
765 
766  bool m_healthCheckEnabled;
767  bool m_healthCheckEnabledHasBeenSet;
768 
769  Aws::String m_healthCheckPath;
770  bool m_healthCheckPathHasBeenSet;
771 
772  int m_healthCheckIntervalSeconds;
773  bool m_healthCheckIntervalSecondsHasBeenSet;
774 
775  int m_healthCheckTimeoutSeconds;
776  bool m_healthCheckTimeoutSecondsHasBeenSet;
777 
778  int m_healthyThresholdCount;
779  bool m_healthyThresholdCountHasBeenSet;
780 
781  int m_unhealthyThresholdCount;
782  bool m_unhealthyThresholdCountHasBeenSet;
783 
784  Matcher m_matcher;
785  bool m_matcherHasBeenSet;
786 
787  TargetTypeEnum m_targetType;
788  bool m_targetTypeHasBeenSet;
789 
790  Aws::Vector<Tag> m_tags;
791  bool m_tagsHasBeenSet;
792  };
793 
794 } // namespace Model
795 } // namespace ElasticLoadBalancingv2
796 } // namespace Aws
CreateTargetGroupRequest & WithHealthCheckProtocol(ProtocolEnum &&value)
CreateTargetGroupRequest & WithHealthCheckPort(const Aws::String &value)
CreateTargetGroupRequest & WithTags(const Aws::Vector< Tag > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
CreateTargetGroupRequest & WithHealthCheckProtocol(const ProtocolEnum &value)
CreateTargetGroupRequest & WithName(Aws::String &&value)
CreateTargetGroupRequest & WithName(const Aws::String &value)
CreateTargetGroupRequest & WithHealthCheckPort(Aws::String &&value)
CreateTargetGroupRequest & WithTargetType(const TargetTypeEnum &value)
CreateTargetGroupRequest & WithTags(Aws::Vector< Tag > &&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 & WithTargetType(TargetTypeEnum &&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)