AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SubnetConfiguration.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/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
29 public:
30 AWS_EC2_API SubnetConfiguration() = default;
31 AWS_EC2_API SubnetConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_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 SubnetConfiguration& WithSubnetId(SubnetIdT&& value) {
50 SetSubnetId(std::forward<SubnetIdT>(value));
51 return *this;
52 }
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) {
68 m_ipv4HasBeenSet = true;
69 m_ipv4 = std::forward<Ipv4T>(value);
70 }
71 template <typename Ipv4T = Aws::String>
72 SubnetConfiguration& WithIpv4(Ipv4T&& value) {
73 SetIpv4(std::forward<Ipv4T>(value));
74 return *this;
75 }
77
79
87 inline const Aws::String& GetIpv6() const { return m_ipv6; }
88 inline bool Ipv6HasBeenSet() const { return m_ipv6HasBeenSet; }
89 template <typename Ipv6T = Aws::String>
90 void SetIpv6(Ipv6T&& value) {
91 m_ipv6HasBeenSet = true;
92 m_ipv6 = std::forward<Ipv6T>(value);
93 }
94 template <typename Ipv6T = Aws::String>
95 SubnetConfiguration& WithIpv6(Ipv6T&& value) {
96 SetIpv6(std::forward<Ipv6T>(value));
97 return *this;
98 }
100 private:
101 Aws::String m_subnetId;
102
103 Aws::String m_ipv4;
104
105 Aws::String m_ipv6;
106 bool m_subnetIdHasBeenSet = false;
107 bool m_ipv4HasBeenSet = false;
108 bool m_ipv6HasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace EC2
113} // 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