AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SubnetIpv6CidrBlockAssociation.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 <aws/ec2/model/SubnetCidrBlockState.h>
11#include <aws/ec2/model/Ipv6AddressAttribute.h>
12#include <aws/ec2/model/IpSource.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_EC2_API SubnetIpv6CidrBlockAssociation() = default;
41
42 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetAssociationId() const { return m_associationId; }
51 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
52 template<typename AssociationIdT = Aws::String>
53 void SetAssociationId(AssociationIdT&& value) { m_associationIdHasBeenSet = true; m_associationId = std::forward<AssociationIdT>(value); }
54 template<typename AssociationIdT = Aws::String>
55 SubnetIpv6CidrBlockAssociation& WithAssociationId(AssociationIdT&& value) { SetAssociationId(std::forward<AssociationIdT>(value)); return *this;}
57
59
62 inline const Aws::String& GetIpv6CidrBlock() const { return m_ipv6CidrBlock; }
63 inline bool Ipv6CidrBlockHasBeenSet() const { return m_ipv6CidrBlockHasBeenSet; }
64 template<typename Ipv6CidrBlockT = Aws::String>
65 void SetIpv6CidrBlock(Ipv6CidrBlockT&& value) { m_ipv6CidrBlockHasBeenSet = true; m_ipv6CidrBlock = std::forward<Ipv6CidrBlockT>(value); }
66 template<typename Ipv6CidrBlockT = Aws::String>
67 SubnetIpv6CidrBlockAssociation& WithIpv6CidrBlock(Ipv6CidrBlockT&& value) { SetIpv6CidrBlock(std::forward<Ipv6CidrBlockT>(value)); return *this;}
69
71
74 inline const SubnetCidrBlockState& GetIpv6CidrBlockState() const { return m_ipv6CidrBlockState; }
75 inline bool Ipv6CidrBlockStateHasBeenSet() const { return m_ipv6CidrBlockStateHasBeenSet; }
76 template<typename Ipv6CidrBlockStateT = SubnetCidrBlockState>
77 void SetIpv6CidrBlockState(Ipv6CidrBlockStateT&& value) { m_ipv6CidrBlockStateHasBeenSet = true; m_ipv6CidrBlockState = std::forward<Ipv6CidrBlockStateT>(value); }
78 template<typename Ipv6CidrBlockStateT = SubnetCidrBlockState>
79 SubnetIpv6CidrBlockAssociation& WithIpv6CidrBlockState(Ipv6CidrBlockStateT&& value) { SetIpv6CidrBlockState(std::forward<Ipv6CidrBlockStateT>(value)); return *this;}
81
83
88 inline Ipv6AddressAttribute GetIpv6AddressAttribute() const { return m_ipv6AddressAttribute; }
89 inline bool Ipv6AddressAttributeHasBeenSet() const { return m_ipv6AddressAttributeHasBeenSet; }
90 inline void SetIpv6AddressAttribute(Ipv6AddressAttribute value) { m_ipv6AddressAttributeHasBeenSet = true; m_ipv6AddressAttribute = value; }
93
95
101 inline IpSource GetIpSource() const { return m_ipSource; }
102 inline bool IpSourceHasBeenSet() const { return m_ipSourceHasBeenSet; }
103 inline void SetIpSource(IpSource value) { m_ipSourceHasBeenSet = true; m_ipSource = value; }
104 inline SubnetIpv6CidrBlockAssociation& WithIpSource(IpSource value) { SetIpSource(value); return *this;}
106 private:
107
108 Aws::String m_associationId;
109 bool m_associationIdHasBeenSet = false;
110
111 Aws::String m_ipv6CidrBlock;
112 bool m_ipv6CidrBlockHasBeenSet = false;
113
114 SubnetCidrBlockState m_ipv6CidrBlockState;
115 bool m_ipv6CidrBlockStateHasBeenSet = false;
116
118 bool m_ipv6AddressAttributeHasBeenSet = false;
119
120 IpSource m_ipSource{IpSource::NOT_SET};
121 bool m_ipSourceHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace EC2
126} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
SubnetIpv6CidrBlockAssociation & WithAssociationId(AssociationIdT &&value)
SubnetIpv6CidrBlockAssociation & WithIpv6CidrBlockState(Ipv6CidrBlockStateT &&value)
SubnetIpv6CidrBlockAssociation & WithIpv6CidrBlock(Ipv6CidrBlockT &&value)
SubnetIpv6CidrBlockAssociation & WithIpv6AddressAttribute(Ipv6AddressAttribute value)
AWS_EC2_API SubnetIpv6CidrBlockAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API SubnetIpv6CidrBlockAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SubnetIpv6CidrBlockAssociation & WithIpSource(IpSource value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream