AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
LoadBalancerAddress.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace ElasticLoadBalancingv2 {
20namespace Model {
21
29 public:
30 AWS_ELASTICLOADBALANCINGV2_API LoadBalancerAddress() = default;
31 AWS_ELASTICLOADBALANCINGV2_API LoadBalancerAddress(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_ELASTICLOADBALANCINGV2_API LoadBalancerAddress& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
35 const char* locationValue) const;
36 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
43 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
44 template <typename IpAddressT = Aws::String>
45 void SetIpAddress(IpAddressT&& value) {
46 m_ipAddressHasBeenSet = true;
47 m_ipAddress = std::forward<IpAddressT>(value);
48 }
49 template <typename IpAddressT = Aws::String>
50 LoadBalancerAddress& WithIpAddress(IpAddressT&& value) {
51 SetIpAddress(std::forward<IpAddressT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetAllocationId() const { return m_allocationId; }
62 inline bool AllocationIdHasBeenSet() const { return m_allocationIdHasBeenSet; }
63 template <typename AllocationIdT = Aws::String>
64 void SetAllocationId(AllocationIdT&& value) {
65 m_allocationIdHasBeenSet = true;
66 m_allocationId = std::forward<AllocationIdT>(value);
67 }
68 template <typename AllocationIdT = Aws::String>
69 LoadBalancerAddress& WithAllocationId(AllocationIdT&& value) {
70 SetAllocationId(std::forward<AllocationIdT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetPrivateIPv4Address() const { return m_privateIPv4Address; }
81 inline bool PrivateIPv4AddressHasBeenSet() const { return m_privateIPv4AddressHasBeenSet; }
82 template <typename PrivateIPv4AddressT = Aws::String>
83 void SetPrivateIPv4Address(PrivateIPv4AddressT&& value) {
84 m_privateIPv4AddressHasBeenSet = true;
85 m_privateIPv4Address = std::forward<PrivateIPv4AddressT>(value);
86 }
87 template <typename PrivateIPv4AddressT = Aws::String>
88 LoadBalancerAddress& WithPrivateIPv4Address(PrivateIPv4AddressT&& value) {
89 SetPrivateIPv4Address(std::forward<PrivateIPv4AddressT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetIPv6Address() const { return m_iPv6Address; }
99 inline bool IPv6AddressHasBeenSet() const { return m_iPv6AddressHasBeenSet; }
100 template <typename IPv6AddressT = Aws::String>
101 void SetIPv6Address(IPv6AddressT&& value) {
102 m_iPv6AddressHasBeenSet = true;
103 m_iPv6Address = std::forward<IPv6AddressT>(value);
104 }
105 template <typename IPv6AddressT = Aws::String>
106 LoadBalancerAddress& WithIPv6Address(IPv6AddressT&& value) {
107 SetIPv6Address(std::forward<IPv6AddressT>(value));
108 return *this;
109 }
111 private:
112 Aws::String m_ipAddress;
113
114 Aws::String m_allocationId;
115
116 Aws::String m_privateIPv4Address;
117
118 Aws::String m_iPv6Address;
119 bool m_ipAddressHasBeenSet = false;
120 bool m_allocationIdHasBeenSet = false;
121 bool m_privateIPv4AddressHasBeenSet = false;
122 bool m_iPv6AddressHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace ElasticLoadBalancingv2
127} // 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