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/elasticloadbalancing/ElasticLoadBalancing_EXPORTS.h>
8#include <aws/elasticloadbalancing/ElasticLoadBalancingRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticloadbalancing/model/Listener.h>
12#include <aws/elasticloadbalancing/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace ElasticLoadBalancing
18{
19namespace Model
20{
21
28 {
29 public:
30 AWS_ELASTICLOADBALANCING_API CreateLoadBalancerRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateLoadBalancer"; }
37
38 AWS_ELASTICLOADBALANCING_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_ELASTICLOADBALANCING_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42
43 public:
44
46
52 inline const Aws::String& GetLoadBalancerName() const{ return m_loadBalancerName; }
53 inline bool LoadBalancerNameHasBeenSet() const { return m_loadBalancerNameHasBeenSet; }
54 inline void SetLoadBalancerName(const Aws::String& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = value; }
55 inline void SetLoadBalancerName(Aws::String&& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = std::move(value); }
56 inline void SetLoadBalancerName(const char* value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName.assign(value); }
58 inline CreateLoadBalancerRequest& WithLoadBalancerName(Aws::String&& value) { SetLoadBalancerName(std::move(value)); return *this;}
59 inline CreateLoadBalancerRequest& WithLoadBalancerName(const char* value) { SetLoadBalancerName(value); return *this;}
61
63
69 inline const Aws::Vector<Listener>& GetListeners() const{ return m_listeners; }
70 inline bool ListenersHasBeenSet() const { return m_listenersHasBeenSet; }
71 inline void SetListeners(const Aws::Vector<Listener>& value) { m_listenersHasBeenSet = true; m_listeners = value; }
72 inline void SetListeners(Aws::Vector<Listener>&& value) { m_listenersHasBeenSet = true; m_listeners = std::move(value); }
73 inline CreateLoadBalancerRequest& WithListeners(const Aws::Vector<Listener>& value) { SetListeners(value); return *this;}
74 inline CreateLoadBalancerRequest& WithListeners(Aws::Vector<Listener>&& value) { SetListeners(std::move(value)); return *this;}
75 inline CreateLoadBalancerRequest& AddListeners(const Listener& value) { m_listenersHasBeenSet = true; m_listeners.push_back(value); return *this; }
76 inline CreateLoadBalancerRequest& AddListeners(Listener&& value) { m_listenersHasBeenSet = true; m_listeners.push_back(std::move(value)); return *this; }
78
80
86 inline const Aws::Vector<Aws::String>& GetAvailabilityZones() const{ return m_availabilityZones; }
87 inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
88 inline void SetAvailabilityZones(const Aws::Vector<Aws::String>& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = value; }
89 inline void SetAvailabilityZones(Aws::Vector<Aws::String>&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::move(value); }
92 inline CreateLoadBalancerRequest& AddAvailabilityZones(const Aws::String& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
93 inline CreateLoadBalancerRequest& AddAvailabilityZones(Aws::String&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; }
94 inline CreateLoadBalancerRequest& AddAvailabilityZones(const char* value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
96
98
103 inline const Aws::Vector<Aws::String>& GetSubnets() const{ return m_subnets; }
104 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
105 inline void SetSubnets(const Aws::Vector<Aws::String>& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
106 inline void SetSubnets(Aws::Vector<Aws::String>&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); }
107 inline CreateLoadBalancerRequest& WithSubnets(const Aws::Vector<Aws::String>& value) { SetSubnets(value); return *this;}
108 inline CreateLoadBalancerRequest& WithSubnets(Aws::Vector<Aws::String>&& value) { SetSubnets(std::move(value)); return *this;}
109 inline CreateLoadBalancerRequest& AddSubnets(const Aws::String& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
110 inline CreateLoadBalancerRequest& AddSubnets(Aws::String&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; }
111 inline CreateLoadBalancerRequest& AddSubnets(const char* value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
113
115
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
140 inline const Aws::String& GetScheme() const{ return m_scheme; }
141 inline bool SchemeHasBeenSet() const { return m_schemeHasBeenSet; }
142 inline void SetScheme(const Aws::String& value) { m_schemeHasBeenSet = true; m_scheme = value; }
143 inline void SetScheme(Aws::String&& value) { m_schemeHasBeenSet = true; m_scheme = std::move(value); }
144 inline void SetScheme(const char* value) { m_schemeHasBeenSet = true; m_scheme.assign(value); }
145 inline CreateLoadBalancerRequest& WithScheme(const Aws::String& value) { SetScheme(value); return *this;}
146 inline CreateLoadBalancerRequest& WithScheme(Aws::String&& value) { SetScheme(std::move(value)); return *this;}
147 inline CreateLoadBalancerRequest& WithScheme(const char* value) { SetScheme(value); return *this;}
149
151
157 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
158 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
159 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
160 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
161 inline CreateLoadBalancerRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
162 inline CreateLoadBalancerRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
163 inline CreateLoadBalancerRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
164 inline CreateLoadBalancerRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
166 private:
167
168 Aws::String m_loadBalancerName;
169 bool m_loadBalancerNameHasBeenSet = false;
170
171 Aws::Vector<Listener> m_listeners;
172 bool m_listenersHasBeenSet = false;
173
174 Aws::Vector<Aws::String> m_availabilityZones;
175 bool m_availabilityZonesHasBeenSet = false;
176
177 Aws::Vector<Aws::String> m_subnets;
178 bool m_subnetsHasBeenSet = false;
179
180 Aws::Vector<Aws::String> m_securityGroups;
181 bool m_securityGroupsHasBeenSet = false;
182
183 Aws::String m_scheme;
184 bool m_schemeHasBeenSet = false;
185
186 Aws::Vector<Tag> m_tags;
187 bool m_tagsHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace ElasticLoadBalancing
192} // namespace Aws
CreateLoadBalancerRequest & WithListeners(Aws::Vector< Listener > &&value)
CreateLoadBalancerRequest & WithScheme(const char *value)
CreateLoadBalancerRequest & AddAvailabilityZones(Aws::String &&value)
CreateLoadBalancerRequest & WithAvailabilityZones(Aws::Vector< Aws::String > &&value)
CreateLoadBalancerRequest & AddSubnets(Aws::String &&value)
CreateLoadBalancerRequest & WithTags(const Aws::Vector< Tag > &value)
CreateLoadBalancerRequest & WithSecurityGroups(Aws::Vector< Aws::String > &&value)
CreateLoadBalancerRequest & WithLoadBalancerName(const Aws::String &value)
CreateLoadBalancerRequest & WithSecurityGroups(const Aws::Vector< Aws::String > &value)
CreateLoadBalancerRequest & WithScheme(const Aws::String &value)
AWS_ELASTICLOADBALANCING_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateLoadBalancerRequest & AddListeners(Listener &&value)
CreateLoadBalancerRequest & AddAvailabilityZones(const char *value)
CreateLoadBalancerRequest & AddAvailabilityZones(const Aws::String &value)
CreateLoadBalancerRequest & WithScheme(Aws::String &&value)
void SetSecurityGroups(const Aws::Vector< Aws::String > &value)
CreateLoadBalancerRequest & AddSecurityGroups(Aws::String &&value)
CreateLoadBalancerRequest & AddListeners(const Listener &value)
CreateLoadBalancerRequest & WithSubnets(const Aws::Vector< Aws::String > &value)
CreateLoadBalancerRequest & WithTags(Aws::Vector< Tag > &&value)
CreateLoadBalancerRequest & WithAvailabilityZones(const Aws::Vector< Aws::String > &value)
CreateLoadBalancerRequest & WithLoadBalancerName(Aws::String &&value)
CreateLoadBalancerRequest & WithLoadBalancerName(const char *value)
AWS_ELASTICLOADBALANCING_API Aws::String SerializePayload() const override
CreateLoadBalancerRequest & WithSubnets(Aws::Vector< Aws::String > &&value)
CreateLoadBalancerRequest & AddSubnets(const Aws::String &value)
CreateLoadBalancerRequest & WithListeners(const Aws::Vector< Listener > &value)
CreateLoadBalancerRequest & AddSecurityGroups(const char *value)
void SetAvailabilityZones(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetAvailabilityZones() const
CreateLoadBalancerRequest & AddSubnets(const char *value)
CreateLoadBalancerRequest & AddSecurityGroups(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector