AWS SDK for C++  1.8.71
AWS SDK for C++
AttachLoadBalancerToSubnetsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace ElasticLoadBalancing
16 {
17 namespace Model
18 {
19 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "AttachLoadBalancerToSubnets"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
47  inline const Aws::String& GetLoadBalancerName() const{ return m_loadBalancerName; }
48 
52  inline bool LoadBalancerNameHasBeenSet() const { return m_loadBalancerNameHasBeenSet; }
53 
57  inline void SetLoadBalancerName(const Aws::String& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = value; }
58 
62  inline void SetLoadBalancerName(Aws::String&& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = std::move(value); }
63 
67  inline void SetLoadBalancerName(const char* value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName.assign(value); }
68 
72  inline AttachLoadBalancerToSubnetsRequest& WithLoadBalancerName(const Aws::String& value) { SetLoadBalancerName(value); return *this;}
73 
77  inline AttachLoadBalancerToSubnetsRequest& WithLoadBalancerName(Aws::String&& value) { SetLoadBalancerName(std::move(value)); return *this;}
78 
82  inline AttachLoadBalancerToSubnetsRequest& WithLoadBalancerName(const char* value) { SetLoadBalancerName(value); return *this;}
83 
84 
89  inline const Aws::Vector<Aws::String>& GetSubnets() const{ return m_subnets; }
90 
95  inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
96 
101  inline void SetSubnets(const Aws::Vector<Aws::String>& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
102 
107  inline void SetSubnets(Aws::Vector<Aws::String>&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); }
108 
113  inline AttachLoadBalancerToSubnetsRequest& WithSubnets(const Aws::Vector<Aws::String>& value) { SetSubnets(value); return *this;}
114 
119  inline AttachLoadBalancerToSubnetsRequest& WithSubnets(Aws::Vector<Aws::String>&& value) { SetSubnets(std::move(value)); return *this;}
120 
125  inline AttachLoadBalancerToSubnetsRequest& AddSubnets(const Aws::String& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
126 
131  inline AttachLoadBalancerToSubnetsRequest& AddSubnets(Aws::String&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; }
132 
137  inline AttachLoadBalancerToSubnetsRequest& AddSubnets(const char* value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
138 
139  private:
140 
141  Aws::String m_loadBalancerName;
142  bool m_loadBalancerNameHasBeenSet;
143 
144  Aws::Vector<Aws::String> m_subnets;
145  bool m_subnetsHasBeenSet;
146  };
147 
148 } // namespace Model
149 } // namespace ElasticLoadBalancing
150 } // namespace Aws
AttachLoadBalancerToSubnetsRequest & WithSubnets(const Aws::Vector< Aws::String > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AttachLoadBalancerToSubnetsRequest & WithLoadBalancerName(const char *value)
AttachLoadBalancerToSubnetsRequest & WithLoadBalancerName(Aws::String &&value)
AttachLoadBalancerToSubnetsRequest & AddSubnets(const Aws::String &value)
AttachLoadBalancerToSubnetsRequest & WithLoadBalancerName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AttachLoadBalancerToSubnetsRequest & AddSubnets(Aws::String &&value)
#define AWS_ELASTICLOADBALANCING_API
AttachLoadBalancerToSubnetsRequest & WithSubnets(Aws::Vector< Aws::String > &&value)