AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
50 inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::move(value); }
51 inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); }
52 inline LoadBalancerAddress& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;}
53 inline LoadBalancerAddress& WithIpAddress(Aws::String&& value) { SetIpAddress(std::move(value)); return *this;}
54 inline LoadBalancerAddress& WithIpAddress(const char* value) { SetIpAddress(value); return *this;}
56
58
62 inline const Aws::String& GetAllocationId() const{ return m_allocationId; }
63 inline bool AllocationIdHasBeenSet() const { return m_allocationIdHasBeenSet; }
64 inline void SetAllocationId(const Aws::String& value) { m_allocationIdHasBeenSet = true; m_allocationId = value; }
65 inline void SetAllocationId(Aws::String&& value) { m_allocationIdHasBeenSet = true; m_allocationId = std::move(value); }
66 inline void SetAllocationId(const char* value) { m_allocationIdHasBeenSet = true; m_allocationId.assign(value); }
67 inline LoadBalancerAddress& WithAllocationId(const Aws::String& value) { SetAllocationId(value); return *this;}
68 inline LoadBalancerAddress& WithAllocationId(Aws::String&& value) { SetAllocationId(std::move(value)); return *this;}
69 inline LoadBalancerAddress& WithAllocationId(const char* value) { SetAllocationId(value); return *this;}
71
73
77 inline const Aws::String& GetPrivateIPv4Address() const{ return m_privateIPv4Address; }
78 inline bool PrivateIPv4AddressHasBeenSet() const { return m_privateIPv4AddressHasBeenSet; }
79 inline void SetPrivateIPv4Address(const Aws::String& value) { m_privateIPv4AddressHasBeenSet = true; m_privateIPv4Address = value; }
80 inline void SetPrivateIPv4Address(Aws::String&& value) { m_privateIPv4AddressHasBeenSet = true; m_privateIPv4Address = std::move(value); }
81 inline void SetPrivateIPv4Address(const char* value) { m_privateIPv4AddressHasBeenSet = true; m_privateIPv4Address.assign(value); }
82 inline LoadBalancerAddress& WithPrivateIPv4Address(const Aws::String& value) { SetPrivateIPv4Address(value); return *this;}
83 inline LoadBalancerAddress& WithPrivateIPv4Address(Aws::String&& value) { SetPrivateIPv4Address(std::move(value)); return *this;}
84 inline LoadBalancerAddress& WithPrivateIPv4Address(const char* value) { SetPrivateIPv4Address(value); return *this;}
86
88
91 inline const Aws::String& GetIPv6Address() const{ return m_iPv6Address; }
92 inline bool IPv6AddressHasBeenSet() const { return m_iPv6AddressHasBeenSet; }
93 inline void SetIPv6Address(const Aws::String& value) { m_iPv6AddressHasBeenSet = true; m_iPv6Address = value; }
94 inline void SetIPv6Address(Aws::String&& value) { m_iPv6AddressHasBeenSet = true; m_iPv6Address = std::move(value); }
95 inline void SetIPv6Address(const char* value) { m_iPv6AddressHasBeenSet = true; m_iPv6Address.assign(value); }
96 inline LoadBalancerAddress& WithIPv6Address(const Aws::String& value) { SetIPv6Address(value); return *this;}
97 inline LoadBalancerAddress& WithIPv6Address(Aws::String&& value) { SetIPv6Address(std::move(value)); return *this;}
98 inline LoadBalancerAddress& WithIPv6Address(const char* value) { SetIPv6Address(value); return *this;}
100 private:
101
102 Aws::String m_ipAddress;
103 bool m_ipAddressHasBeenSet = false;
104
105 Aws::String m_allocationId;
106 bool m_allocationIdHasBeenSet = false;
107
108 Aws::String m_privateIPv4Address;
109 bool m_privateIPv4AddressHasBeenSet = false;
110
111 Aws::String m_iPv6Address;
112 bool m_iPv6AddressHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace ElasticLoadBalancingv2
117} // namespace Aws
LoadBalancerAddress & WithPrivateIPv4Address(const char *value)
LoadBalancerAddress & WithPrivateIPv4Address(const Aws::String &value)
LoadBalancerAddress & WithIPv6Address(const Aws::String &value)
LoadBalancerAddress & WithPrivateIPv4Address(Aws::String &&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 & WithAllocationId(const char *value)
AWS_ELASTICLOADBALANCINGV2_API LoadBalancerAddress & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LoadBalancerAddress & WithIpAddress(const Aws::String &value)
AWS_ELASTICLOADBALANCINGV2_API LoadBalancerAddress()
LoadBalancerAddress & WithIpAddress(const char *value)
LoadBalancerAddress & WithIPv6Address(const char *value)
LoadBalancerAddress & WithIPv6Address(Aws::String &&value)
LoadBalancerAddress & WithIpAddress(Aws::String &&value)
LoadBalancerAddress & WithAllocationId(const Aws::String &value)
AWS_ELASTICLOADBALANCINGV2_API LoadBalancerAddress(const Aws::Utils::Xml::XmlNode &xmlNode)
LoadBalancerAddress & WithAllocationId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream