AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LoadBalancerDescription.h
1
6#pragma once
7#include <aws/elasticloadbalancing/ElasticLoadBalancing_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticloadbalancing/model/Policies.h>
12#include <aws/elasticloadbalancing/model/HealthCheck.h>
13#include <aws/elasticloadbalancing/model/SourceSecurityGroup.h>
14#include <aws/core/utils/DateTime.h>
15#include <aws/elasticloadbalancing/model/ListenerDescription.h>
16#include <aws/elasticloadbalancing/model/BackendServerDescription.h>
17#include <aws/elasticloadbalancing/model/Instance.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Xml
25{
26 class XmlNode;
27} // namespace Xml
28} // namespace Utils
29namespace ElasticLoadBalancing
30{
31namespace Model
32{
33
40 {
41 public:
42 AWS_ELASTICLOADBALANCING_API LoadBalancerDescription();
43 AWS_ELASTICLOADBALANCING_API LoadBalancerDescription(const Aws::Utils::Xml::XmlNode& xmlNode);
44 AWS_ELASTICLOADBALANCING_API LoadBalancerDescription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45
46 AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47 AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
48
49
51
54 inline const Aws::String& GetLoadBalancerName() const{ return m_loadBalancerName; }
55 inline bool LoadBalancerNameHasBeenSet() const { return m_loadBalancerNameHasBeenSet; }
56 inline void SetLoadBalancerName(const Aws::String& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = value; }
57 inline void SetLoadBalancerName(Aws::String&& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = std::move(value); }
58 inline void SetLoadBalancerName(const char* value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName.assign(value); }
59 inline LoadBalancerDescription& WithLoadBalancerName(const Aws::String& value) { SetLoadBalancerName(value); return *this;}
60 inline LoadBalancerDescription& WithLoadBalancerName(Aws::String&& value) { SetLoadBalancerName(std::move(value)); return *this;}
61 inline LoadBalancerDescription& WithLoadBalancerName(const char* value) { SetLoadBalancerName(value); return *this;}
63
65
68 inline const Aws::String& GetDNSName() const{ return m_dNSName; }
69 inline bool DNSNameHasBeenSet() const { return m_dNSNameHasBeenSet; }
70 inline void SetDNSName(const Aws::String& value) { m_dNSNameHasBeenSet = true; m_dNSName = value; }
71 inline void SetDNSName(Aws::String&& value) { m_dNSNameHasBeenSet = true; m_dNSName = std::move(value); }
72 inline void SetDNSName(const char* value) { m_dNSNameHasBeenSet = true; m_dNSName.assign(value); }
73 inline LoadBalancerDescription& WithDNSName(const Aws::String& value) { SetDNSName(value); return *this;}
74 inline LoadBalancerDescription& WithDNSName(Aws::String&& value) { SetDNSName(std::move(value)); return *this;}
75 inline LoadBalancerDescription& WithDNSName(const char* value) { SetDNSName(value); return *this;}
77
79
84 inline const Aws::String& GetCanonicalHostedZoneName() const{ return m_canonicalHostedZoneName; }
85 inline bool CanonicalHostedZoneNameHasBeenSet() const { return m_canonicalHostedZoneNameHasBeenSet; }
86 inline void SetCanonicalHostedZoneName(const Aws::String& value) { m_canonicalHostedZoneNameHasBeenSet = true; m_canonicalHostedZoneName = value; }
87 inline void SetCanonicalHostedZoneName(Aws::String&& value) { m_canonicalHostedZoneNameHasBeenSet = true; m_canonicalHostedZoneName = std::move(value); }
88 inline void SetCanonicalHostedZoneName(const char* value) { m_canonicalHostedZoneNameHasBeenSet = true; m_canonicalHostedZoneName.assign(value); }
91 inline LoadBalancerDescription& WithCanonicalHostedZoneName(const char* value) { SetCanonicalHostedZoneName(value); return *this;}
93
95
98 inline const Aws::String& GetCanonicalHostedZoneNameID() const{ return m_canonicalHostedZoneNameID; }
99 inline bool CanonicalHostedZoneNameIDHasBeenSet() const { return m_canonicalHostedZoneNameIDHasBeenSet; }
100 inline void SetCanonicalHostedZoneNameID(const Aws::String& value) { m_canonicalHostedZoneNameIDHasBeenSet = true; m_canonicalHostedZoneNameID = value; }
101 inline void SetCanonicalHostedZoneNameID(Aws::String&& value) { m_canonicalHostedZoneNameIDHasBeenSet = true; m_canonicalHostedZoneNameID = std::move(value); }
102 inline void SetCanonicalHostedZoneNameID(const char* value) { m_canonicalHostedZoneNameIDHasBeenSet = true; m_canonicalHostedZoneNameID.assign(value); }
107
109
112 inline const Aws::Vector<ListenerDescription>& GetListenerDescriptions() const{ return m_listenerDescriptions; }
113 inline bool ListenerDescriptionsHasBeenSet() const { return m_listenerDescriptionsHasBeenSet; }
114 inline void SetListenerDescriptions(const Aws::Vector<ListenerDescription>& value) { m_listenerDescriptionsHasBeenSet = true; m_listenerDescriptions = value; }
115 inline void SetListenerDescriptions(Aws::Vector<ListenerDescription>&& value) { m_listenerDescriptionsHasBeenSet = true; m_listenerDescriptions = std::move(value); }
118 inline LoadBalancerDescription& AddListenerDescriptions(const ListenerDescription& value) { m_listenerDescriptionsHasBeenSet = true; m_listenerDescriptions.push_back(value); return *this; }
119 inline LoadBalancerDescription& AddListenerDescriptions(ListenerDescription&& value) { m_listenerDescriptionsHasBeenSet = true; m_listenerDescriptions.push_back(std::move(value)); return *this; }
121
123
126 inline const Policies& GetPolicies() const{ return m_policies; }
127 inline bool PoliciesHasBeenSet() const { return m_policiesHasBeenSet; }
128 inline void SetPolicies(const Policies& value) { m_policiesHasBeenSet = true; m_policies = value; }
129 inline void SetPolicies(Policies&& value) { m_policiesHasBeenSet = true; m_policies = std::move(value); }
130 inline LoadBalancerDescription& WithPolicies(const Policies& value) { SetPolicies(value); return *this;}
131 inline LoadBalancerDescription& WithPolicies(Policies&& value) { SetPolicies(std::move(value)); return *this;}
133
135
138 inline const Aws::Vector<BackendServerDescription>& GetBackendServerDescriptions() const{ return m_backendServerDescriptions; }
139 inline bool BackendServerDescriptionsHasBeenSet() const { return m_backendServerDescriptionsHasBeenSet; }
140 inline void SetBackendServerDescriptions(const Aws::Vector<BackendServerDescription>& value) { m_backendServerDescriptionsHasBeenSet = true; m_backendServerDescriptions = value; }
141 inline void SetBackendServerDescriptions(Aws::Vector<BackendServerDescription>&& value) { m_backendServerDescriptionsHasBeenSet = true; m_backendServerDescriptions = std::move(value); }
144 inline LoadBalancerDescription& AddBackendServerDescriptions(const BackendServerDescription& value) { m_backendServerDescriptionsHasBeenSet = true; m_backendServerDescriptions.push_back(value); return *this; }
145 inline LoadBalancerDescription& AddBackendServerDescriptions(BackendServerDescription&& value) { m_backendServerDescriptionsHasBeenSet = true; m_backendServerDescriptions.push_back(std::move(value)); return *this; }
147
149
152 inline const Aws::Vector<Aws::String>& GetAvailabilityZones() const{ return m_availabilityZones; }
153 inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
154 inline void SetAvailabilityZones(const Aws::Vector<Aws::String>& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = value; }
155 inline void SetAvailabilityZones(Aws::Vector<Aws::String>&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::move(value); }
158 inline LoadBalancerDescription& AddAvailabilityZones(const Aws::String& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
159 inline LoadBalancerDescription& AddAvailabilityZones(Aws::String&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; }
160 inline LoadBalancerDescription& AddAvailabilityZones(const char* value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
162
164
167 inline const Aws::Vector<Aws::String>& GetSubnets() const{ return m_subnets; }
168 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
169 inline void SetSubnets(const Aws::Vector<Aws::String>& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
170 inline void SetSubnets(Aws::Vector<Aws::String>&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); }
171 inline LoadBalancerDescription& WithSubnets(const Aws::Vector<Aws::String>& value) { SetSubnets(value); return *this;}
172 inline LoadBalancerDescription& WithSubnets(Aws::Vector<Aws::String>&& value) { SetSubnets(std::move(value)); return *this;}
173 inline LoadBalancerDescription& AddSubnets(const Aws::String& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
174 inline LoadBalancerDescription& AddSubnets(Aws::String&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; }
175 inline LoadBalancerDescription& AddSubnets(const char* value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
177
179
182 inline const Aws::String& GetVPCId() const{ return m_vPCId; }
183 inline bool VPCIdHasBeenSet() const { return m_vPCIdHasBeenSet; }
184 inline void SetVPCId(const Aws::String& value) { m_vPCIdHasBeenSet = true; m_vPCId = value; }
185 inline void SetVPCId(Aws::String&& value) { m_vPCIdHasBeenSet = true; m_vPCId = std::move(value); }
186 inline void SetVPCId(const char* value) { m_vPCIdHasBeenSet = true; m_vPCId.assign(value); }
187 inline LoadBalancerDescription& WithVPCId(const Aws::String& value) { SetVPCId(value); return *this;}
188 inline LoadBalancerDescription& WithVPCId(Aws::String&& value) { SetVPCId(std::move(value)); return *this;}
189 inline LoadBalancerDescription& WithVPCId(const char* value) { SetVPCId(value); return *this;}
191
193
196 inline const Aws::Vector<Instance>& GetInstances() const{ return m_instances; }
197 inline bool InstancesHasBeenSet() const { return m_instancesHasBeenSet; }
198 inline void SetInstances(const Aws::Vector<Instance>& value) { m_instancesHasBeenSet = true; m_instances = value; }
199 inline void SetInstances(Aws::Vector<Instance>&& value) { m_instancesHasBeenSet = true; m_instances = std::move(value); }
200 inline LoadBalancerDescription& WithInstances(const Aws::Vector<Instance>& value) { SetInstances(value); return *this;}
201 inline LoadBalancerDescription& WithInstances(Aws::Vector<Instance>&& value) { SetInstances(std::move(value)); return *this;}
202 inline LoadBalancerDescription& AddInstances(const Instance& value) { m_instancesHasBeenSet = true; m_instances.push_back(value); return *this; }
203 inline LoadBalancerDescription& AddInstances(Instance&& value) { m_instancesHasBeenSet = true; m_instances.push_back(std::move(value)); return *this; }
205
207
210 inline const HealthCheck& GetHealthCheck() const{ return m_healthCheck; }
211 inline bool HealthCheckHasBeenSet() const { return m_healthCheckHasBeenSet; }
212 inline void SetHealthCheck(const HealthCheck& value) { m_healthCheckHasBeenSet = true; m_healthCheck = value; }
213 inline void SetHealthCheck(HealthCheck&& value) { m_healthCheckHasBeenSet = true; m_healthCheck = std::move(value); }
214 inline LoadBalancerDescription& WithHealthCheck(const HealthCheck& value) { SetHealthCheck(value); return *this;}
215 inline LoadBalancerDescription& WithHealthCheck(HealthCheck&& value) { SetHealthCheck(std::move(value)); return *this;}
217
219
225 inline const SourceSecurityGroup& GetSourceSecurityGroup() const{ return m_sourceSecurityGroup; }
226 inline bool SourceSecurityGroupHasBeenSet() const { return m_sourceSecurityGroupHasBeenSet; }
227 inline void SetSourceSecurityGroup(const SourceSecurityGroup& value) { m_sourceSecurityGroupHasBeenSet = true; m_sourceSecurityGroup = value; }
228 inline void SetSourceSecurityGroup(SourceSecurityGroup&& value) { m_sourceSecurityGroupHasBeenSet = true; m_sourceSecurityGroup = std::move(value); }
232
234
238 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const{ return m_securityGroups; }
239 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
240 inline void SetSecurityGroups(const Aws::Vector<Aws::String>& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; }
241 inline void SetSecurityGroups(Aws::Vector<Aws::String>&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); }
244 inline LoadBalancerDescription& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
245 inline LoadBalancerDescription& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; }
246 inline LoadBalancerDescription& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
248
250
253 inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; }
254 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
255 inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; }
256 inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); }
257 inline LoadBalancerDescription& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;}
258 inline LoadBalancerDescription& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;}
260
262
269 inline const Aws::String& GetScheme() const{ return m_scheme; }
270 inline bool SchemeHasBeenSet() const { return m_schemeHasBeenSet; }
271 inline void SetScheme(const Aws::String& value) { m_schemeHasBeenSet = true; m_scheme = value; }
272 inline void SetScheme(Aws::String&& value) { m_schemeHasBeenSet = true; m_scheme = std::move(value); }
273 inline void SetScheme(const char* value) { m_schemeHasBeenSet = true; m_scheme.assign(value); }
274 inline LoadBalancerDescription& WithScheme(const Aws::String& value) { SetScheme(value); return *this;}
275 inline LoadBalancerDescription& WithScheme(Aws::String&& value) { SetScheme(std::move(value)); return *this;}
276 inline LoadBalancerDescription& WithScheme(const char* value) { SetScheme(value); return *this;}
278 private:
279
280 Aws::String m_loadBalancerName;
281 bool m_loadBalancerNameHasBeenSet = false;
282
283 Aws::String m_dNSName;
284 bool m_dNSNameHasBeenSet = false;
285
286 Aws::String m_canonicalHostedZoneName;
287 bool m_canonicalHostedZoneNameHasBeenSet = false;
288
289 Aws::String m_canonicalHostedZoneNameID;
290 bool m_canonicalHostedZoneNameIDHasBeenSet = false;
291
292 Aws::Vector<ListenerDescription> m_listenerDescriptions;
293 bool m_listenerDescriptionsHasBeenSet = false;
294
295 Policies m_policies;
296 bool m_policiesHasBeenSet = false;
297
298 Aws::Vector<BackendServerDescription> m_backendServerDescriptions;
299 bool m_backendServerDescriptionsHasBeenSet = false;
300
301 Aws::Vector<Aws::String> m_availabilityZones;
302 bool m_availabilityZonesHasBeenSet = false;
303
304 Aws::Vector<Aws::String> m_subnets;
305 bool m_subnetsHasBeenSet = false;
306
307 Aws::String m_vPCId;
308 bool m_vPCIdHasBeenSet = false;
309
310 Aws::Vector<Instance> m_instances;
311 bool m_instancesHasBeenSet = false;
312
313 HealthCheck m_healthCheck;
314 bool m_healthCheckHasBeenSet = false;
315
316 SourceSecurityGroup m_sourceSecurityGroup;
317 bool m_sourceSecurityGroupHasBeenSet = false;
318
319 Aws::Vector<Aws::String> m_securityGroups;
320 bool m_securityGroupsHasBeenSet = false;
321
322 Aws::Utils::DateTime m_createdTime;
323 bool m_createdTimeHasBeenSet = false;
324
325 Aws::String m_scheme;
326 bool m_schemeHasBeenSet = false;
327 };
328
329} // namespace Model
330} // namespace ElasticLoadBalancing
331} // namespace Aws
AWS_ELASTICLOADBALANCING_API LoadBalancerDescription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LoadBalancerDescription & WithListenerDescriptions(const Aws::Vector< ListenerDescription > &value)
const Aws::Vector< ListenerDescription > & GetListenerDescriptions() const
LoadBalancerDescription & AddInstances(const Instance &value)
LoadBalancerDescription & WithSubnets(Aws::Vector< Aws::String > &&value)
LoadBalancerDescription & WithListenerDescriptions(Aws::Vector< ListenerDescription > &&value)
LoadBalancerDescription & WithHealthCheck(const HealthCheck &value)
void SetListenerDescriptions(const Aws::Vector< ListenerDescription > &value)
LoadBalancerDescription & AddAvailabilityZones(const Aws::String &value)
void SetBackendServerDescriptions(const Aws::Vector< BackendServerDescription > &value)
LoadBalancerDescription & WithSecurityGroups(Aws::Vector< Aws::String > &&value)
LoadBalancerDescription & WithCanonicalHostedZoneNameID(const char *value)
LoadBalancerDescription & AddSubnets(Aws::String &&value)
LoadBalancerDescription & AddSubnets(const char *value)
LoadBalancerDescription & AddInstances(Instance &&value)
LoadBalancerDescription & WithVPCId(const char *value)
LoadBalancerDescription & AddListenerDescriptions(const ListenerDescription &value)
LoadBalancerDescription & WithLoadBalancerName(Aws::String &&value)
LoadBalancerDescription & WithCreatedTime(const Aws::Utils::DateTime &value)
const Aws::Vector< BackendServerDescription > & GetBackendServerDescriptions() const
LoadBalancerDescription & WithScheme(Aws::String &&value)
LoadBalancerDescription & WithVPCId(Aws::String &&value)
LoadBalancerDescription & WithInstances(const Aws::Vector< Instance > &value)
LoadBalancerDescription & AddSecurityGroups(const Aws::String &value)
LoadBalancerDescription & WithSourceSecurityGroup(SourceSecurityGroup &&value)
const Aws::Vector< Aws::String > & GetSecurityGroups() const
LoadBalancerDescription & AddAvailabilityZones(Aws::String &&value)
LoadBalancerDescription & WithAvailabilityZones(Aws::Vector< Aws::String > &&value)
AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
LoadBalancerDescription & WithPolicies(const Policies &value)
LoadBalancerDescription & WithAvailabilityZones(const Aws::Vector< Aws::String > &value)
LoadBalancerDescription & WithCanonicalHostedZoneNameID(Aws::String &&value)
LoadBalancerDescription & WithCanonicalHostedZoneName(Aws::String &&value)
LoadBalancerDescription & AddBackendServerDescriptions(const BackendServerDescription &value)
LoadBalancerDescription & WithPolicies(Policies &&value)
LoadBalancerDescription & WithSourceSecurityGroup(const SourceSecurityGroup &value)
LoadBalancerDescription & WithLoadBalancerName(const Aws::String &value)
LoadBalancerDescription & WithLoadBalancerName(const char *value)
LoadBalancerDescription & AddListenerDescriptions(ListenerDescription &&value)
LoadBalancerDescription & WithSecurityGroups(const Aws::Vector< Aws::String > &value)
LoadBalancerDescription & WithCanonicalHostedZoneName(const char *value)
LoadBalancerDescription & WithBackendServerDescriptions(const Aws::Vector< BackendServerDescription > &value)
LoadBalancerDescription & WithBackendServerDescriptions(Aws::Vector< BackendServerDescription > &&value)
LoadBalancerDescription & AddAvailabilityZones(const char *value)
LoadBalancerDescription & WithInstances(Aws::Vector< Instance > &&value)
AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
LoadBalancerDescription & WithDNSName(const char *value)
LoadBalancerDescription & WithCanonicalHostedZoneName(const Aws::String &value)
LoadBalancerDescription & WithHealthCheck(HealthCheck &&value)
LoadBalancerDescription & AddSecurityGroups(Aws::String &&value)
void SetSubnets(const Aws::Vector< Aws::String > &value)
LoadBalancerDescription & WithVPCId(const Aws::String &value)
LoadBalancerDescription & WithDNSName(const Aws::String &value)
void SetBackendServerDescriptions(Aws::Vector< BackendServerDescription > &&value)
LoadBalancerDescription & WithScheme(const char *value)
void SetSecurityGroups(const Aws::Vector< Aws::String > &value)
LoadBalancerDescription & WithScheme(const Aws::String &value)
LoadBalancerDescription & AddSecurityGroups(const char *value)
void SetAvailabilityZones(Aws::Vector< Aws::String > &&value)
LoadBalancerDescription & AddSubnets(const Aws::String &value)
LoadBalancerDescription & WithCreatedTime(Aws::Utils::DateTime &&value)
LoadBalancerDescription & AddBackendServerDescriptions(BackendServerDescription &&value)
void SetAvailabilityZones(const Aws::Vector< Aws::String > &value)
LoadBalancerDescription & WithCanonicalHostedZoneNameID(const Aws::String &value)
LoadBalancerDescription & WithDNSName(Aws::String &&value)
LoadBalancerDescription & WithSubnets(const Aws::Vector< Aws::String > &value)
void SetListenerDescriptions(Aws::Vector< ListenerDescription > &&value)
const Aws::Vector< Aws::String > & GetAvailabilityZones() const
AWS_ELASTICLOADBALANCING_API LoadBalancerDescription(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream