AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AvailabilityZone.h
1
6#pragma once
7#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_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/elasticloadbalancingv2/model/LoadBalancerAddress.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace ElasticLoadBalancingv2
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_ELASTICLOADBALANCINGV2_API AvailabilityZone();
37 AWS_ELASTICLOADBALANCINGV2_API AvailabilityZone(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_ELASTICLOADBALANCINGV2_API AvailabilityZone& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetZoneName() const{ return m_zoneName; }
49 inline bool ZoneNameHasBeenSet() const { return m_zoneNameHasBeenSet; }
50 inline void SetZoneName(const Aws::String& value) { m_zoneNameHasBeenSet = true; m_zoneName = value; }
51 inline void SetZoneName(Aws::String&& value) { m_zoneNameHasBeenSet = true; m_zoneName = std::move(value); }
52 inline void SetZoneName(const char* value) { m_zoneNameHasBeenSet = true; m_zoneName.assign(value); }
53 inline AvailabilityZone& WithZoneName(const Aws::String& value) { SetZoneName(value); return *this;}
54 inline AvailabilityZone& WithZoneName(Aws::String&& value) { SetZoneName(std::move(value)); return *this;}
55 inline AvailabilityZone& WithZoneName(const char* value) { SetZoneName(value); return *this;}
57
59
62 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
63 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
64 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
65 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
66 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
67 inline AvailabilityZone& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
68 inline AvailabilityZone& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
69 inline AvailabilityZone& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
71
73
76 inline const Aws::String& GetOutpostId() const{ return m_outpostId; }
77 inline bool OutpostIdHasBeenSet() const { return m_outpostIdHasBeenSet; }
78 inline void SetOutpostId(const Aws::String& value) { m_outpostIdHasBeenSet = true; m_outpostId = value; }
79 inline void SetOutpostId(Aws::String&& value) { m_outpostIdHasBeenSet = true; m_outpostId = std::move(value); }
80 inline void SetOutpostId(const char* value) { m_outpostIdHasBeenSet = true; m_outpostId.assign(value); }
81 inline AvailabilityZone& WithOutpostId(const Aws::String& value) { SetOutpostId(value); return *this;}
82 inline AvailabilityZone& WithOutpostId(Aws::String&& value) { SetOutpostId(std::move(value)); return *this;}
83 inline AvailabilityZone& WithOutpostId(const char* value) { SetOutpostId(value); return *this;}
85
87
93 inline const Aws::Vector<LoadBalancerAddress>& GetLoadBalancerAddresses() const{ return m_loadBalancerAddresses; }
94 inline bool LoadBalancerAddressesHasBeenSet() const { return m_loadBalancerAddressesHasBeenSet; }
95 inline void SetLoadBalancerAddresses(const Aws::Vector<LoadBalancerAddress>& value) { m_loadBalancerAddressesHasBeenSet = true; m_loadBalancerAddresses = value; }
96 inline void SetLoadBalancerAddresses(Aws::Vector<LoadBalancerAddress>&& value) { m_loadBalancerAddressesHasBeenSet = true; m_loadBalancerAddresses = std::move(value); }
99 inline AvailabilityZone& AddLoadBalancerAddresses(const LoadBalancerAddress& value) { m_loadBalancerAddressesHasBeenSet = true; m_loadBalancerAddresses.push_back(value); return *this; }
100 inline AvailabilityZone& AddLoadBalancerAddresses(LoadBalancerAddress&& value) { m_loadBalancerAddressesHasBeenSet = true; m_loadBalancerAddresses.push_back(std::move(value)); return *this; }
102
104
110 inline const Aws::Vector<Aws::String>& GetSourceNatIpv6Prefixes() const{ return m_sourceNatIpv6Prefixes; }
111 inline bool SourceNatIpv6PrefixesHasBeenSet() const { return m_sourceNatIpv6PrefixesHasBeenSet; }
112 inline void SetSourceNatIpv6Prefixes(const Aws::Vector<Aws::String>& value) { m_sourceNatIpv6PrefixesHasBeenSet = true; m_sourceNatIpv6Prefixes = value; }
113 inline void SetSourceNatIpv6Prefixes(Aws::Vector<Aws::String>&& value) { m_sourceNatIpv6PrefixesHasBeenSet = true; m_sourceNatIpv6Prefixes = std::move(value); }
116 inline AvailabilityZone& AddSourceNatIpv6Prefixes(const Aws::String& value) { m_sourceNatIpv6PrefixesHasBeenSet = true; m_sourceNatIpv6Prefixes.push_back(value); return *this; }
117 inline AvailabilityZone& AddSourceNatIpv6Prefixes(Aws::String&& value) { m_sourceNatIpv6PrefixesHasBeenSet = true; m_sourceNatIpv6Prefixes.push_back(std::move(value)); return *this; }
118 inline AvailabilityZone& AddSourceNatIpv6Prefixes(const char* value) { m_sourceNatIpv6PrefixesHasBeenSet = true; m_sourceNatIpv6Prefixes.push_back(value); return *this; }
120 private:
121
122 Aws::String m_zoneName;
123 bool m_zoneNameHasBeenSet = false;
124
125 Aws::String m_subnetId;
126 bool m_subnetIdHasBeenSet = false;
127
128 Aws::String m_outpostId;
129 bool m_outpostIdHasBeenSet = false;
130
131 Aws::Vector<LoadBalancerAddress> m_loadBalancerAddresses;
132 bool m_loadBalancerAddressesHasBeenSet = false;
133
134 Aws::Vector<Aws::String> m_sourceNatIpv6Prefixes;
135 bool m_sourceNatIpv6PrefixesHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace ElasticLoadBalancingv2
140} // namespace Aws
AvailabilityZone & WithSubnetId(const char *value)
AvailabilityZone & WithZoneName(Aws::String &&value)
AvailabilityZone & WithOutpostId(Aws::String &&value)
AvailabilityZone & WithZoneName(const Aws::String &value)
const Aws::Vector< LoadBalancerAddress > & GetLoadBalancerAddresses() const
void SetLoadBalancerAddresses(Aws::Vector< LoadBalancerAddress > &&value)
AvailabilityZone & WithSourceNatIpv6Prefixes(Aws::Vector< Aws::String > &&value)
AvailabilityZone & AddLoadBalancerAddresses(const LoadBalancerAddress &value)
AvailabilityZone & WithSubnetId(const Aws::String &value)
void SetSourceNatIpv6Prefixes(const Aws::Vector< Aws::String > &value)
AvailabilityZone & WithSourceNatIpv6Prefixes(const Aws::Vector< Aws::String > &value)
void SetLoadBalancerAddresses(const Aws::Vector< LoadBalancerAddress > &value)
AvailabilityZone & AddSourceNatIpv6Prefixes(Aws::String &&value)
const Aws::Vector< Aws::String > & GetSourceNatIpv6Prefixes() const
AWS_ELASTICLOADBALANCINGV2_API AvailabilityZone()
AvailabilityZone & WithOutpostId(const Aws::String &value)
AvailabilityZone & AddLoadBalancerAddresses(LoadBalancerAddress &&value)
AvailabilityZone & WithLoadBalancerAddresses(const Aws::Vector< LoadBalancerAddress > &value)
void SetSourceNatIpv6Prefixes(Aws::Vector< Aws::String > &&value)
AWS_ELASTICLOADBALANCINGV2_API AvailabilityZone(const Aws::Utils::Xml::XmlNode &xmlNode)
AvailabilityZone & WithZoneName(const char *value)
AvailabilityZone & WithLoadBalancerAddresses(Aws::Vector< LoadBalancerAddress > &&value)
AWS_ELASTICLOADBALANCINGV2_API AvailabilityZone & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AvailabilityZone & AddSourceNatIpv6Prefixes(const Aws::String &value)
AvailabilityZone & WithOutpostId(const char *value)
AvailabilityZone & WithSubnetId(Aws::String &&value)
AvailabilityZone & AddSourceNatIpv6Prefixes(const char *value)
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