AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceIpv6Address.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
32 {
33 public:
34 AWS_EC2_API InstanceIpv6Address();
35 AWS_EC2_API InstanceIpv6Address(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
43
46 inline const Aws::String& GetIpv6Address() const{ return m_ipv6Address; }
47 inline bool Ipv6AddressHasBeenSet() const { return m_ipv6AddressHasBeenSet; }
48 inline void SetIpv6Address(const Aws::String& value) { m_ipv6AddressHasBeenSet = true; m_ipv6Address = value; }
49 inline void SetIpv6Address(Aws::String&& value) { m_ipv6AddressHasBeenSet = true; m_ipv6Address = std::move(value); }
50 inline void SetIpv6Address(const char* value) { m_ipv6AddressHasBeenSet = true; m_ipv6Address.assign(value); }
51 inline InstanceIpv6Address& WithIpv6Address(const Aws::String& value) { SetIpv6Address(value); return *this;}
52 inline InstanceIpv6Address& WithIpv6Address(Aws::String&& value) { SetIpv6Address(std::move(value)); return *this;}
53 inline InstanceIpv6Address& WithIpv6Address(const char* value) { SetIpv6Address(value); return *this;}
55
57
64 inline bool GetIsPrimaryIpv6() const{ return m_isPrimaryIpv6; }
65 inline bool IsPrimaryIpv6HasBeenSet() const { return m_isPrimaryIpv6HasBeenSet; }
66 inline void SetIsPrimaryIpv6(bool value) { m_isPrimaryIpv6HasBeenSet = true; m_isPrimaryIpv6 = value; }
67 inline InstanceIpv6Address& WithIsPrimaryIpv6(bool value) { SetIsPrimaryIpv6(value); return *this;}
69 private:
70
71 Aws::String m_ipv6Address;
72 bool m_ipv6AddressHasBeenSet = false;
73
74 bool m_isPrimaryIpv6;
75 bool m_isPrimaryIpv6HasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace EC2
80} // namespace Aws
void SetIpv6Address(Aws::String &&value)
const Aws::String & GetIpv6Address() const
InstanceIpv6Address & WithIpv6Address(Aws::String &&value)
AWS_EC2_API InstanceIpv6Address & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceIpv6Address & WithIpv6Address(const Aws::String &value)
InstanceIpv6Address & WithIsPrimaryIpv6(bool value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
InstanceIpv6Address & WithIpv6Address(const char *value)
AWS_EC2_API InstanceIpv6Address(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetIpv6Address(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