AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetLoadBalancerArn(const Aws::String& value) { m_loadBalancerArnHasBeenSet = true; m_loadBalancerArn = value; }
50 inline void SetLoadBalancerArn(Aws::String&& value) { m_loadBalancerArnHasBeenSet = true; m_loadBalancerArn = std::move(value); }
51 inline void SetLoadBalancerArn(const char* value) { m_loadBalancerArnHasBeenSet = true; m_loadBalancerArn.assign(value); }
52 inline SetSubnetsRequest& WithLoadBalancerArn(const Aws::String& value) { SetLoadBalancerArn(value); return *this;}
53 inline SetSubnetsRequest& WithLoadBalancerArn(Aws::String&& value) { SetLoadBalancerArn(std::move(value)); return *this;}
54 inline SetSubnetsRequest& WithLoadBalancerArn(const char* value) { SetLoadBalancerArn(value); return *this;}
56
58
68 inline const Aws::Vector<Aws::String>& GetSubnets() const{ return m_subnets; }
69 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
70 inline void SetSubnets(const Aws::Vector<Aws::String>& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
71 inline void SetSubnets(Aws::Vector<Aws::String>&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); }
72 inline SetSubnetsRequest& WithSubnets(const Aws::Vector<Aws::String>& value) { SetSubnets(value); return *this;}
73 inline SetSubnetsRequest& WithSubnets(Aws::Vector<Aws::String>&& value) { SetSubnets(std::move(value)); return *this;}
74 inline SetSubnetsRequest& AddSubnets(const Aws::String& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
75 inline SetSubnetsRequest& AddSubnets(Aws::String&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; }
76 inline SetSubnetsRequest& AddSubnets(const char* value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
78
80
95 inline const Aws::Vector<SubnetMapping>& GetSubnetMappings() const{ return m_subnetMappings; }
96 inline bool SubnetMappingsHasBeenSet() const { return m_subnetMappingsHasBeenSet; }
97 inline void SetSubnetMappings(const Aws::Vector<SubnetMapping>& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings = value; }
98 inline void SetSubnetMappings(Aws::Vector<SubnetMapping>&& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings = std::move(value); }
100 inline SetSubnetsRequest& WithSubnetMappings(Aws::Vector<SubnetMapping>&& value) { SetSubnetMappings(std::move(value)); return *this;}
101 inline SetSubnetsRequest& AddSubnetMappings(const SubnetMapping& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings.push_back(value); return *this; }
102 inline SetSubnetsRequest& AddSubnetMappings(SubnetMapping&& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings.push_back(std::move(value)); return *this; }
104
106
114 inline const IpAddressType& GetIpAddressType() const{ return m_ipAddressType; }
115 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
116 inline void SetIpAddressType(const IpAddressType& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
117 inline void SetIpAddressType(IpAddressType&& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = std::move(value); }
118 inline SetSubnetsRequest& WithIpAddressType(const IpAddressType& value) { SetIpAddressType(value); return *this;}
119 inline SetSubnetsRequest& WithIpAddressType(IpAddressType&& value) { SetIpAddressType(std::move(value)); return *this;}
121
123
128 inline const EnablePrefixForIpv6SourceNatEnum& GetEnablePrefixForIpv6SourceNat() const{ return m_enablePrefixForIpv6SourceNat; }
129 inline bool EnablePrefixForIpv6SourceNatHasBeenSet() const { return m_enablePrefixForIpv6SourceNatHasBeenSet; }
130 inline void SetEnablePrefixForIpv6SourceNat(const EnablePrefixForIpv6SourceNatEnum& value) { m_enablePrefixForIpv6SourceNatHasBeenSet = true; m_enablePrefixForIpv6SourceNat = value; }
131 inline void SetEnablePrefixForIpv6SourceNat(EnablePrefixForIpv6SourceNatEnum&& value) { m_enablePrefixForIpv6SourceNatHasBeenSet = true; m_enablePrefixForIpv6SourceNat = std::move(value); }
135 private:
136
137 Aws::String m_loadBalancerArn;
138 bool m_loadBalancerArnHasBeenSet = false;
139
140 Aws::Vector<Aws::String> m_subnets;
141 bool m_subnetsHasBeenSet = false;
142
143 Aws::Vector<SubnetMapping> m_subnetMappings;
144 bool m_subnetMappingsHasBeenSet = false;
145
146 IpAddressType m_ipAddressType;
147 bool m_ipAddressTypeHasBeenSet = false;
148
149 EnablePrefixForIpv6SourceNatEnum m_enablePrefixForIpv6SourceNat;
150 bool m_enablePrefixForIpv6SourceNatHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace ElasticLoadBalancingv2
155} // namespace Aws
const EnablePrefixForIpv6SourceNatEnum & GetEnablePrefixForIpv6SourceNat() const
SetSubnetsRequest & WithLoadBalancerArn(const Aws::String &value)
SetSubnetsRequest & AddSubnetMappings(SubnetMapping &&value)
SetSubnetsRequest & WithSubnets(Aws::Vector< Aws::String > &&value)
AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
SetSubnetsRequest & WithLoadBalancerArn(Aws::String &&value)
SetSubnetsRequest & WithLoadBalancerArn(const char *value)
SetSubnetsRequest & WithSubnetMappings(Aws::Vector< SubnetMapping > &&value)
void SetSubnetMappings(const Aws::Vector< SubnetMapping > &value)
const Aws::Vector< SubnetMapping > & GetSubnetMappings() const
SetSubnetsRequest & AddSubnets(Aws::String &&value)
void SetEnablePrefixForIpv6SourceNat(const EnablePrefixForIpv6SourceNatEnum &value)
SetSubnetsRequest & AddSubnets(const Aws::String &value)
AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override
SetSubnetsRequest & AddSubnets(const char *value)
SetSubnetsRequest & WithEnablePrefixForIpv6SourceNat(const EnablePrefixForIpv6SourceNatEnum &value)
SetSubnetsRequest & WithEnablePrefixForIpv6SourceNat(EnablePrefixForIpv6SourceNatEnum &&value)
void SetEnablePrefixForIpv6SourceNat(EnablePrefixForIpv6SourceNatEnum &&value)
SetSubnetsRequest & AddSubnetMappings(const SubnetMapping &value)
AWS_ELASTICLOADBALANCINGV2_API SetSubnetsRequest()
void SetSubnetMappings(Aws::Vector< SubnetMapping > &&value)
SetSubnetsRequest & WithIpAddressType(IpAddressType &&value)
SetSubnetsRequest & WithSubnets(const Aws::Vector< Aws::String > &value)
void SetSubnets(const Aws::Vector< Aws::String > &value)
virtual const char * GetServiceRequestName() const override
SetSubnetsRequest & WithIpAddressType(const IpAddressType &value)
void SetSubnets(Aws::Vector< Aws::String > &&value)
SetSubnetsRequest & WithSubnetMappings(const Aws::Vector< SubnetMapping > &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