AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Vpc.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/Tenancy.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/VpcState.h>
13#include <aws/ec2/model/VpcIpv6CidrBlockAssociation.h>
14#include <aws/ec2/model/VpcCidrBlockAssociation.h>
15#include <aws/ec2/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Xml
23{
24 class XmlNode;
25} // namespace Xml
26} // namespace Utils
27namespace EC2
28{
29namespace Model
30{
31
37 class Vpc
38 {
39 public:
40 AWS_EC2_API Vpc();
41 AWS_EC2_API Vpc(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_EC2_API Vpc& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
47
49
52 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
53 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
54 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
55 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
56 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
57 inline Vpc& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
58 inline Vpc& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
59 inline Vpc& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
61
63
66 inline const Tenancy& GetInstanceTenancy() const{ return m_instanceTenancy; }
67 inline bool InstanceTenancyHasBeenSet() const { return m_instanceTenancyHasBeenSet; }
68 inline void SetInstanceTenancy(const Tenancy& value) { m_instanceTenancyHasBeenSet = true; m_instanceTenancy = value; }
69 inline void SetInstanceTenancy(Tenancy&& value) { m_instanceTenancyHasBeenSet = true; m_instanceTenancy = std::move(value); }
70 inline Vpc& WithInstanceTenancy(const Tenancy& value) { SetInstanceTenancy(value); return *this;}
71 inline Vpc& WithInstanceTenancy(Tenancy&& value) { SetInstanceTenancy(std::move(value)); return *this;}
73
75
78 inline const Aws::Vector<VpcIpv6CidrBlockAssociation>& GetIpv6CidrBlockAssociationSet() const{ return m_ipv6CidrBlockAssociationSet; }
79 inline bool Ipv6CidrBlockAssociationSetHasBeenSet() const { return m_ipv6CidrBlockAssociationSetHasBeenSet; }
80 inline void SetIpv6CidrBlockAssociationSet(const Aws::Vector<VpcIpv6CidrBlockAssociation>& value) { m_ipv6CidrBlockAssociationSetHasBeenSet = true; m_ipv6CidrBlockAssociationSet = value; }
81 inline void SetIpv6CidrBlockAssociationSet(Aws::Vector<VpcIpv6CidrBlockAssociation>&& value) { m_ipv6CidrBlockAssociationSetHasBeenSet = true; m_ipv6CidrBlockAssociationSet = std::move(value); }
84 inline Vpc& AddIpv6CidrBlockAssociationSet(const VpcIpv6CidrBlockAssociation& value) { m_ipv6CidrBlockAssociationSetHasBeenSet = true; m_ipv6CidrBlockAssociationSet.push_back(value); return *this; }
85 inline Vpc& AddIpv6CidrBlockAssociationSet(VpcIpv6CidrBlockAssociation&& value) { m_ipv6CidrBlockAssociationSetHasBeenSet = true; m_ipv6CidrBlockAssociationSet.push_back(std::move(value)); return *this; }
87
89
92 inline const Aws::Vector<VpcCidrBlockAssociation>& GetCidrBlockAssociationSet() const{ return m_cidrBlockAssociationSet; }
93 inline bool CidrBlockAssociationSetHasBeenSet() const { return m_cidrBlockAssociationSetHasBeenSet; }
94 inline void SetCidrBlockAssociationSet(const Aws::Vector<VpcCidrBlockAssociation>& value) { m_cidrBlockAssociationSetHasBeenSet = true; m_cidrBlockAssociationSet = value; }
95 inline void SetCidrBlockAssociationSet(Aws::Vector<VpcCidrBlockAssociation>&& value) { m_cidrBlockAssociationSetHasBeenSet = true; m_cidrBlockAssociationSet = std::move(value); }
98 inline Vpc& AddCidrBlockAssociationSet(const VpcCidrBlockAssociation& value) { m_cidrBlockAssociationSetHasBeenSet = true; m_cidrBlockAssociationSet.push_back(value); return *this; }
99 inline Vpc& AddCidrBlockAssociationSet(VpcCidrBlockAssociation&& value) { m_cidrBlockAssociationSetHasBeenSet = true; m_cidrBlockAssociationSet.push_back(std::move(value)); return *this; }
101
103
106 inline bool GetIsDefault() const{ return m_isDefault; }
107 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
108 inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; }
109 inline Vpc& WithIsDefault(bool value) { SetIsDefault(value); return *this;}
111
113
116 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
117 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
118 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
119 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
120 inline Vpc& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
121 inline Vpc& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
122 inline Vpc& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
123 inline Vpc& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
125
127
130 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
131 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
132 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
133 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
134 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
135 inline Vpc& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
136 inline Vpc& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
137 inline Vpc& WithVpcId(const char* value) { SetVpcId(value); return *this;}
139
141
144 inline const VpcState& GetState() const{ return m_state; }
145 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
146 inline void SetState(const VpcState& value) { m_stateHasBeenSet = true; m_state = value; }
147 inline void SetState(VpcState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
148 inline Vpc& WithState(const VpcState& value) { SetState(value); return *this;}
149 inline Vpc& WithState(VpcState&& value) { SetState(std::move(value)); return *this;}
151
153
156 inline const Aws::String& GetCidrBlock() const{ return m_cidrBlock; }
157 inline bool CidrBlockHasBeenSet() const { return m_cidrBlockHasBeenSet; }
158 inline void SetCidrBlock(const Aws::String& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = value; }
159 inline void SetCidrBlock(Aws::String&& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = std::move(value); }
160 inline void SetCidrBlock(const char* value) { m_cidrBlockHasBeenSet = true; m_cidrBlock.assign(value); }
161 inline Vpc& WithCidrBlock(const Aws::String& value) { SetCidrBlock(value); return *this;}
162 inline Vpc& WithCidrBlock(Aws::String&& value) { SetCidrBlock(std::move(value)); return *this;}
163 inline Vpc& WithCidrBlock(const char* value) { SetCidrBlock(value); return *this;}
165
167
170 inline const Aws::String& GetDhcpOptionsId() const{ return m_dhcpOptionsId; }
171 inline bool DhcpOptionsIdHasBeenSet() const { return m_dhcpOptionsIdHasBeenSet; }
172 inline void SetDhcpOptionsId(const Aws::String& value) { m_dhcpOptionsIdHasBeenSet = true; m_dhcpOptionsId = value; }
173 inline void SetDhcpOptionsId(Aws::String&& value) { m_dhcpOptionsIdHasBeenSet = true; m_dhcpOptionsId = std::move(value); }
174 inline void SetDhcpOptionsId(const char* value) { m_dhcpOptionsIdHasBeenSet = true; m_dhcpOptionsId.assign(value); }
175 inline Vpc& WithDhcpOptionsId(const Aws::String& value) { SetDhcpOptionsId(value); return *this;}
176 inline Vpc& WithDhcpOptionsId(Aws::String&& value) { SetDhcpOptionsId(std::move(value)); return *this;}
177 inline Vpc& WithDhcpOptionsId(const char* value) { SetDhcpOptionsId(value); return *this;}
179 private:
180
181 Aws::String m_ownerId;
182 bool m_ownerIdHasBeenSet = false;
183
184 Tenancy m_instanceTenancy;
185 bool m_instanceTenancyHasBeenSet = false;
186
187 Aws::Vector<VpcIpv6CidrBlockAssociation> m_ipv6CidrBlockAssociationSet;
188 bool m_ipv6CidrBlockAssociationSetHasBeenSet = false;
189
190 Aws::Vector<VpcCidrBlockAssociation> m_cidrBlockAssociationSet;
191 bool m_cidrBlockAssociationSetHasBeenSet = false;
192
193 bool m_isDefault;
194 bool m_isDefaultHasBeenSet = false;
195
196 Aws::Vector<Tag> m_tags;
197 bool m_tagsHasBeenSet = false;
198
199 Aws::String m_vpcId;
200 bool m_vpcIdHasBeenSet = false;
201
202 VpcState m_state;
203 bool m_stateHasBeenSet = false;
204
205 Aws::String m_cidrBlock;
206 bool m_cidrBlockHasBeenSet = false;
207
208 Aws::String m_dhcpOptionsId;
209 bool m_dhcpOptionsIdHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace EC2
214} // namespace Aws
Vpc & WithVpcId(const char *value)
Definition Vpc.h:137
const Aws::String & GetVpcId() const
Definition Vpc.h:130
Vpc & AddTags(Tag &&value)
Definition Vpc.h:123
Vpc & WithInstanceTenancy(Tenancy &&value)
Definition Vpc.h:71
bool TagsHasBeenSet() const
Definition Vpc.h:117
Vpc & WithCidrBlockAssociationSet(Aws::Vector< VpcCidrBlockAssociation > &&value)
Definition Vpc.h:97
void SetCidrBlockAssociationSet(Aws::Vector< VpcCidrBlockAssociation > &&value)
Definition Vpc.h:95
const Aws::String & GetCidrBlock() const
Definition Vpc.h:156
Vpc & WithOwnerId(Aws::String &&value)
Definition Vpc.h:58
Vpc & WithIsDefault(bool value)
Definition Vpc.h:109
bool IsDefaultHasBeenSet() const
Definition Vpc.h:107
Vpc & WithState(const VpcState &value)
Definition Vpc.h:148
Vpc & AddIpv6CidrBlockAssociationSet(VpcIpv6CidrBlockAssociation &&value)
Definition Vpc.h:85
void SetTags(Aws::Vector< Tag > &&value)
Definition Vpc.h:119
void SetOwnerId(const Aws::String &value)
Definition Vpc.h:54
Vpc & WithCidrBlock(Aws::String &&value)
Definition Vpc.h:162
Vpc & WithOwnerId(const char *value)
Definition Vpc.h:59
const Aws::Vector< VpcIpv6CidrBlockAssociation > & GetIpv6CidrBlockAssociationSet() const
Definition Vpc.h:78
bool OwnerIdHasBeenSet() const
Definition Vpc.h:53
void SetIsDefault(bool value)
Definition Vpc.h:108
bool CidrBlockAssociationSetHasBeenSet() const
Definition Vpc.h:93
Vpc & WithIpv6CidrBlockAssociationSet(const Aws::Vector< VpcIpv6CidrBlockAssociation > &value)
Definition Vpc.h:82
bool VpcIdHasBeenSet() const
Definition Vpc.h:131
const Aws::String & GetDhcpOptionsId() const
Definition Vpc.h:170
Vpc & WithOwnerId(const Aws::String &value)
Definition Vpc.h:57
Vpc & WithCidrBlock(const Aws::String &value)
Definition Vpc.h:161
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Vpc & AddIpv6CidrBlockAssociationSet(const VpcIpv6CidrBlockAssociation &value)
Definition Vpc.h:84
const Aws::Vector< VpcCidrBlockAssociation > & GetCidrBlockAssociationSet() const
Definition Vpc.h:92
Vpc & AddCidrBlockAssociationSet(VpcCidrBlockAssociation &&value)
Definition Vpc.h:99
void SetVpcId(Aws::String &&value)
Definition Vpc.h:133
void SetOwnerId(const char *value)
Definition Vpc.h:56
AWS_EC2_API Vpc & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API Vpc(const Aws::Utils::Xml::XmlNode &xmlNode)
Vpc & WithDhcpOptionsId(Aws::String &&value)
Definition Vpc.h:176
Vpc & WithState(VpcState &&value)
Definition Vpc.h:149
bool CidrBlockHasBeenSet() const
Definition Vpc.h:157
Vpc & WithDhcpOptionsId(const Aws::String &value)
Definition Vpc.h:175
Vpc & AddCidrBlockAssociationSet(const VpcCidrBlockAssociation &value)
Definition Vpc.h:98
const Tenancy & GetInstanceTenancy() const
Definition Vpc.h:66
void SetCidrBlock(const char *value)
Definition Vpc.h:160
Vpc & WithDhcpOptionsId(const char *value)
Definition Vpc.h:177
void SetIpv6CidrBlockAssociationSet(Aws::Vector< VpcIpv6CidrBlockAssociation > &&value)
Definition Vpc.h:81
void SetVpcId(const char *value)
Definition Vpc.h:134
Vpc & WithCidrBlock(const char *value)
Definition Vpc.h:163
Vpc & WithTags(Aws::Vector< Tag > &&value)
Definition Vpc.h:121
void SetDhcpOptionsId(const Aws::String &value)
Definition Vpc.h:172
void SetInstanceTenancy(Tenancy &&value)
Definition Vpc.h:69
Vpc & WithCidrBlockAssociationSet(const Aws::Vector< VpcCidrBlockAssociation > &value)
Definition Vpc.h:96
bool Ipv6CidrBlockAssociationSetHasBeenSet() const
Definition Vpc.h:79
bool StateHasBeenSet() const
Definition Vpc.h:145
void SetCidrBlockAssociationSet(const Aws::Vector< VpcCidrBlockAssociation > &value)
Definition Vpc.h:94
void SetDhcpOptionsId(const char *value)
Definition Vpc.h:174
const Aws::String & GetOwnerId() const
Definition Vpc.h:52
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool GetIsDefault() const
Definition Vpc.h:106
bool InstanceTenancyHasBeenSet() const
Definition Vpc.h:67
Vpc & WithTags(const Aws::Vector< Tag > &value)
Definition Vpc.h:120
void SetOwnerId(Aws::String &&value)
Definition Vpc.h:55
void SetVpcId(const Aws::String &value)
Definition Vpc.h:132
const VpcState & GetState() const
Definition Vpc.h:144
void SetInstanceTenancy(const Tenancy &value)
Definition Vpc.h:68
Vpc & WithVpcId(const Aws::String &value)
Definition Vpc.h:135
void SetIpv6CidrBlockAssociationSet(const Aws::Vector< VpcIpv6CidrBlockAssociation > &value)
Definition Vpc.h:80
void SetCidrBlock(Aws::String &&value)
Definition Vpc.h:159
const Aws::Vector< Tag > & GetTags() const
Definition Vpc.h:116
void SetState(const VpcState &value)
Definition Vpc.h:146
void SetState(VpcState &&value)
Definition Vpc.h:147
void SetTags(const Aws::Vector< Tag > &value)
Definition Vpc.h:118
Vpc & AddTags(const Tag &value)
Definition Vpc.h:122
Vpc & WithIpv6CidrBlockAssociationSet(Aws::Vector< VpcIpv6CidrBlockAssociation > &&value)
Definition Vpc.h:83
void SetDhcpOptionsId(Aws::String &&value)
Definition Vpc.h:173
AWS_EC2_API Vpc()
Vpc & WithInstanceTenancy(const Tenancy &value)
Definition Vpc.h:70
Vpc & WithVpcId(Aws::String &&value)
Definition Vpc.h:136
void SetCidrBlock(const Aws::String &value)
Definition Vpc.h:158
bool DhcpOptionsIdHasBeenSet() const
Definition Vpc.h:171
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