AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VpcPeeringConnectionVpcInfo.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/VpcPeeringConnectionOptionsDescription.h>
12#include <aws/ec2/model/Ipv6CidrBlock.h>
13#include <aws/ec2/model/CidrBlock.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace EC2
26{
27namespace Model
28{
29
36 {
37 public:
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& GetCidrBlock() const{ return m_cidrBlock; }
51 inline bool CidrBlockHasBeenSet() const { return m_cidrBlockHasBeenSet; }
52 inline void SetCidrBlock(const Aws::String& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = value; }
53 inline void SetCidrBlock(Aws::String&& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = std::move(value); }
54 inline void SetCidrBlock(const char* value) { m_cidrBlockHasBeenSet = true; m_cidrBlock.assign(value); }
55 inline VpcPeeringConnectionVpcInfo& WithCidrBlock(const Aws::String& value) { SetCidrBlock(value); return *this;}
56 inline VpcPeeringConnectionVpcInfo& WithCidrBlock(Aws::String&& value) { SetCidrBlock(std::move(value)); return *this;}
57 inline VpcPeeringConnectionVpcInfo& WithCidrBlock(const char* value) { SetCidrBlock(value); return *this;}
59
61
64 inline const Aws::Vector<Ipv6CidrBlock>& GetIpv6CidrBlockSet() const{ return m_ipv6CidrBlockSet; }
65 inline bool Ipv6CidrBlockSetHasBeenSet() const { return m_ipv6CidrBlockSetHasBeenSet; }
66 inline void SetIpv6CidrBlockSet(const Aws::Vector<Ipv6CidrBlock>& value) { m_ipv6CidrBlockSetHasBeenSet = true; m_ipv6CidrBlockSet = value; }
67 inline void SetIpv6CidrBlockSet(Aws::Vector<Ipv6CidrBlock>&& value) { m_ipv6CidrBlockSetHasBeenSet = true; m_ipv6CidrBlockSet = std::move(value); }
70 inline VpcPeeringConnectionVpcInfo& AddIpv6CidrBlockSet(const Ipv6CidrBlock& value) { m_ipv6CidrBlockSetHasBeenSet = true; m_ipv6CidrBlockSet.push_back(value); return *this; }
71 inline VpcPeeringConnectionVpcInfo& AddIpv6CidrBlockSet(Ipv6CidrBlock&& value) { m_ipv6CidrBlockSetHasBeenSet = true; m_ipv6CidrBlockSet.push_back(std::move(value)); return *this; }
73
75
78 inline const Aws::Vector<CidrBlock>& GetCidrBlockSet() const{ return m_cidrBlockSet; }
79 inline bool CidrBlockSetHasBeenSet() const { return m_cidrBlockSetHasBeenSet; }
80 inline void SetCidrBlockSet(const Aws::Vector<CidrBlock>& value) { m_cidrBlockSetHasBeenSet = true; m_cidrBlockSet = value; }
81 inline void SetCidrBlockSet(Aws::Vector<CidrBlock>&& value) { m_cidrBlockSetHasBeenSet = true; m_cidrBlockSet = std::move(value); }
83 inline VpcPeeringConnectionVpcInfo& WithCidrBlockSet(Aws::Vector<CidrBlock>&& value) { SetCidrBlockSet(std::move(value)); return *this;}
84 inline VpcPeeringConnectionVpcInfo& AddCidrBlockSet(const CidrBlock& value) { m_cidrBlockSetHasBeenSet = true; m_cidrBlockSet.push_back(value); return *this; }
85 inline VpcPeeringConnectionVpcInfo& AddCidrBlockSet(CidrBlock&& value) { m_cidrBlockSetHasBeenSet = true; m_cidrBlockSet.push_back(std::move(value)); return *this; }
87
89
92 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
93 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
94 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
95 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
96 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
97 inline VpcPeeringConnectionVpcInfo& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
98 inline VpcPeeringConnectionVpcInfo& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
99 inline VpcPeeringConnectionVpcInfo& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
101
103
107 inline const VpcPeeringConnectionOptionsDescription& GetPeeringOptions() const{ return m_peeringOptions; }
108 inline bool PeeringOptionsHasBeenSet() const { return m_peeringOptionsHasBeenSet; }
109 inline void SetPeeringOptions(const VpcPeeringConnectionOptionsDescription& value) { m_peeringOptionsHasBeenSet = true; m_peeringOptions = value; }
110 inline void SetPeeringOptions(VpcPeeringConnectionOptionsDescription&& value) { m_peeringOptionsHasBeenSet = true; m_peeringOptions = std::move(value); }
114
116
119 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
120 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
121 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
122 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
123 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
124 inline VpcPeeringConnectionVpcInfo& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
125 inline VpcPeeringConnectionVpcInfo& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
126 inline VpcPeeringConnectionVpcInfo& WithVpcId(const char* value) { SetVpcId(value); return *this;}
128
130
133 inline const Aws::String& GetRegion() const{ return m_region; }
134 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
135 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
136 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
137 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
138 inline VpcPeeringConnectionVpcInfo& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
139 inline VpcPeeringConnectionVpcInfo& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
140 inline VpcPeeringConnectionVpcInfo& WithRegion(const char* value) { SetRegion(value); return *this;}
142 private:
143
144 Aws::String m_cidrBlock;
145 bool m_cidrBlockHasBeenSet = false;
146
147 Aws::Vector<Ipv6CidrBlock> m_ipv6CidrBlockSet;
148 bool m_ipv6CidrBlockSetHasBeenSet = false;
149
150 Aws::Vector<CidrBlock> m_cidrBlockSet;
151 bool m_cidrBlockSetHasBeenSet = false;
152
153 Aws::String m_ownerId;
154 bool m_ownerIdHasBeenSet = false;
155
157 bool m_peeringOptionsHasBeenSet = false;
158
159 Aws::String m_vpcId;
160 bool m_vpcIdHasBeenSet = false;
161
162 Aws::String m_region;
163 bool m_regionHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace EC2
168} // namespace Aws
VpcPeeringConnectionVpcInfo & WithOwnerId(const Aws::String &value)
VpcPeeringConnectionVpcInfo & AddIpv6CidrBlockSet(Ipv6CidrBlock &&value)
VpcPeeringConnectionVpcInfo & WithCidrBlock(Aws::String &&value)
void SetIpv6CidrBlockSet(Aws::Vector< Ipv6CidrBlock > &&value)
VpcPeeringConnectionVpcInfo & WithPeeringOptions(const VpcPeeringConnectionOptionsDescription &value)
VpcPeeringConnectionVpcInfo & WithPeeringOptions(VpcPeeringConnectionOptionsDescription &&value)
VpcPeeringConnectionVpcInfo & WithCidrBlockSet(Aws::Vector< CidrBlock > &&value)
VpcPeeringConnectionVpcInfo & WithRegion(Aws::String &&value)
void SetPeeringOptions(const VpcPeeringConnectionOptionsDescription &value)
VpcPeeringConnectionVpcInfo & WithRegion(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const VpcPeeringConnectionOptionsDescription & GetPeeringOptions() const
VpcPeeringConnectionVpcInfo & WithCidrBlock(const Aws::String &value)
VpcPeeringConnectionVpcInfo & WithIpv6CidrBlockSet(Aws::Vector< Ipv6CidrBlock > &&value)
VpcPeeringConnectionVpcInfo & WithIpv6CidrBlockSet(const Aws::Vector< Ipv6CidrBlock > &value)
const Aws::Vector< CidrBlock > & GetCidrBlockSet() const
VpcPeeringConnectionVpcInfo & AddCidrBlockSet(CidrBlock &&value)
const Aws::Vector< Ipv6CidrBlock > & GetIpv6CidrBlockSet() const
void SetCidrBlockSet(Aws::Vector< CidrBlock > &&value)
void SetCidrBlockSet(const Aws::Vector< CidrBlock > &value)
VpcPeeringConnectionVpcInfo & WithRegion(const char *value)
VpcPeeringConnectionVpcInfo & WithCidrBlock(const char *value)
void SetPeeringOptions(VpcPeeringConnectionOptionsDescription &&value)
VpcPeeringConnectionVpcInfo & WithVpcId(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
VpcPeeringConnectionVpcInfo & WithVpcId(Aws::String &&value)
AWS_EC2_API VpcPeeringConnectionVpcInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
VpcPeeringConnectionVpcInfo & WithOwnerId(const char *value)
VpcPeeringConnectionVpcInfo & AddIpv6CidrBlockSet(const Ipv6CidrBlock &value)
VpcPeeringConnectionVpcInfo & WithCidrBlockSet(const Aws::Vector< CidrBlock > &value)
VpcPeeringConnectionVpcInfo & WithVpcId(const char *value)
VpcPeeringConnectionVpcInfo & WithOwnerId(Aws::String &&value)
AWS_EC2_API VpcPeeringConnectionVpcInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
VpcPeeringConnectionVpcInfo & AddCidrBlockSet(const CidrBlock &value)
void SetIpv6CidrBlockSet(const Aws::Vector< Ipv6CidrBlock > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream