AWS SDK for C++  1.8.71
AWS SDK for C++
SetSubnetsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ElasticLoadBalancingv2
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "SetSubnets"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
44  inline const Aws::String& GetLoadBalancerArn() const{ return m_loadBalancerArn; }
45 
49  inline bool LoadBalancerArnHasBeenSet() const { return m_loadBalancerArnHasBeenSet; }
50 
54  inline void SetLoadBalancerArn(const Aws::String& value) { m_loadBalancerArnHasBeenSet = true; m_loadBalancerArn = value; }
55 
59  inline void SetLoadBalancerArn(Aws::String&& value) { m_loadBalancerArnHasBeenSet = true; m_loadBalancerArn = std::move(value); }
60 
64  inline void SetLoadBalancerArn(const char* value) { m_loadBalancerArnHasBeenSet = true; m_loadBalancerArn.assign(value); }
65 
69  inline SetSubnetsRequest& WithLoadBalancerArn(const Aws::String& value) { SetLoadBalancerArn(value); return *this;}
70 
74  inline SetSubnetsRequest& WithLoadBalancerArn(Aws::String&& value) { SetLoadBalancerArn(std::move(value)); return *this;}
75 
79  inline SetSubnetsRequest& WithLoadBalancerArn(const char* value) { SetLoadBalancerArn(value); return *this;}
80 
81 
87  inline const Aws::Vector<Aws::String>& GetSubnets() const{ return m_subnets; }
88 
94  inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
95 
101  inline void SetSubnets(const Aws::Vector<Aws::String>& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
102 
108  inline void SetSubnets(Aws::Vector<Aws::String>&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); }
109 
115  inline SetSubnetsRequest& WithSubnets(const Aws::Vector<Aws::String>& value) { SetSubnets(value); return *this;}
116 
122  inline SetSubnetsRequest& WithSubnets(Aws::Vector<Aws::String>&& value) { SetSubnets(std::move(value)); return *this;}
123 
129  inline SetSubnetsRequest& AddSubnets(const Aws::String& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
130 
136  inline SetSubnetsRequest& AddSubnets(Aws::String&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; }
137 
143  inline SetSubnetsRequest& AddSubnets(const char* value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
144 
145 
157  inline const Aws::Vector<SubnetMapping>& GetSubnetMappings() const{ return m_subnetMappings; }
158 
170  inline bool SubnetMappingsHasBeenSet() const { return m_subnetMappingsHasBeenSet; }
171 
183  inline void SetSubnetMappings(const Aws::Vector<SubnetMapping>& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings = value; }
184 
196  inline void SetSubnetMappings(Aws::Vector<SubnetMapping>&& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings = std::move(value); }
197 
209  inline SetSubnetsRequest& WithSubnetMappings(const Aws::Vector<SubnetMapping>& value) { SetSubnetMappings(value); return *this;}
210 
222  inline SetSubnetsRequest& WithSubnetMappings(Aws::Vector<SubnetMapping>&& value) { SetSubnetMappings(std::move(value)); return *this;}
223 
235  inline SetSubnetsRequest& AddSubnetMappings(const SubnetMapping& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings.push_back(value); return *this; }
236 
248  inline SetSubnetsRequest& AddSubnetMappings(SubnetMapping&& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings.push_back(std::move(value)); return *this; }
249 
250  private:
251 
252  Aws::String m_loadBalancerArn;
253  bool m_loadBalancerArnHasBeenSet;
254 
255  Aws::Vector<Aws::String> m_subnets;
256  bool m_subnetsHasBeenSet;
257 
258  Aws::Vector<SubnetMapping> m_subnetMappings;
259  bool m_subnetMappingsHasBeenSet;
260  };
261 
262 } // namespace Model
263 } // namespace ElasticLoadBalancingv2
264 } // namespace Aws
SetSubnetsRequest & WithSubnetMappings(Aws::Vector< SubnetMapping > &&value)
SetSubnetsRequest & AddSubnets(Aws::String &&value)
SetSubnetsRequest & AddSubnetMappings(const SubnetMapping &value)
void SetSubnets(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetSubnets() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
void SetSubnetMappings(const Aws::Vector< SubnetMapping > &value)
SetSubnetsRequest & AddSubnets(const Aws::String &value)
void SetSubnetMappings(Aws::Vector< SubnetMapping > &&value)
SetSubnetsRequest & WithSubnets(const Aws::Vector< Aws::String > &value)
SetSubnetsRequest & WithSubnets(Aws::Vector< Aws::String > &&value)
SetSubnetsRequest & AddSubnetMappings(SubnetMapping &&value)
SetSubnetsRequest & WithLoadBalancerArn(const Aws::String &value)
SetSubnetsRequest & WithLoadBalancerArn(const char *value)
SetSubnetsRequest & WithSubnetMappings(const Aws::Vector< SubnetMapping > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SetSubnetsRequest & AddSubnets(const char *value)
SetSubnetsRequest & WithLoadBalancerArn(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< SubnetMapping > & GetSubnetMappings() const
#define AWS_ELASTICLOADBALANCINGV2_API
void SetSubnets(const Aws::Vector< Aws::String > &value)