AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
SetSecurityGroupsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2Request.h>
10#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
11#include <aws/elasticloadbalancingv2/model/EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ElasticLoadBalancingv2 {
17namespace Model {
18
22 public:
23 AWS_ELASTICLOADBALANCINGV2_API SetSecurityGroupsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "SetSecurityGroups"; }
30
31 AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
41 inline const Aws::String& GetLoadBalancerArn() const { return m_loadBalancerArn; }
42 inline bool LoadBalancerArnHasBeenSet() const { return m_loadBalancerArnHasBeenSet; }
43 template <typename LoadBalancerArnT = Aws::String>
44 void SetLoadBalancerArn(LoadBalancerArnT&& value) {
45 m_loadBalancerArnHasBeenSet = true;
46 m_loadBalancerArn = std::forward<LoadBalancerArnT>(value);
47 }
48 template <typename LoadBalancerArnT = Aws::String>
49 SetSecurityGroupsRequest& WithLoadBalancerArn(LoadBalancerArnT&& value) {
50 SetLoadBalancerArn(std::forward<LoadBalancerArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const { return m_securityGroups; }
60 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
61 template <typename SecurityGroupsT = Aws::Vector<Aws::String>>
62 void SetSecurityGroups(SecurityGroupsT&& value) {
63 m_securityGroupsHasBeenSet = true;
64 m_securityGroups = std::forward<SecurityGroupsT>(value);
65 }
66 template <typename SecurityGroupsT = Aws::Vector<Aws::String>>
67 SetSecurityGroupsRequest& WithSecurityGroups(SecurityGroupsT&& value) {
68 SetSecurityGroups(std::forward<SecurityGroupsT>(value));
69 return *this;
70 }
71 template <typename SecurityGroupsT = Aws::String>
72 SetSecurityGroupsRequest& AddSecurityGroups(SecurityGroupsT&& value) {
73 m_securityGroupsHasBeenSet = true;
74 m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value));
75 return *this;
76 }
78
80
87 return m_enforceSecurityGroupInboundRulesOnPrivateLinkTraffic;
88 }
90 return m_enforceSecurityGroupInboundRulesOnPrivateLinkTrafficHasBeenSet;
91 }
93 m_enforceSecurityGroupInboundRulesOnPrivateLinkTrafficHasBeenSet = true;
94 m_enforceSecurityGroupInboundRulesOnPrivateLinkTraffic = value;
95 }
99 return *this;
100 }
102 private:
103 Aws::String m_loadBalancerArn;
104
105 Aws::Vector<Aws::String> m_securityGroups;
106
107 EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum m_enforceSecurityGroupInboundRulesOnPrivateLinkTraffic{
109 bool m_loadBalancerArnHasBeenSet = false;
110 bool m_securityGroupsHasBeenSet = false;
111 bool m_enforceSecurityGroupInboundRulesOnPrivateLinkTrafficHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace ElasticLoadBalancingv2
116} // namespace Aws
void SetEnforceSecurityGroupInboundRulesOnPrivateLinkTraffic(EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum value)
AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override
AWS_ELASTICLOADBALANCINGV2_API SetSecurityGroupsRequest()=default
EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum GetEnforceSecurityGroupInboundRulesOnPrivateLinkTraffic() const
SetSecurityGroupsRequest & WithLoadBalancerArn(LoadBalancerArnT &&value)
AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
SetSecurityGroupsRequest & AddSecurityGroups(SecurityGroupsT &&value)
SetSecurityGroupsRequest & WithEnforceSecurityGroupInboundRulesOnPrivateLinkTraffic(EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum value)
SetSecurityGroupsRequest & WithSecurityGroups(SecurityGroupsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector