AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SubnetConfiguration.h
1
6#pragma once
7#include <aws/ec2/EC2_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 EC2
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_EC2_API SubnetConfiguration() = default;
36 AWS_EC2_API SubnetConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
48 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
49 template<typename SubnetIdT = Aws::String>
50 void SetSubnetId(SubnetIdT&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::forward<SubnetIdT>(value); }
51 template<typename SubnetIdT = Aws::String>
52 SubnetConfiguration& WithSubnetId(SubnetIdT&& value) { SetSubnetId(std::forward<SubnetIdT>(value)); return *this;}
54
56
64 inline const Aws::String& GetIpv4() const { return m_ipv4; }
65 inline bool Ipv4HasBeenSet() const { return m_ipv4HasBeenSet; }
66 template<typename Ipv4T = Aws::String>
67 void SetIpv4(Ipv4T&& value) { m_ipv4HasBeenSet = true; m_ipv4 = std::forward<Ipv4T>(value); }
68 template<typename Ipv4T = Aws::String>
69 SubnetConfiguration& WithIpv4(Ipv4T&& value) { SetIpv4(std::forward<Ipv4T>(value)); return *this;}
71
73
81 inline const Aws::String& GetIpv6() const { return m_ipv6; }
82 inline bool Ipv6HasBeenSet() const { return m_ipv6HasBeenSet; }
83 template<typename Ipv6T = Aws::String>
84 void SetIpv6(Ipv6T&& value) { m_ipv6HasBeenSet = true; m_ipv6 = std::forward<Ipv6T>(value); }
85 template<typename Ipv6T = Aws::String>
86 SubnetConfiguration& WithIpv6(Ipv6T&& value) { SetIpv6(std::forward<Ipv6T>(value)); return *this;}
88 private:
89
90 Aws::String m_subnetId;
91 bool m_subnetIdHasBeenSet = false;
92
93 Aws::String m_ipv4;
94 bool m_ipv4HasBeenSet = false;
95
96 Aws::String m_ipv6;
97 bool m_ipv6HasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace EC2
102} // namespace Aws
AWS_EC2_API SubnetConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SubnetConfiguration & WithIpv4(Ipv4T &&value)
AWS_EC2_API SubnetConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetSubnetId() const
AWS_EC2_API SubnetConfiguration()=default
const Aws::String & GetIpv6() const
SubnetConfiguration & WithSubnetId(SubnetIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SubnetConfiguration & WithIpv6(Ipv6T &&value)
const Aws::String & GetIpv4() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream