AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NetworkAcl.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/NetworkAclAssociation.h>
12#include <aws/ec2/model/NetworkAclEntry.h>
13#include <aws/ec2/model/Tag.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:
38 AWS_EC2_API NetworkAcl();
39 AWS_EC2_API NetworkAcl(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_EC2_API NetworkAcl& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
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::Vector<NetworkAclAssociation>& GetAssociations() const{ return m_associations; }
51 inline bool AssociationsHasBeenSet() const { return m_associationsHasBeenSet; }
52 inline void SetAssociations(const Aws::Vector<NetworkAclAssociation>& value) { m_associationsHasBeenSet = true; m_associations = value; }
53 inline void SetAssociations(Aws::Vector<NetworkAclAssociation>&& value) { m_associationsHasBeenSet = true; m_associations = std::move(value); }
55 inline NetworkAcl& WithAssociations(Aws::Vector<NetworkAclAssociation>&& value) { SetAssociations(std::move(value)); return *this;}
56 inline NetworkAcl& AddAssociations(const NetworkAclAssociation& value) { m_associationsHasBeenSet = true; m_associations.push_back(value); return *this; }
57 inline NetworkAcl& AddAssociations(NetworkAclAssociation&& value) { m_associationsHasBeenSet = true; m_associations.push_back(std::move(value)); return *this; }
59
61
64 inline const Aws::Vector<NetworkAclEntry>& GetEntries() const{ return m_entries; }
65 inline bool EntriesHasBeenSet() const { return m_entriesHasBeenSet; }
66 inline void SetEntries(const Aws::Vector<NetworkAclEntry>& value) { m_entriesHasBeenSet = true; m_entries = value; }
67 inline void SetEntries(Aws::Vector<NetworkAclEntry>&& value) { m_entriesHasBeenSet = true; m_entries = std::move(value); }
68 inline NetworkAcl& WithEntries(const Aws::Vector<NetworkAclEntry>& value) { SetEntries(value); return *this;}
69 inline NetworkAcl& WithEntries(Aws::Vector<NetworkAclEntry>&& value) { SetEntries(std::move(value)); return *this;}
70 inline NetworkAcl& AddEntries(const NetworkAclEntry& value) { m_entriesHasBeenSet = true; m_entries.push_back(value); return *this; }
71 inline NetworkAcl& AddEntries(NetworkAclEntry&& value) { m_entriesHasBeenSet = true; m_entries.push_back(std::move(value)); return *this; }
73
75
78 inline bool GetIsDefault() const{ return m_isDefault; }
79 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
80 inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; }
81 inline NetworkAcl& WithIsDefault(bool value) { SetIsDefault(value); return *this;}
83
85
88 inline const Aws::String& GetNetworkAclId() const{ return m_networkAclId; }
89 inline bool NetworkAclIdHasBeenSet() const { return m_networkAclIdHasBeenSet; }
90 inline void SetNetworkAclId(const Aws::String& value) { m_networkAclIdHasBeenSet = true; m_networkAclId = value; }
91 inline void SetNetworkAclId(Aws::String&& value) { m_networkAclIdHasBeenSet = true; m_networkAclId = std::move(value); }
92 inline void SetNetworkAclId(const char* value) { m_networkAclIdHasBeenSet = true; m_networkAclId.assign(value); }
93 inline NetworkAcl& WithNetworkAclId(const Aws::String& value) { SetNetworkAclId(value); return *this;}
94 inline NetworkAcl& WithNetworkAclId(Aws::String&& value) { SetNetworkAclId(std::move(value)); return *this;}
95 inline NetworkAcl& WithNetworkAclId(const char* value) { SetNetworkAclId(value); return *this;}
97
99
102 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
103 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
104 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
105 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
106 inline NetworkAcl& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
107 inline NetworkAcl& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
108 inline NetworkAcl& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
109 inline NetworkAcl& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
111
113
116 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
117 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
118 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
119 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
120 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
121 inline NetworkAcl& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
122 inline NetworkAcl& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
123 inline NetworkAcl& WithVpcId(const char* value) { SetVpcId(value); return *this;}
125
127
130 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
131 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
132 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
133 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
134 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
135 inline NetworkAcl& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
136 inline NetworkAcl& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
137 inline NetworkAcl& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
139 private:
140
142 bool m_associationsHasBeenSet = false;
143
145 bool m_entriesHasBeenSet = false;
146
147 bool m_isDefault;
148 bool m_isDefaultHasBeenSet = false;
149
150 Aws::String m_networkAclId;
151 bool m_networkAclIdHasBeenSet = false;
152
153 Aws::Vector<Tag> m_tags;
154 bool m_tagsHasBeenSet = false;
155
156 Aws::String m_vpcId;
157 bool m_vpcIdHasBeenSet = false;
158
159 Aws::String m_ownerId;
160 bool m_ownerIdHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace EC2
165} // namespace Aws
NetworkAcl & WithEntries(const Aws::Vector< NetworkAclEntry > &value)
Definition NetworkAcl.h:68
bool AssociationsHasBeenSet() const
Definition NetworkAcl.h:51
NetworkAcl & WithNetworkAclId(const char *value)
Definition NetworkAcl.h:95
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
NetworkAcl & WithAssociations(const Aws::Vector< NetworkAclAssociation > &value)
Definition NetworkAcl.h:54
NetworkAcl & WithIsDefault(bool value)
Definition NetworkAcl.h:81
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Vector< NetworkAclEntry > & GetEntries() const
Definition NetworkAcl.h:64
NetworkAcl & WithOwnerId(const char *value)
Definition NetworkAcl.h:137
void SetEntries(const Aws::Vector< NetworkAclEntry > &value)
Definition NetworkAcl.h:66
NetworkAcl & AddAssociations(NetworkAclAssociation &&value)
Definition NetworkAcl.h:57
const Aws::Vector< NetworkAclAssociation > & GetAssociations() const
Definition NetworkAcl.h:50
NetworkAcl & WithVpcId(const Aws::String &value)
Definition NetworkAcl.h:121
NetworkAcl & AddAssociations(const NetworkAclAssociation &value)
Definition NetworkAcl.h:56
const Aws::Vector< Tag > & GetTags() const
Definition NetworkAcl.h:102
void SetAssociations(Aws::Vector< NetworkAclAssociation > &&value)
Definition NetworkAcl.h:53
NetworkAcl & WithVpcId(Aws::String &&value)
Definition NetworkAcl.h:122
void SetNetworkAclId(Aws::String &&value)
Definition NetworkAcl.h:91
void SetNetworkAclId(const char *value)
Definition NetworkAcl.h:92
void SetTags(Aws::Vector< Tag > &&value)
Definition NetworkAcl.h:105
NetworkAcl & WithVpcId(const char *value)
Definition NetworkAcl.h:123
void SetIsDefault(bool value)
Definition NetworkAcl.h:80
NetworkAcl & WithTags(Aws::Vector< Tag > &&value)
Definition NetworkAcl.h:107
void SetVpcId(const char *value)
Definition NetworkAcl.h:120
NetworkAcl & WithNetworkAclId(const Aws::String &value)
Definition NetworkAcl.h:93
NetworkAcl & WithAssociations(Aws::Vector< NetworkAclAssociation > &&value)
Definition NetworkAcl.h:55
void SetEntries(Aws::Vector< NetworkAclEntry > &&value)
Definition NetworkAcl.h:67
NetworkAcl & AddEntries(const NetworkAclEntry &value)
Definition NetworkAcl.h:70
const Aws::String & GetOwnerId() const
Definition NetworkAcl.h:130
NetworkAcl & WithOwnerId(Aws::String &&value)
Definition NetworkAcl.h:136
NetworkAcl & WithNetworkAclId(Aws::String &&value)
Definition NetworkAcl.h:94
const Aws::String & GetVpcId() const
Definition NetworkAcl.h:116
AWS_EC2_API NetworkAcl(const Aws::Utils::Xml::XmlNode &xmlNode)
NetworkAcl & AddTags(Tag &&value)
Definition NetworkAcl.h:109
NetworkAcl & AddTags(const Tag &value)
Definition NetworkAcl.h:108
bool NetworkAclIdHasBeenSet() const
Definition NetworkAcl.h:89
const Aws::String & GetNetworkAclId() const
Definition NetworkAcl.h:88
void SetOwnerId(const Aws::String &value)
Definition NetworkAcl.h:132
void SetTags(const Aws::Vector< Tag > &value)
Definition NetworkAcl.h:104
AWS_EC2_API NetworkAcl & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetVpcId(Aws::String &&value)
Definition NetworkAcl.h:119
bool EntriesHasBeenSet() const
Definition NetworkAcl.h:65
NetworkAcl & WithTags(const Aws::Vector< Tag > &value)
Definition NetworkAcl.h:106
void SetNetworkAclId(const Aws::String &value)
Definition NetworkAcl.h:90
NetworkAcl & WithOwnerId(const Aws::String &value)
Definition NetworkAcl.h:135
void SetAssociations(const Aws::Vector< NetworkAclAssociation > &value)
Definition NetworkAcl.h:52
void SetOwnerId(const char *value)
Definition NetworkAcl.h:134
void SetVpcId(const Aws::String &value)
Definition NetworkAcl.h:118
NetworkAcl & WithEntries(Aws::Vector< NetworkAclEntry > &&value)
Definition NetworkAcl.h:69
bool IsDefaultHasBeenSet() const
Definition NetworkAcl.h:79
void SetOwnerId(Aws::String &&value)
Definition NetworkAcl.h:133
NetworkAcl & AddEntries(NetworkAclEntry &&value)
Definition NetworkAcl.h:71
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