AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
LoadBalancerAddress.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace ElasticLoadBalancingv2
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_ELASTICLOADBALANCINGV2_API LoadBalancerAddress() = default;
36 AWS_ELASTICLOADBALANCINGV2_API LoadBalancerAddress(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_ELASTICLOADBALANCINGV2_API LoadBalancerAddress& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
48 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
49 template<typename IpAddressT = Aws::String>
50 void SetIpAddress(IpAddressT&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::forward<IpAddressT>(value); }
51 template<typename IpAddressT = Aws::String>
52 LoadBalancerAddress& WithIpAddress(IpAddressT&& value) { SetIpAddress(std::forward<IpAddressT>(value)); return *this;}
54
56
60 inline const Aws::String& GetAllocationId() const { return m_allocationId; }
61 inline bool AllocationIdHasBeenSet() const { return m_allocationIdHasBeenSet; }
62 template<typename AllocationIdT = Aws::String>
63 void SetAllocationId(AllocationIdT&& value) { m_allocationIdHasBeenSet = true; m_allocationId = std::forward<AllocationIdT>(value); }
64 template<typename AllocationIdT = Aws::String>
65 LoadBalancerAddress& WithAllocationId(AllocationIdT&& value) { SetAllocationId(std::forward<AllocationIdT>(value)); return *this;}
67
69
73 inline const Aws::String& GetPrivateIPv4Address() const { return m_privateIPv4Address; }
74 inline bool PrivateIPv4AddressHasBeenSet() const { return m_privateIPv4AddressHasBeenSet; }
75 template<typename PrivateIPv4AddressT = Aws::String>
76 void SetPrivateIPv4Address(PrivateIPv4AddressT&& value) { m_privateIPv4AddressHasBeenSet = true; m_privateIPv4Address = std::forward<PrivateIPv4AddressT>(value); }
77 template<typename PrivateIPv4AddressT = Aws::String>
78 LoadBalancerAddress& WithPrivateIPv4Address(PrivateIPv4AddressT&& value) { SetPrivateIPv4Address(std::forward<PrivateIPv4AddressT>(value)); return *this;}
80
82
85 inline const Aws::String& GetIPv6Address() const { return m_iPv6Address; }
86 inline bool IPv6AddressHasBeenSet() const { return m_iPv6AddressHasBeenSet; }
87 template<typename IPv6AddressT = Aws::String>
88 void SetIPv6Address(IPv6AddressT&& value) { m_iPv6AddressHasBeenSet = true; m_iPv6Address = std::forward<IPv6AddressT>(value); }
89 template<typename IPv6AddressT = Aws::String>
90 LoadBalancerAddress& WithIPv6Address(IPv6AddressT&& value) { SetIPv6Address(std::forward<IPv6AddressT>(value)); return *this;}
92 private:
93
94 Aws::String m_ipAddress;
95 bool m_ipAddressHasBeenSet = false;
96
97 Aws::String m_allocationId;
98 bool m_allocationIdHasBeenSet = false;
99
100 Aws::String m_privateIPv4Address;
101 bool m_privateIPv4AddressHasBeenSet = false;
102
103 Aws::String m_iPv6Address;
104 bool m_iPv6AddressHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace ElasticLoadBalancingv2
109} // namespace Aws
AWS_ELASTICLOADBALANCINGV2_API LoadBalancerAddress()=default
LoadBalancerAddress & WithIPv6Address(IPv6AddressT &&value)
LoadBalancerAddress & WithAllocationId(AllocationIdT &&value)
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
LoadBalancerAddress & WithIpAddress(IpAddressT &&value)
AWS_ELASTICLOADBALANCINGV2_API LoadBalancerAddress & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LoadBalancerAddress & WithPrivateIPv4Address(PrivateIPv4AddressT &&value)
AWS_ELASTICLOADBALANCINGV2_API LoadBalancerAddress(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream