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>
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>>
56 template<
typename AssociationsT = NetworkAclAssociation>
57 NetworkAcl&
AddAssociations(AssociationsT&& value) { m_associationsHasBeenSet =
true; m_associations.emplace_back(std::forward<AssociationsT>(value));
return *
this; }
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>>
70 template<
typename EntriesT = NetworkAclEntry>
71 NetworkAcl&
AddEntries(EntriesT&& value) { m_entriesHasBeenSet =
true; m_entries.emplace_back(std::forward<EntriesT>(value));
return *
this; }
80 inline void SetIsDefault(
bool value) { m_isDefaultHasBeenSet =
true; m_isDefault = value; }
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>
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>>
106 template<
typename TagsT = Tag>
107 NetworkAcl&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
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>
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>
136 bool m_associationsHasBeenSet =
false;
139 bool m_entriesHasBeenSet =
false;
141 bool m_isDefault{
false};
142 bool m_isDefaultHasBeenSet =
false;
145 bool m_networkAclIdHasBeenSet =
false;
148 bool m_tagsHasBeenSet =
false;
151 bool m_vpcIdHasBeenSet =
false;
154 bool m_ownerIdHasBeenSet =
false;
bool AssociationsHasBeenSet() const
void SetNetworkAclId(NetworkAclIdT &&value)
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)
bool VpcIdHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Vector< NetworkAclEntry > & GetEntries() const
const Aws::Vector< NetworkAclAssociation > & GetAssociations() const
const Aws::Vector< Tag > & GetTags() const
NetworkAcl & AddEntries(EntriesT &&value)
NetworkAcl & AddAssociations(AssociationsT &&value)
NetworkAcl & WithEntries(EntriesT &&value)
void SetIsDefault(bool value)
bool TagsHasBeenSet() const
NetworkAcl & WithVpcId(VpcIdT &&value)
void SetAssociations(AssociationsT &&value)
bool GetIsDefault() const
const Aws::String & GetOwnerId() const
NetworkAcl & WithOwnerId(OwnerIdT &&value)
void SetTags(TagsT &&value)
bool OwnerIdHasBeenSet() const
NetworkAcl & AddTags(TagsT &&value)
const Aws::String & GetVpcId() const
AWS_EC2_API NetworkAcl(const Aws::Utils::Xml::XmlNode &xmlNode)
NetworkAcl & WithNetworkAclId(NetworkAclIdT &&value)
bool NetworkAclIdHasBeenSet() const
NetworkAcl & WithTags(TagsT &&value)
const Aws::String & GetNetworkAclId() const
NetworkAcl & WithAssociations(AssociationsT &&value)
AWS_EC2_API NetworkAcl & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool EntriesHasBeenSet() const
void SetVpcId(VpcIdT &&value)
void SetOwnerId(OwnerIdT &&value)
bool IsDefaultHasBeenSet() const
void SetEntries(EntriesT &&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