AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename SubnetIdT = Aws::String>
49 void SetSubnetId(SubnetIdT&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::forward<SubnetIdT>(value); }
50 template<typename SubnetIdT = Aws::String>
51 SubnetMapping& WithSubnetId(SubnetIdT&& value) { SetSubnetId(std::forward<SubnetIdT>(value)); return *this;}
53
55
59 inline const Aws::String& GetAllocationId() const { return m_allocationId; }
60 inline bool AllocationIdHasBeenSet() const { return m_allocationIdHasBeenSet; }
61 template<typename AllocationIdT = Aws::String>
62 void SetAllocationId(AllocationIdT&& value) { m_allocationIdHasBeenSet = true; m_allocationId = std::forward<AllocationIdT>(value); }
63 template<typename AllocationIdT = Aws::String>
64 SubnetMapping& WithAllocationId(AllocationIdT&& value) { SetAllocationId(std::forward<AllocationIdT>(value)); return *this;}
66
68
72 inline const Aws::String& GetPrivateIPv4Address() const { return m_privateIPv4Address; }
73 inline bool PrivateIPv4AddressHasBeenSet() const { return m_privateIPv4AddressHasBeenSet; }
74 template<typename PrivateIPv4AddressT = Aws::String>
75 void SetPrivateIPv4Address(PrivateIPv4AddressT&& value) { m_privateIPv4AddressHasBeenSet = true; m_privateIPv4Address = std::forward<PrivateIPv4AddressT>(value); }
76 template<typename PrivateIPv4AddressT = Aws::String>
77 SubnetMapping& WithPrivateIPv4Address(PrivateIPv4AddressT&& value) { SetPrivateIPv4Address(std::forward<PrivateIPv4AddressT>(value)); return *this;}
79
81
84 inline const Aws::String& GetIPv6Address() const { return m_iPv6Address; }
85 inline bool IPv6AddressHasBeenSet() const { return m_iPv6AddressHasBeenSet; }
86 template<typename IPv6AddressT = Aws::String>
87 void SetIPv6Address(IPv6AddressT&& value) { m_iPv6AddressHasBeenSet = true; m_iPv6Address = std::forward<IPv6AddressT>(value); }
88 template<typename IPv6AddressT = Aws::String>
89 SubnetMapping& WithIPv6Address(IPv6AddressT&& value) { SetIPv6Address(std::forward<IPv6AddressT>(value)); return *this;}
91
93
99 inline const Aws::String& GetSourceNatIpv6Prefix() const { return m_sourceNatIpv6Prefix; }
100 inline bool SourceNatIpv6PrefixHasBeenSet() const { return m_sourceNatIpv6PrefixHasBeenSet; }
101 template<typename SourceNatIpv6PrefixT = Aws::String>
102 void SetSourceNatIpv6Prefix(SourceNatIpv6PrefixT&& value) { m_sourceNatIpv6PrefixHasBeenSet = true; m_sourceNatIpv6Prefix = std::forward<SourceNatIpv6PrefixT>(value); }
103 template<typename SourceNatIpv6PrefixT = Aws::String>
104 SubnetMapping& WithSourceNatIpv6Prefix(SourceNatIpv6PrefixT&& value) { SetSourceNatIpv6Prefix(std::forward<SourceNatIpv6PrefixT>(value)); return *this;}
106 private:
107
108 Aws::String m_subnetId;
109 bool m_subnetIdHasBeenSet = false;
110
111 Aws::String m_allocationId;
112 bool m_allocationIdHasBeenSet = false;
113
114 Aws::String m_privateIPv4Address;
115 bool m_privateIPv4AddressHasBeenSet = false;
116
117 Aws::String m_iPv6Address;
118 bool m_iPv6AddressHasBeenSet = false;
119
120 Aws::String m_sourceNatIpv6Prefix;
121 bool m_sourceNatIpv6PrefixHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace ElasticLoadBalancingv2
126} // namespace Aws
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetPrivateIPv4Address(PrivateIPv4AddressT &&value)
const Aws::String & GetSourceNatIpv6Prefix() const
SubnetMapping & WithSourceNatIpv6Prefix(SourceNatIpv6PrefixT &&value)
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetSourceNatIpv6Prefix(SourceNatIpv6PrefixT &&value)
SubnetMapping & WithSubnetId(SubnetIdT &&value)
const Aws::String & GetPrivateIPv4Address() const
SubnetMapping & WithIPv6Address(IPv6AddressT &&value)
SubnetMapping & WithPrivateIPv4Address(PrivateIPv4AddressT &&value)
AWS_ELASTICLOADBALANCINGV2_API SubnetMapping()=default
AWS_ELASTICLOADBALANCINGV2_API SubnetMapping(const Aws::Utils::Xml::XmlNode &xmlNode)
SubnetMapping & WithAllocationId(AllocationIdT &&value)
AWS_ELASTICLOADBALANCINGV2_API SubnetMapping & operator=(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