AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
50 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
51 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
52 inline SubnetConfiguration& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
53 inline SubnetConfiguration& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
54 inline SubnetConfiguration& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
56
58
66 inline const Aws::String& GetIpv4() const{ return m_ipv4; }
67 inline bool Ipv4HasBeenSet() const { return m_ipv4HasBeenSet; }
68 inline void SetIpv4(const Aws::String& value) { m_ipv4HasBeenSet = true; m_ipv4 = value; }
69 inline void SetIpv4(Aws::String&& value) { m_ipv4HasBeenSet = true; m_ipv4 = std::move(value); }
70 inline void SetIpv4(const char* value) { m_ipv4HasBeenSet = true; m_ipv4.assign(value); }
71 inline SubnetConfiguration& WithIpv4(const Aws::String& value) { SetIpv4(value); return *this;}
72 inline SubnetConfiguration& WithIpv4(Aws::String&& value) { SetIpv4(std::move(value)); return *this;}
73 inline SubnetConfiguration& WithIpv4(const char* value) { SetIpv4(value); return *this;}
75
77
85 inline const Aws::String& GetIpv6() const{ return m_ipv6; }
86 inline bool Ipv6HasBeenSet() const { return m_ipv6HasBeenSet; }
87 inline void SetIpv6(const Aws::String& value) { m_ipv6HasBeenSet = true; m_ipv6 = value; }
88 inline void SetIpv6(Aws::String&& value) { m_ipv6HasBeenSet = true; m_ipv6 = std::move(value); }
89 inline void SetIpv6(const char* value) { m_ipv6HasBeenSet = true; m_ipv6.assign(value); }
90 inline SubnetConfiguration& WithIpv6(const Aws::String& value) { SetIpv6(value); return *this;}
91 inline SubnetConfiguration& WithIpv6(Aws::String&& value) { SetIpv6(std::move(value)); return *this;}
92 inline SubnetConfiguration& WithIpv6(const char* value) { SetIpv6(value); return *this;}
94 private:
95
96 Aws::String m_subnetId;
97 bool m_subnetIdHasBeenSet = false;
98
99 Aws::String m_ipv4;
100 bool m_ipv4HasBeenSet = false;
101
102 Aws::String m_ipv6;
103 bool m_ipv6HasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace EC2
108} // namespace Aws
AWS_EC2_API SubnetConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SubnetConfiguration & WithIpv4(Aws::String &&value)
SubnetConfiguration & WithSubnetId(const char *value)
AWS_EC2_API SubnetConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetSubnetId() const
const Aws::String & GetIpv6() const
void SetSubnetId(const Aws::String &value)
SubnetConfiguration & WithIpv6(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SubnetConfiguration & WithIpv6(const char *value)
SubnetConfiguration & WithSubnetId(Aws::String &&value)
SubnetConfiguration & WithSubnetId(const Aws::String &value)
const Aws::String & GetIpv4() const
SubnetConfiguration & WithIpv6(const Aws::String &value)
void SetIpv4(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
SubnetConfiguration & WithIpv4(const char *value)
void SetIpv6(const Aws::String &value)
SubnetConfiguration & WithIpv4(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream