AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename AssociationsT = Aws::Vector<NetworkAclAssociation>>
53 void SetAssociations(AssociationsT&& value) { m_associationsHasBeenSet = true; m_associations = std::forward<AssociationsT>(value); }
54 template<typename AssociationsT = Aws::Vector<NetworkAclAssociation>>
55 NetworkAcl& WithAssociations(AssociationsT&& value) { SetAssociations(std::forward<AssociationsT>(value)); return *this;}
56 template<typename AssociationsT = NetworkAclAssociation>
57 NetworkAcl& AddAssociations(AssociationsT&& value) { m_associationsHasBeenSet = true; m_associations.emplace_back(std::forward<AssociationsT>(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 template<typename EntriesT = Aws::Vector<NetworkAclEntry>>
67 void SetEntries(EntriesT&& value) { m_entriesHasBeenSet = true; m_entries = std::forward<EntriesT>(value); }
68 template<typename EntriesT = Aws::Vector<NetworkAclEntry>>
69 NetworkAcl& WithEntries(EntriesT&& value) { SetEntries(std::forward<EntriesT>(value)); return *this;}
70 template<typename EntriesT = NetworkAclEntry>
71 NetworkAcl& AddEntries(EntriesT&& value) { m_entriesHasBeenSet = true; m_entries.emplace_back(std::forward<EntriesT>(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 template<typename NetworkAclIdT = Aws::String>
91 void SetNetworkAclId(NetworkAclIdT&& value) { m_networkAclIdHasBeenSet = true; m_networkAclId = std::forward<NetworkAclIdT>(value); }
92 template<typename NetworkAclIdT = Aws::String>
93 NetworkAcl& WithNetworkAclId(NetworkAclIdT&& value) { SetNetworkAclId(std::forward<NetworkAclIdT>(value)); return *this;}
95
97
100 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
101 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
102 template<typename TagsT = Aws::Vector<Tag>>
103 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
104 template<typename TagsT = Aws::Vector<Tag>>
105 NetworkAcl& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
106 template<typename TagsT = Tag>
107 NetworkAcl& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
109
111
114 inline const Aws::String& GetVpcId() const { return m_vpcId; }
115 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
116 template<typename VpcIdT = Aws::String>
117 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
118 template<typename VpcIdT = Aws::String>
119 NetworkAcl& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
121
123
126 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
127 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
128 template<typename OwnerIdT = Aws::String>
129 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
130 template<typename OwnerIdT = Aws::String>
131 NetworkAcl& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
133 private:
134
136 bool m_associationsHasBeenSet = false;
137
139 bool m_entriesHasBeenSet = false;
140
141 bool m_isDefault{false};
142 bool m_isDefaultHasBeenSet = false;
143
144 Aws::String m_networkAclId;
145 bool m_networkAclIdHasBeenSet = false;
146
147 Aws::Vector<Tag> m_tags;
148 bool m_tagsHasBeenSet = false;
149
150 Aws::String m_vpcId;
151 bool m_vpcIdHasBeenSet = false;
152
153 Aws::String m_ownerId;
154 bool m_ownerIdHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace EC2
159} // namespace Aws
bool AssociationsHasBeenSet() const
Definition NetworkAcl.h:51
void SetNetworkAclId(NetworkAclIdT &&value)
Definition NetworkAcl.h:91
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API NetworkAcl()=default
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
const Aws::Vector< NetworkAclAssociation > & GetAssociations() const
Definition NetworkAcl.h:50
const Aws::Vector< Tag > & GetTags() const
Definition NetworkAcl.h:100
NetworkAcl & AddEntries(EntriesT &&value)
Definition NetworkAcl.h:71
NetworkAcl & AddAssociations(AssociationsT &&value)
Definition NetworkAcl.h:57
NetworkAcl & WithEntries(EntriesT &&value)
Definition NetworkAcl.h:69
void SetIsDefault(bool value)
Definition NetworkAcl.h:80
NetworkAcl & WithVpcId(VpcIdT &&value)
Definition NetworkAcl.h:119
void SetAssociations(AssociationsT &&value)
Definition NetworkAcl.h:53
const Aws::String & GetOwnerId() const
Definition NetworkAcl.h:126
NetworkAcl & WithOwnerId(OwnerIdT &&value)
Definition NetworkAcl.h:131
void SetTags(TagsT &&value)
Definition NetworkAcl.h:103
NetworkAcl & AddTags(TagsT &&value)
Definition NetworkAcl.h:107
const Aws::String & GetVpcId() const
Definition NetworkAcl.h:114
AWS_EC2_API NetworkAcl(const Aws::Utils::Xml::XmlNode &xmlNode)
NetworkAcl & WithNetworkAclId(NetworkAclIdT &&value)
Definition NetworkAcl.h:93
bool NetworkAclIdHasBeenSet() const
Definition NetworkAcl.h:89
NetworkAcl & WithTags(TagsT &&value)
Definition NetworkAcl.h:105
const Aws::String & GetNetworkAclId() const
Definition NetworkAcl.h:88
NetworkAcl & WithAssociations(AssociationsT &&value)
Definition NetworkAcl.h:55
AWS_EC2_API NetworkAcl & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool EntriesHasBeenSet() const
Definition NetworkAcl.h:65
void SetVpcId(VpcIdT &&value)
Definition NetworkAcl.h:117
void SetOwnerId(OwnerIdT &&value)
Definition NetworkAcl.h:129
bool IsDefaultHasBeenSet() const
Definition NetworkAcl.h:79
void SetEntries(EntriesT &&value)
Definition NetworkAcl.h:67
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