AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SubnetMapping.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
32 {
33 public:
34 AWS_ELASTICLOADBALANCINGV2_API SubnetMapping();
35 AWS_ELASTICLOADBALANCINGV2_API SubnetMapping(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_ELASTICLOADBALANCINGV2_API SubnetMapping& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
43
46 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
47 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
48 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
49 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
50 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
51 inline SubnetMapping& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
52 inline SubnetMapping& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
53 inline SubnetMapping& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
55
57
61 inline const Aws::String& GetAllocationId() const{ return m_allocationId; }
62 inline bool AllocationIdHasBeenSet() const { return m_allocationIdHasBeenSet; }
63 inline void SetAllocationId(const Aws::String& value) { m_allocationIdHasBeenSet = true; m_allocationId = value; }
64 inline void SetAllocationId(Aws::String&& value) { m_allocationIdHasBeenSet = true; m_allocationId = std::move(value); }
65 inline void SetAllocationId(const char* value) { m_allocationIdHasBeenSet = true; m_allocationId.assign(value); }
66 inline SubnetMapping& WithAllocationId(const Aws::String& value) { SetAllocationId(value); return *this;}
67 inline SubnetMapping& WithAllocationId(Aws::String&& value) { SetAllocationId(std::move(value)); return *this;}
68 inline SubnetMapping& WithAllocationId(const char* value) { SetAllocationId(value); return *this;}
70
72
76 inline const Aws::String& GetPrivateIPv4Address() const{ return m_privateIPv4Address; }
77 inline bool PrivateIPv4AddressHasBeenSet() const { return m_privateIPv4AddressHasBeenSet; }
78 inline void SetPrivateIPv4Address(const Aws::String& value) { m_privateIPv4AddressHasBeenSet = true; m_privateIPv4Address = value; }
79 inline void SetPrivateIPv4Address(Aws::String&& value) { m_privateIPv4AddressHasBeenSet = true; m_privateIPv4Address = std::move(value); }
80 inline void SetPrivateIPv4Address(const char* value) { m_privateIPv4AddressHasBeenSet = true; m_privateIPv4Address.assign(value); }
81 inline SubnetMapping& WithPrivateIPv4Address(const Aws::String& value) { SetPrivateIPv4Address(value); return *this;}
82 inline SubnetMapping& WithPrivateIPv4Address(Aws::String&& value) { SetPrivateIPv4Address(std::move(value)); return *this;}
83 inline SubnetMapping& WithPrivateIPv4Address(const char* value) { SetPrivateIPv4Address(value); return *this;}
85
87
90 inline const Aws::String& GetIPv6Address() const{ return m_iPv6Address; }
91 inline bool IPv6AddressHasBeenSet() const { return m_iPv6AddressHasBeenSet; }
92 inline void SetIPv6Address(const Aws::String& value) { m_iPv6AddressHasBeenSet = true; m_iPv6Address = value; }
93 inline void SetIPv6Address(Aws::String&& value) { m_iPv6AddressHasBeenSet = true; m_iPv6Address = std::move(value); }
94 inline void SetIPv6Address(const char* value) { m_iPv6AddressHasBeenSet = true; m_iPv6Address.assign(value); }
95 inline SubnetMapping& WithIPv6Address(const Aws::String& value) { SetIPv6Address(value); return *this;}
96 inline SubnetMapping& WithIPv6Address(Aws::String&& value) { SetIPv6Address(std::move(value)); return *this;}
97 inline SubnetMapping& WithIPv6Address(const char* value) { SetIPv6Address(value); return *this;}
99
101
107 inline const Aws::String& GetSourceNatIpv6Prefix() const{ return m_sourceNatIpv6Prefix; }
108 inline bool SourceNatIpv6PrefixHasBeenSet() const { return m_sourceNatIpv6PrefixHasBeenSet; }
109 inline void SetSourceNatIpv6Prefix(const Aws::String& value) { m_sourceNatIpv6PrefixHasBeenSet = true; m_sourceNatIpv6Prefix = value; }
110 inline void SetSourceNatIpv6Prefix(Aws::String&& value) { m_sourceNatIpv6PrefixHasBeenSet = true; m_sourceNatIpv6Prefix = std::move(value); }
111 inline void SetSourceNatIpv6Prefix(const char* value) { m_sourceNatIpv6PrefixHasBeenSet = true; m_sourceNatIpv6Prefix.assign(value); }
112 inline SubnetMapping& WithSourceNatIpv6Prefix(const Aws::String& value) { SetSourceNatIpv6Prefix(value); return *this;}
113 inline SubnetMapping& WithSourceNatIpv6Prefix(Aws::String&& value) { SetSourceNatIpv6Prefix(std::move(value)); return *this;}
114 inline SubnetMapping& WithSourceNatIpv6Prefix(const char* value) { SetSourceNatIpv6Prefix(value); return *this;}
116 private:
117
118 Aws::String m_subnetId;
119 bool m_subnetIdHasBeenSet = false;
120
121 Aws::String m_allocationId;
122 bool m_allocationIdHasBeenSet = false;
123
124 Aws::String m_privateIPv4Address;
125 bool m_privateIPv4AddressHasBeenSet = false;
126
127 Aws::String m_iPv6Address;
128 bool m_iPv6AddressHasBeenSet = false;
129
130 Aws::String m_sourceNatIpv6Prefix;
131 bool m_sourceNatIpv6PrefixHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace ElasticLoadBalancingv2
136} // namespace Aws
void SetSourceNatIpv6Prefix(const Aws::String &value)
SubnetMapping & WithPrivateIPv4Address(const Aws::String &value)
void SetPrivateIPv4Address(const Aws::String &value)
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SubnetMapping & WithSubnetId(const Aws::String &value)
SubnetMapping & WithIPv6Address(const Aws::String &value)
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
SubnetMapping & WithAllocationId(const char *value)
const Aws::String & GetPrivateIPv4Address() const
SubnetMapping & WithPrivateIPv4Address(Aws::String &&value)
SubnetMapping & WithAllocationId(Aws::String &&value)
void SetAllocationId(const Aws::String &value)
SubnetMapping & WithSourceNatIpv6Prefix(Aws::String &&value)
SubnetMapping & WithIPv6Address(const char *value)
SubnetMapping & WithPrivateIPv4Address(const char *value)
SubnetMapping & WithSourceNatIpv6Prefix(const Aws::String &value)
AWS_ELASTICLOADBALANCINGV2_API SubnetMapping(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICLOADBALANCINGV2_API SubnetMapping()
SubnetMapping & WithSubnetId(Aws::String &&value)
void SetIPv6Address(const Aws::String &value)
SubnetMapping & WithAllocationId(const Aws::String &value)
AWS_ELASTICLOADBALANCINGV2_API SubnetMapping & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SubnetMapping & WithSubnetId(const char *value)
SubnetMapping & WithSourceNatIpv6Prefix(const char *value)
SubnetMapping & WithIPv6Address(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream