AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateLoadBalancerRequest.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/LoadBalancerSchemeEnum.h>
12#include <aws/elasticloadbalancingv2/model/LoadBalancerTypeEnum.h>
13#include <aws/elasticloadbalancingv2/model/IpAddressType.h>
14#include <aws/elasticloadbalancingv2/model/EnablePrefixForIpv6SourceNatEnum.h>
15#include <aws/elasticloadbalancingv2/model/SubnetMapping.h>
16#include <aws/elasticloadbalancingv2/model/Tag.h>
17#include <utility>
18
19namespace Aws
20{
21namespace ElasticLoadBalancingv2
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_ELASTICLOADBALANCINGV2_API CreateLoadBalancerRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateLoadBalancer"; }
38
39 AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override;
40
41 protected:
42 AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
43
44 public:
45
47
53 inline const Aws::String& GetName() const{ return m_name; }
54 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
56 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
57 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
58 inline CreateLoadBalancerRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
59 inline CreateLoadBalancerRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
60 inline CreateLoadBalancerRequest& WithName(const char* value) { SetName(value); return *this;}
62
64
75 inline const Aws::Vector<Aws::String>& GetSubnets() const{ return m_subnets; }
76 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
77 inline void SetSubnets(const Aws::Vector<Aws::String>& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
78 inline void SetSubnets(Aws::Vector<Aws::String>&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); }
79 inline CreateLoadBalancerRequest& WithSubnets(const Aws::Vector<Aws::String>& value) { SetSubnets(value); return *this;}
80 inline CreateLoadBalancerRequest& WithSubnets(Aws::Vector<Aws::String>&& value) { SetSubnets(std::move(value)); return *this;}
81 inline CreateLoadBalancerRequest& AddSubnets(const Aws::String& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
82 inline CreateLoadBalancerRequest& AddSubnets(Aws::String&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; }
83 inline CreateLoadBalancerRequest& AddSubnets(const char* value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
85
87
103 inline const Aws::Vector<SubnetMapping>& GetSubnetMappings() const{ return m_subnetMappings; }
104 inline bool SubnetMappingsHasBeenSet() const { return m_subnetMappingsHasBeenSet; }
105 inline void SetSubnetMappings(const Aws::Vector<SubnetMapping>& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings = value; }
106 inline void SetSubnetMappings(Aws::Vector<SubnetMapping>&& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings = std::move(value); }
109 inline CreateLoadBalancerRequest& AddSubnetMappings(const SubnetMapping& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings.push_back(value); return *this; }
110 inline CreateLoadBalancerRequest& AddSubnetMappings(SubnetMapping&& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings.push_back(std::move(value)); return *this; }
112
114
118 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const{ return m_securityGroups; }
119 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
120 inline void SetSecurityGroups(const Aws::Vector<Aws::String>& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; }
121 inline void SetSecurityGroups(Aws::Vector<Aws::String>&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); }
124 inline CreateLoadBalancerRequest& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
125 inline CreateLoadBalancerRequest& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; }
126 inline CreateLoadBalancerRequest& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
128
130
142 inline const LoadBalancerSchemeEnum& GetScheme() const{ return m_scheme; }
143 inline bool SchemeHasBeenSet() const { return m_schemeHasBeenSet; }
144 inline void SetScheme(const LoadBalancerSchemeEnum& value) { m_schemeHasBeenSet = true; m_scheme = value; }
145 inline void SetScheme(LoadBalancerSchemeEnum&& value) { m_schemeHasBeenSet = true; m_scheme = std::move(value); }
146 inline CreateLoadBalancerRequest& WithScheme(const LoadBalancerSchemeEnum& value) { SetScheme(value); return *this;}
147 inline CreateLoadBalancerRequest& WithScheme(LoadBalancerSchemeEnum&& value) { SetScheme(std::move(value)); return *this;}
149
151
154 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
155 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
156 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
157 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
158 inline CreateLoadBalancerRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
159 inline CreateLoadBalancerRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
160 inline CreateLoadBalancerRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
161 inline CreateLoadBalancerRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
163
165
168 inline const LoadBalancerTypeEnum& GetType() const{ return m_type; }
169 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
170 inline void SetType(const LoadBalancerTypeEnum& value) { m_typeHasBeenSet = true; m_type = value; }
171 inline void SetType(LoadBalancerTypeEnum&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
172 inline CreateLoadBalancerRequest& WithType(const LoadBalancerTypeEnum& value) { SetType(value); return *this;}
173 inline CreateLoadBalancerRequest& WithType(LoadBalancerTypeEnum&& value) { SetType(std::move(value)); return *this;}
175
177
186 inline const IpAddressType& GetIpAddressType() const{ return m_ipAddressType; }
187 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
188 inline void SetIpAddressType(const IpAddressType& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
189 inline void SetIpAddressType(IpAddressType&& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = std::move(value); }
190 inline CreateLoadBalancerRequest& WithIpAddressType(const IpAddressType& value) { SetIpAddressType(value); return *this;}
191 inline CreateLoadBalancerRequest& WithIpAddressType(IpAddressType&& value) { SetIpAddressType(std::move(value)); return *this;}
193
195
199 inline const Aws::String& GetCustomerOwnedIpv4Pool() const{ return m_customerOwnedIpv4Pool; }
200 inline bool CustomerOwnedIpv4PoolHasBeenSet() const { return m_customerOwnedIpv4PoolHasBeenSet; }
201 inline void SetCustomerOwnedIpv4Pool(const Aws::String& value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool = value; }
202 inline void SetCustomerOwnedIpv4Pool(Aws::String&& value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool = std::move(value); }
203 inline void SetCustomerOwnedIpv4Pool(const char* value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool.assign(value); }
206 inline CreateLoadBalancerRequest& WithCustomerOwnedIpv4Pool(const char* value) { SetCustomerOwnedIpv4Pool(value); return *this;}
208
210
215 inline const EnablePrefixForIpv6SourceNatEnum& GetEnablePrefixForIpv6SourceNat() const{ return m_enablePrefixForIpv6SourceNat; }
216 inline bool EnablePrefixForIpv6SourceNatHasBeenSet() const { return m_enablePrefixForIpv6SourceNatHasBeenSet; }
217 inline void SetEnablePrefixForIpv6SourceNat(const EnablePrefixForIpv6SourceNatEnum& value) { m_enablePrefixForIpv6SourceNatHasBeenSet = true; m_enablePrefixForIpv6SourceNat = value; }
218 inline void SetEnablePrefixForIpv6SourceNat(EnablePrefixForIpv6SourceNatEnum&& value) { m_enablePrefixForIpv6SourceNatHasBeenSet = true; m_enablePrefixForIpv6SourceNat = std::move(value); }
222 private:
223
224 Aws::String m_name;
225 bool m_nameHasBeenSet = false;
226
227 Aws::Vector<Aws::String> m_subnets;
228 bool m_subnetsHasBeenSet = false;
229
230 Aws::Vector<SubnetMapping> m_subnetMappings;
231 bool m_subnetMappingsHasBeenSet = false;
232
233 Aws::Vector<Aws::String> m_securityGroups;
234 bool m_securityGroupsHasBeenSet = false;
235
236 LoadBalancerSchemeEnum m_scheme;
237 bool m_schemeHasBeenSet = false;
238
239 Aws::Vector<Tag> m_tags;
240 bool m_tagsHasBeenSet = false;
241
243 bool m_typeHasBeenSet = false;
244
245 IpAddressType m_ipAddressType;
246 bool m_ipAddressTypeHasBeenSet = false;
247
248 Aws::String m_customerOwnedIpv4Pool;
249 bool m_customerOwnedIpv4PoolHasBeenSet = false;
250
251 EnablePrefixForIpv6SourceNatEnum m_enablePrefixForIpv6SourceNat;
252 bool m_enablePrefixForIpv6SourceNatHasBeenSet = false;
253 };
254
255} // namespace Model
256} // namespace ElasticLoadBalancingv2
257} // namespace Aws
CreateLoadBalancerRequest & WithType(LoadBalancerTypeEnum &&value)
CreateLoadBalancerRequest & WithIpAddressType(IpAddressType &&value)
CreateLoadBalancerRequest & WithTags(Aws::Vector< Tag > &&value)
CreateLoadBalancerRequest & WithSubnetMappings(Aws::Vector< SubnetMapping > &&value)
const EnablePrefixForIpv6SourceNatEnum & GetEnablePrefixForIpv6SourceNat() const
CreateLoadBalancerRequest & WithScheme(const LoadBalancerSchemeEnum &value)
CreateLoadBalancerRequest & AddSubnets(Aws::String &&value)
CreateLoadBalancerRequest & WithSubnetMappings(const Aws::Vector< SubnetMapping > &value)
CreateLoadBalancerRequest & AddSecurityGroups(const Aws::String &value)
CreateLoadBalancerRequest & AddSubnets(const Aws::String &value)
CreateLoadBalancerRequest & WithSubnets(Aws::Vector< Aws::String > &&value)
CreateLoadBalancerRequest & AddSecurityGroups(const char *value)
CreateLoadBalancerRequest & AddSecurityGroups(Aws::String &&value)
CreateLoadBalancerRequest & WithSubnets(const Aws::Vector< Aws::String > &value)
CreateLoadBalancerRequest & WithEnablePrefixForIpv6SourceNat(const EnablePrefixForIpv6SourceNatEnum &value)
CreateLoadBalancerRequest & WithTags(const Aws::Vector< Tag > &value)
CreateLoadBalancerRequest & WithEnablePrefixForIpv6SourceNat(EnablePrefixForIpv6SourceNatEnum &&value)
CreateLoadBalancerRequest & WithName(Aws::String &&value)
CreateLoadBalancerRequest & WithName(const Aws::String &value)
CreateLoadBalancerRequest & WithCustomerOwnedIpv4Pool(Aws::String &&value)
CreateLoadBalancerRequest & WithCustomerOwnedIpv4Pool(const Aws::String &value)
void SetSecurityGroups(const Aws::Vector< Aws::String > &value)
AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateLoadBalancerRequest & WithSecurityGroups(const Aws::Vector< Aws::String > &value)
CreateLoadBalancerRequest & WithSecurityGroups(Aws::Vector< Aws::String > &&value)
CreateLoadBalancerRequest & WithType(const LoadBalancerTypeEnum &value)
void SetEnablePrefixForIpv6SourceNat(const EnablePrefixForIpv6SourceNatEnum &value)
CreateLoadBalancerRequest & AddSubnetMappings(SubnetMapping &&value)
void SetEnablePrefixForIpv6SourceNat(EnablePrefixForIpv6SourceNatEnum &&value)
AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override
CreateLoadBalancerRequest & WithIpAddressType(const IpAddressType &value)
CreateLoadBalancerRequest & AddSubnetMappings(const SubnetMapping &value)
CreateLoadBalancerRequest & WithScheme(LoadBalancerSchemeEnum &&value)
void SetSubnetMappings(const Aws::Vector< SubnetMapping > &value)
CreateLoadBalancerRequest & WithCustomerOwnedIpv4Pool(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector