AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SubnetMapping.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
28 public:
29 AWS_ELASTICLOADBALANCINGV2_API SubnetMapping() = default;
30 AWS_ELASTICLOADBALANCINGV2_API SubnetMapping(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_ELASTICLOADBALANCINGV2_API SubnetMapping& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
34 const char* locationValue) const;
35 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
42 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
43 template <typename SubnetIdT = Aws::String>
44 void SetSubnetId(SubnetIdT&& value) {
45 m_subnetIdHasBeenSet = true;
46 m_subnetId = std::forward<SubnetIdT>(value);
47 }
48 template <typename SubnetIdT = Aws::String>
49 SubnetMapping& WithSubnetId(SubnetIdT&& value) {
50 SetSubnetId(std::forward<SubnetIdT>(value));
51 return *this;
52 }
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) {
64 m_allocationIdHasBeenSet = true;
65 m_allocationId = std::forward<AllocationIdT>(value);
66 }
67 template <typename AllocationIdT = Aws::String>
68 SubnetMapping& WithAllocationId(AllocationIdT&& value) {
69 SetAllocationId(std::forward<AllocationIdT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetPrivateIPv4Address() const { return m_privateIPv4Address; }
80 inline bool PrivateIPv4AddressHasBeenSet() const { return m_privateIPv4AddressHasBeenSet; }
81 template <typename PrivateIPv4AddressT = Aws::String>
82 void SetPrivateIPv4Address(PrivateIPv4AddressT&& value) {
83 m_privateIPv4AddressHasBeenSet = true;
84 m_privateIPv4Address = std::forward<PrivateIPv4AddressT>(value);
85 }
86 template <typename PrivateIPv4AddressT = Aws::String>
87 SubnetMapping& WithPrivateIPv4Address(PrivateIPv4AddressT&& value) {
88 SetPrivateIPv4Address(std::forward<PrivateIPv4AddressT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetIPv6Address() const { return m_iPv6Address; }
98 inline bool IPv6AddressHasBeenSet() const { return m_iPv6AddressHasBeenSet; }
99 template <typename IPv6AddressT = Aws::String>
100 void SetIPv6Address(IPv6AddressT&& value) {
101 m_iPv6AddressHasBeenSet = true;
102 m_iPv6Address = std::forward<IPv6AddressT>(value);
103 }
104 template <typename IPv6AddressT = Aws::String>
105 SubnetMapping& WithIPv6Address(IPv6AddressT&& value) {
106 SetIPv6Address(std::forward<IPv6AddressT>(value));
107 return *this;
108 }
110
112
118 inline const Aws::String& GetSourceNatIpv6Prefix() const { return m_sourceNatIpv6Prefix; }
119 inline bool SourceNatIpv6PrefixHasBeenSet() const { return m_sourceNatIpv6PrefixHasBeenSet; }
120 template <typename SourceNatIpv6PrefixT = Aws::String>
121 void SetSourceNatIpv6Prefix(SourceNatIpv6PrefixT&& value) {
122 m_sourceNatIpv6PrefixHasBeenSet = true;
123 m_sourceNatIpv6Prefix = std::forward<SourceNatIpv6PrefixT>(value);
124 }
125 template <typename SourceNatIpv6PrefixT = Aws::String>
126 SubnetMapping& WithSourceNatIpv6Prefix(SourceNatIpv6PrefixT&& value) {
127 SetSourceNatIpv6Prefix(std::forward<SourceNatIpv6PrefixT>(value));
128 return *this;
129 }
131 private:
132 Aws::String m_subnetId;
133
134 Aws::String m_allocationId;
135
136 Aws::String m_privateIPv4Address;
137
138 Aws::String m_iPv6Address;
139
140 Aws::String m_sourceNatIpv6Prefix;
141 bool m_subnetIdHasBeenSet = false;
142 bool m_allocationIdHasBeenSet = false;
143 bool m_privateIPv4AddressHasBeenSet = false;
144 bool m_iPv6AddressHasBeenSet = false;
145 bool m_sourceNatIpv6PrefixHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace ElasticLoadBalancingv2
150} // namespace Aws
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetPrivateIPv4Address(PrivateIPv4AddressT &&value)
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