AWS SDK for C++  1.9.74
AWS SDK for C++
NetworkAcl.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
13 #include <aws/ec2/model/Tag.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Utils
19 {
20 namespace Xml
21 {
22  class XmlNode;
23 } // namespace Xml
24 } // namespace Utils
25 namespace EC2
26 {
27 namespace Model
28 {
29 
36  {
37  public:
41 
42  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43  void OutputToStream(Aws::OStream& oStream, const char* location) const;
44 
45 
49  inline const Aws::Vector<NetworkAclAssociation>& GetAssociations() const{ return m_associations; }
50 
54  inline bool AssociationsHasBeenSet() const { return m_associationsHasBeenSet; }
55 
59  inline void SetAssociations(const Aws::Vector<NetworkAclAssociation>& value) { m_associationsHasBeenSet = true; m_associations = value; }
60 
64  inline void SetAssociations(Aws::Vector<NetworkAclAssociation>&& value) { m_associationsHasBeenSet = true; m_associations = std::move(value); }
65 
69  inline NetworkAcl& WithAssociations(const Aws::Vector<NetworkAclAssociation>& value) { SetAssociations(value); return *this;}
70 
74  inline NetworkAcl& WithAssociations(Aws::Vector<NetworkAclAssociation>&& value) { SetAssociations(std::move(value)); return *this;}
75 
79  inline NetworkAcl& AddAssociations(const NetworkAclAssociation& value) { m_associationsHasBeenSet = true; m_associations.push_back(value); return *this; }
80 
84  inline NetworkAcl& AddAssociations(NetworkAclAssociation&& value) { m_associationsHasBeenSet = true; m_associations.push_back(std::move(value)); return *this; }
85 
86 
90  inline const Aws::Vector<NetworkAclEntry>& GetEntries() const{ return m_entries; }
91 
95  inline bool EntriesHasBeenSet() const { return m_entriesHasBeenSet; }
96 
100  inline void SetEntries(const Aws::Vector<NetworkAclEntry>& value) { m_entriesHasBeenSet = true; m_entries = value; }
101 
105  inline void SetEntries(Aws::Vector<NetworkAclEntry>&& value) { m_entriesHasBeenSet = true; m_entries = std::move(value); }
106 
110  inline NetworkAcl& WithEntries(const Aws::Vector<NetworkAclEntry>& value) { SetEntries(value); return *this;}
111 
115  inline NetworkAcl& WithEntries(Aws::Vector<NetworkAclEntry>&& value) { SetEntries(std::move(value)); return *this;}
116 
120  inline NetworkAcl& AddEntries(const NetworkAclEntry& value) { m_entriesHasBeenSet = true; m_entries.push_back(value); return *this; }
121 
125  inline NetworkAcl& AddEntries(NetworkAclEntry&& value) { m_entriesHasBeenSet = true; m_entries.push_back(std::move(value)); return *this; }
126 
127 
131  inline bool GetIsDefault() const{ return m_isDefault; }
132 
136  inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
137 
141  inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; }
142 
146  inline NetworkAcl& WithIsDefault(bool value) { SetIsDefault(value); return *this;}
147 
148 
152  inline const Aws::String& GetNetworkAclId() const{ return m_networkAclId; }
153 
157  inline bool NetworkAclIdHasBeenSet() const { return m_networkAclIdHasBeenSet; }
158 
162  inline void SetNetworkAclId(const Aws::String& value) { m_networkAclIdHasBeenSet = true; m_networkAclId = value; }
163 
167  inline void SetNetworkAclId(Aws::String&& value) { m_networkAclIdHasBeenSet = true; m_networkAclId = std::move(value); }
168 
172  inline void SetNetworkAclId(const char* value) { m_networkAclIdHasBeenSet = true; m_networkAclId.assign(value); }
173 
177  inline NetworkAcl& WithNetworkAclId(const Aws::String& value) { SetNetworkAclId(value); return *this;}
178 
182  inline NetworkAcl& WithNetworkAclId(Aws::String&& value) { SetNetworkAclId(std::move(value)); return *this;}
183 
187  inline NetworkAcl& WithNetworkAclId(const char* value) { SetNetworkAclId(value); return *this;}
188 
189 
193  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
194 
198  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
199 
203  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
204 
208  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
209 
213  inline NetworkAcl& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
214 
218  inline NetworkAcl& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
219 
223  inline NetworkAcl& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
224 
228  inline NetworkAcl& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
229 
230 
234  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
235 
239  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
240 
244  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
245 
249  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
250 
254  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
255 
259  inline NetworkAcl& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
260 
264  inline NetworkAcl& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
265 
269  inline NetworkAcl& WithVpcId(const char* value) { SetVpcId(value); return *this;}
270 
271 
275  inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
276 
280  inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
281 
285  inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
286 
290  inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
291 
295  inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
296 
300  inline NetworkAcl& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
301 
305  inline NetworkAcl& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
306 
310  inline NetworkAcl& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
311 
312  private:
313 
314  Aws::Vector<NetworkAclAssociation> m_associations;
315  bool m_associationsHasBeenSet;
316 
318  bool m_entriesHasBeenSet;
319 
320  bool m_isDefault;
321  bool m_isDefaultHasBeenSet;
322 
323  Aws::String m_networkAclId;
324  bool m_networkAclIdHasBeenSet;
325 
326  Aws::Vector<Tag> m_tags;
327  bool m_tagsHasBeenSet;
328 
329  Aws::String m_vpcId;
330  bool m_vpcIdHasBeenSet;
331 
332  Aws::String m_ownerId;
333  bool m_ownerIdHasBeenSet;
334  };
335 
336 } // namespace Model
337 } // namespace EC2
338 } // namespace Aws
Aws::EC2::Model::NetworkAcl::WithNetworkAclId
NetworkAcl & WithNetworkAclId(Aws::String &&value)
Definition: NetworkAcl.h:182
Aws::EC2::Model::NetworkAcl::AddTags
NetworkAcl & AddTags(const Tag &value)
Definition: NetworkAcl.h:223
Aws::EC2::Model::NetworkAcl::NetworkAcl
NetworkAcl()
Aws::EC2::Model::NetworkAcl::WithVpcId
NetworkAcl & WithVpcId(const char *value)
Definition: NetworkAcl.h:269
Aws::EC2::Model::NetworkAcl::WithTags
NetworkAcl & WithTags(const Aws::Vector< Tag > &value)
Definition: NetworkAcl.h:213
Aws::EC2::Model::NetworkAcl::AddAssociations
NetworkAcl & AddAssociations(const NetworkAclAssociation &value)
Definition: NetworkAcl.h:79
Aws::EC2::Model::NetworkAcl::WithOwnerId
NetworkAcl & WithOwnerId(Aws::String &&value)
Definition: NetworkAcl.h:305
Aws::EC2::Model::NetworkAclEntry
Definition: NetworkAclEntry.h:35
Aws::EC2::Model::NetworkAcl::SetVpcId
void SetVpcId(Aws::String &&value)
Definition: NetworkAcl.h:249
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::NetworkAcl::WithAssociations
NetworkAcl & WithAssociations(const Aws::Vector< NetworkAclAssociation > &value)
Definition: NetworkAcl.h:69
Aws::EC2::Model::NetworkAcl::AddEntries
NetworkAcl & AddEntries(NetworkAclEntry &&value)
Definition: NetworkAcl.h:125
Aws::EC2::Model::NetworkAcl::OwnerIdHasBeenSet
bool OwnerIdHasBeenSet() const
Definition: NetworkAcl.h:280
Aws::EC2::Model::NetworkAcl::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: NetworkAcl.h:208
Aws::EC2::Model::NetworkAcl::WithNetworkAclId
NetworkAcl & WithNetworkAclId(const Aws::String &value)
Definition: NetworkAcl.h:177
Aws::EC2::Model::NetworkAcl::WithEntries
NetworkAcl & WithEntries(const Aws::Vector< NetworkAclEntry > &value)
Definition: NetworkAcl.h:110
Aws::EC2::Model::NetworkAcl::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: NetworkAcl.h:198
Aws::EC2::Model::NetworkAcl::VpcIdHasBeenSet
bool VpcIdHasBeenSet() const
Definition: NetworkAcl.h:239
Aws::EC2::Model::NetworkAclAssociation
Definition: NetworkAclAssociation.h:33
Aws::EC2::Model::NetworkAcl::AddAssociations
NetworkAcl & AddAssociations(NetworkAclAssociation &&value)
Definition: NetworkAcl.h:84
Aws::EC2::Model::NetworkAcl::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: NetworkAcl.h:193
Aws::EC2::Model::NetworkAcl::SetVpcId
void SetVpcId(const char *value)
Definition: NetworkAcl.h:254
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::NetworkAcl::WithOwnerId
NetworkAcl & WithOwnerId(const Aws::String &value)
Definition: NetworkAcl.h:300
Aws::EC2::Model::NetworkAcl::WithEntries
NetworkAcl & WithEntries(Aws::Vector< NetworkAclEntry > &&value)
Definition: NetworkAcl.h:115
Aws::EC2::Model::NetworkAcl::AssociationsHasBeenSet
bool AssociationsHasBeenSet() const
Definition: NetworkAcl.h:54
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::NetworkAcl::WithVpcId
NetworkAcl & WithVpcId(Aws::String &&value)
Definition: NetworkAcl.h:264
AWSStreamFwd.h
AWSVector.h
Tag.h
Aws::EC2::Model::NetworkAcl::GetAssociations
const Aws::Vector< NetworkAclAssociation > & GetAssociations() const
Definition: NetworkAcl.h:49
Aws::EC2::Model::NetworkAcl::WithAssociations
NetworkAcl & WithAssociations(Aws::Vector< NetworkAclAssociation > &&value)
Definition: NetworkAcl.h:74
Aws::EC2::Model::NetworkAcl::GetVpcId
const Aws::String & GetVpcId() const
Definition: NetworkAcl.h:234
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::NetworkAcl::WithNetworkAclId
NetworkAcl & WithNetworkAclId(const char *value)
Definition: NetworkAcl.h:187
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::NetworkAcl::SetOwnerId
void SetOwnerId(Aws::String &&value)
Definition: NetworkAcl.h:290
Aws::EC2::Model::NetworkAcl::SetIsDefault
void SetIsDefault(bool value)
Definition: NetworkAcl.h:141
Aws::EC2::Model::NetworkAcl::AddEntries
NetworkAcl & AddEntries(const NetworkAclEntry &value)
Definition: NetworkAcl.h:120
Aws::EC2::Model::NetworkAcl::GetOwnerId
const Aws::String & GetOwnerId() const
Definition: NetworkAcl.h:275
Aws::EC2::Model::NetworkAcl::operator=
NetworkAcl & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSString.h
Aws::EC2::Model::NetworkAcl::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::NetworkAcl::SetAssociations
void SetAssociations(const Aws::Vector< NetworkAclAssociation > &value)
Definition: NetworkAcl.h:59
Aws::EC2::Model::NetworkAcl::EntriesHasBeenSet
bool EntriesHasBeenSet() const
Definition: NetworkAcl.h:95
NetworkAclAssociation.h
Aws::EC2::Model::NetworkAcl::GetIsDefault
bool GetIsDefault() const
Definition: NetworkAcl.h:131
Aws::EC2::Model::NetworkAcl::NetworkAcl
NetworkAcl(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::NetworkAcl::WithVpcId
NetworkAcl & WithVpcId(const Aws::String &value)
Definition: NetworkAcl.h:259
NetworkAclEntry.h
Aws::EC2::Model::NetworkAcl::SetNetworkAclId
void SetNetworkAclId(Aws::String &&value)
Definition: NetworkAcl.h:167
Aws::EC2::Model::NetworkAcl::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: NetworkAcl.h:203
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::NetworkAcl::SetVpcId
void SetVpcId(const Aws::String &value)
Definition: NetworkAcl.h:244
Aws::EC2::Model::NetworkAcl::GetEntries
const Aws::Vector< NetworkAclEntry > & GetEntries() const
Definition: NetworkAcl.h:90
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::NetworkAcl::SetNetworkAclId
void SetNetworkAclId(const char *value)
Definition: NetworkAcl.h:172
Aws::EC2::Model::NetworkAcl::GetNetworkAclId
const Aws::String & GetNetworkAclId() const
Definition: NetworkAcl.h:152
Aws::EC2::Model::NetworkAcl::WithIsDefault
NetworkAcl & WithIsDefault(bool value)
Definition: NetworkAcl.h:146
Aws::EC2::Model::NetworkAcl::AddTags
NetworkAcl & AddTags(Tag &&value)
Definition: NetworkAcl.h:228
Aws::EC2::Model::NetworkAcl::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::NetworkAcl::SetOwnerId
void SetOwnerId(const char *value)
Definition: NetworkAcl.h:295
Aws::EC2::Model::NetworkAcl::SetAssociations
void SetAssociations(Aws::Vector< NetworkAclAssociation > &&value)
Definition: NetworkAcl.h:64
Aws::EC2::Model::NetworkAcl::SetOwnerId
void SetOwnerId(const Aws::String &value)
Definition: NetworkAcl.h:285
Aws::EC2::Model::NetworkAcl::IsDefaultHasBeenSet
bool IsDefaultHasBeenSet() const
Definition: NetworkAcl.h:136
Aws::EC2::Model::NetworkAcl::SetEntries
void SetEntries(const Aws::Vector< NetworkAclEntry > &value)
Definition: NetworkAcl.h:100
Aws::EC2::Model::NetworkAcl::WithOwnerId
NetworkAcl & WithOwnerId(const char *value)
Definition: NetworkAcl.h:310
Aws::EC2::Model::NetworkAcl::SetNetworkAclId
void SetNetworkAclId(const Aws::String &value)
Definition: NetworkAcl.h:162
EC2_EXPORTS.h
Aws::EC2::Model::NetworkAcl::NetworkAclIdHasBeenSet
bool NetworkAclIdHasBeenSet() const
Definition: NetworkAcl.h:157
Aws::EC2::Model::NetworkAcl::WithTags
NetworkAcl & WithTags(Aws::Vector< Tag > &&value)
Definition: NetworkAcl.h:218
Aws::EC2::Model::NetworkAcl::SetEntries
void SetEntries(Aws::Vector< NetworkAclEntry > &&value)
Definition: NetworkAcl.h:105
Aws::EC2::Model::NetworkAcl
Definition: NetworkAcl.h:36