AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SetSubnetsRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticloadbalancingv2/model/IpAddressType.h>
12#include <aws/elasticloadbalancingv2/model/EnablePrefixForIpv6SourceNatEnum.h>
13#include <aws/elasticloadbalancingv2/model/SubnetMapping.h>
14#include <utility>
15
16namespace Aws
17{
18namespace ElasticLoadBalancingv2
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_ELASTICLOADBALANCINGV2_API SetSubnetsRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "SetSubnets"; }
35
36 AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40
41 public:
42
44
47 inline const Aws::String& GetLoadBalancerArn() const { return m_loadBalancerArn; }
48 inline bool LoadBalancerArnHasBeenSet() const { return m_loadBalancerArnHasBeenSet; }
49 template<typename LoadBalancerArnT = Aws::String>
50 void SetLoadBalancerArn(LoadBalancerArnT&& value) { m_loadBalancerArnHasBeenSet = true; m_loadBalancerArn = std::forward<LoadBalancerArnT>(value); }
51 template<typename LoadBalancerArnT = Aws::String>
52 SetSubnetsRequest& WithLoadBalancerArn(LoadBalancerArnT&& value) { SetLoadBalancerArn(std::forward<LoadBalancerArnT>(value)); return *this;}
54
56
66 inline const Aws::Vector<Aws::String>& GetSubnets() const { return m_subnets; }
67 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
68 template<typename SubnetsT = Aws::Vector<Aws::String>>
69 void SetSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets = std::forward<SubnetsT>(value); }
70 template<typename SubnetsT = Aws::Vector<Aws::String>>
71 SetSubnetsRequest& WithSubnets(SubnetsT&& value) { SetSubnets(std::forward<SubnetsT>(value)); return *this;}
72 template<typename SubnetsT = Aws::String>
73 SetSubnetsRequest& AddSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets.emplace_back(std::forward<SubnetsT>(value)); return *this; }
75
77
92 inline const Aws::Vector<SubnetMapping>& GetSubnetMappings() const { return m_subnetMappings; }
93 inline bool SubnetMappingsHasBeenSet() const { return m_subnetMappingsHasBeenSet; }
94 template<typename SubnetMappingsT = Aws::Vector<SubnetMapping>>
95 void SetSubnetMappings(SubnetMappingsT&& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings = std::forward<SubnetMappingsT>(value); }
96 template<typename SubnetMappingsT = Aws::Vector<SubnetMapping>>
97 SetSubnetsRequest& WithSubnetMappings(SubnetMappingsT&& value) { SetSubnetMappings(std::forward<SubnetMappingsT>(value)); return *this;}
98 template<typename SubnetMappingsT = SubnetMapping>
99 SetSubnetsRequest& AddSubnetMappings(SubnetMappingsT&& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings.emplace_back(std::forward<SubnetMappingsT>(value)); return *this; }
101
103
111 inline IpAddressType GetIpAddressType() const { return m_ipAddressType; }
112 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
113 inline void SetIpAddressType(IpAddressType value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
116
118
123 inline EnablePrefixForIpv6SourceNatEnum GetEnablePrefixForIpv6SourceNat() const { return m_enablePrefixForIpv6SourceNat; }
124 inline bool EnablePrefixForIpv6SourceNatHasBeenSet() const { return m_enablePrefixForIpv6SourceNatHasBeenSet; }
125 inline void SetEnablePrefixForIpv6SourceNat(EnablePrefixForIpv6SourceNatEnum value) { m_enablePrefixForIpv6SourceNatHasBeenSet = true; m_enablePrefixForIpv6SourceNat = value; }
128 private:
129
130 Aws::String m_loadBalancerArn;
131 bool m_loadBalancerArnHasBeenSet = false;
132
133 Aws::Vector<Aws::String> m_subnets;
134 bool m_subnetsHasBeenSet = false;
135
136 Aws::Vector<SubnetMapping> m_subnetMappings;
137 bool m_subnetMappingsHasBeenSet = false;
138
139 IpAddressType m_ipAddressType{IpAddressType::NOT_SET};
140 bool m_ipAddressTypeHasBeenSet = false;
141
143 bool m_enablePrefixForIpv6SourceNatHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace ElasticLoadBalancingv2
148} // namespace Aws
SetSubnetsRequest & AddSubnetMappings(SubnetMappingsT &&value)
SetSubnetsRequest & WithSubnets(SubnetsT &&value)
AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
SetSubnetsRequest & AddSubnets(SubnetsT &&value)
AWS_ELASTICLOADBALANCINGV2_API SetSubnetsRequest()=default
const Aws::Vector< SubnetMapping > & GetSubnetMappings() const
void SetEnablePrefixForIpv6SourceNat(EnablePrefixForIpv6SourceNatEnum value)
SetSubnetsRequest & WithSubnetMappings(SubnetMappingsT &&value)
AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override
SetSubnetsRequest & WithIpAddressType(IpAddressType value)
SetSubnetsRequest & WithLoadBalancerArn(LoadBalancerArnT &&value)
virtual const char * GetServiceRequestName() const override
EnablePrefixForIpv6SourceNatEnum GetEnablePrefixForIpv6SourceNat() const
SetSubnetsRequest & WithEnablePrefixForIpv6SourceNat(EnablePrefixForIpv6SourceNatEnum value)
const Aws::Vector< Aws::String > & GetSubnets() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector