AWS SDK for C++  1.9.106
AWS SDK for C++
AwsEc2NetworkAclDetails.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace SecurityHub
25 {
26 namespace Model
27 {
28 
36  {
37  public:
42 
43 
47  inline bool GetIsDefault() const{ return m_isDefault; }
48 
52  inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
53 
57  inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; }
58 
62  inline AwsEc2NetworkAclDetails& WithIsDefault(bool value) { SetIsDefault(value); return *this;}
63 
64 
68  inline const Aws::String& GetNetworkAclId() const{ return m_networkAclId; }
69 
73  inline bool NetworkAclIdHasBeenSet() const { return m_networkAclIdHasBeenSet; }
74 
78  inline void SetNetworkAclId(const Aws::String& value) { m_networkAclIdHasBeenSet = true; m_networkAclId = value; }
79 
83  inline void SetNetworkAclId(Aws::String&& value) { m_networkAclIdHasBeenSet = true; m_networkAclId = std::move(value); }
84 
88  inline void SetNetworkAclId(const char* value) { m_networkAclIdHasBeenSet = true; m_networkAclId.assign(value); }
89 
93  inline AwsEc2NetworkAclDetails& WithNetworkAclId(const Aws::String& value) { SetNetworkAclId(value); return *this;}
94 
98  inline AwsEc2NetworkAclDetails& WithNetworkAclId(Aws::String&& value) { SetNetworkAclId(std::move(value)); return *this;}
99 
103  inline AwsEc2NetworkAclDetails& WithNetworkAclId(const char* value) { SetNetworkAclId(value); return *this;}
104 
105 
110  inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
111 
116  inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
117 
122  inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
123 
128  inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
129 
134  inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
135 
140  inline AwsEc2NetworkAclDetails& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
141 
146  inline AwsEc2NetworkAclDetails& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
147 
152  inline AwsEc2NetworkAclDetails& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
153 
154 
158  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
159 
163  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
164 
168  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
169 
173  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
174 
178  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
179 
183  inline AwsEc2NetworkAclDetails& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
184 
188  inline AwsEc2NetworkAclDetails& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
189 
193  inline AwsEc2NetworkAclDetails& WithVpcId(const char* value) { SetVpcId(value); return *this;}
194 
195 
199  inline const Aws::Vector<AwsEc2NetworkAclAssociation>& GetAssociations() const{ return m_associations; }
200 
204  inline bool AssociationsHasBeenSet() const { return m_associationsHasBeenSet; }
205 
209  inline void SetAssociations(const Aws::Vector<AwsEc2NetworkAclAssociation>& value) { m_associationsHasBeenSet = true; m_associations = value; }
210 
214  inline void SetAssociations(Aws::Vector<AwsEc2NetworkAclAssociation>&& value) { m_associationsHasBeenSet = true; m_associations = std::move(value); }
215 
219  inline AwsEc2NetworkAclDetails& WithAssociations(const Aws::Vector<AwsEc2NetworkAclAssociation>& value) { SetAssociations(value); return *this;}
220 
224  inline AwsEc2NetworkAclDetails& WithAssociations(Aws::Vector<AwsEc2NetworkAclAssociation>&& value) { SetAssociations(std::move(value)); return *this;}
225 
229  inline AwsEc2NetworkAclDetails& AddAssociations(const AwsEc2NetworkAclAssociation& value) { m_associationsHasBeenSet = true; m_associations.push_back(value); return *this; }
230 
234  inline AwsEc2NetworkAclDetails& AddAssociations(AwsEc2NetworkAclAssociation&& value) { m_associationsHasBeenSet = true; m_associations.push_back(std::move(value)); return *this; }
235 
236 
240  inline const Aws::Vector<AwsEc2NetworkAclEntry>& GetEntries() const{ return m_entries; }
241 
245  inline bool EntriesHasBeenSet() const { return m_entriesHasBeenSet; }
246 
250  inline void SetEntries(const Aws::Vector<AwsEc2NetworkAclEntry>& value) { m_entriesHasBeenSet = true; m_entries = value; }
251 
255  inline void SetEntries(Aws::Vector<AwsEc2NetworkAclEntry>&& value) { m_entriesHasBeenSet = true; m_entries = std::move(value); }
256 
260  inline AwsEc2NetworkAclDetails& WithEntries(const Aws::Vector<AwsEc2NetworkAclEntry>& value) { SetEntries(value); return *this;}
261 
265  inline AwsEc2NetworkAclDetails& WithEntries(Aws::Vector<AwsEc2NetworkAclEntry>&& value) { SetEntries(std::move(value)); return *this;}
266 
270  inline AwsEc2NetworkAclDetails& AddEntries(const AwsEc2NetworkAclEntry& value) { m_entriesHasBeenSet = true; m_entries.push_back(value); return *this; }
271 
275  inline AwsEc2NetworkAclDetails& AddEntries(AwsEc2NetworkAclEntry&& value) { m_entriesHasBeenSet = true; m_entries.push_back(std::move(value)); return *this; }
276 
277  private:
278 
279  bool m_isDefault;
280  bool m_isDefaultHasBeenSet;
281 
282  Aws::String m_networkAclId;
283  bool m_networkAclIdHasBeenSet;
284 
285  Aws::String m_ownerId;
286  bool m_ownerIdHasBeenSet;
287 
288  Aws::String m_vpcId;
289  bool m_vpcIdHasBeenSet;
290 
292  bool m_associationsHasBeenSet;
293 
295  bool m_entriesHasBeenSet;
296  };
297 
298 } // namespace Model
299 } // namespace SecurityHub
300 } // namespace Aws
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::IsDefaultHasBeenSet
bool IsDefaultHasBeenSet() const
Definition: AwsEc2NetworkAclDetails.h:52
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::NetworkAclIdHasBeenSet
bool NetworkAclIdHasBeenSet() const
Definition: AwsEc2NetworkAclDetails.h:73
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::AwsEc2NetworkAclDetails
AwsEc2NetworkAclDetails()
Aws::SecurityHub::Model::AwsEc2NetworkAclAssociation
Definition: AwsEc2NetworkAclAssociation.h:33
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::AddAssociations
AwsEc2NetworkAclDetails & AddAssociations(AwsEc2NetworkAclAssociation &&value)
Definition: AwsEc2NetworkAclDetails.h:234
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::AddEntries
AwsEc2NetworkAclDetails & AddEntries(const AwsEc2NetworkAclEntry &value)
Definition: AwsEc2NetworkAclDetails.h:270
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::GetAssociations
const Aws::Vector< AwsEc2NetworkAclAssociation > & GetAssociations() const
Definition: AwsEc2NetworkAclDetails.h:199
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::SetIsDefault
void SetIsDefault(bool value)
Definition: AwsEc2NetworkAclDetails.h:57
Aws::SecurityHub::Model::AwsEc2NetworkAclEntry
Definition: AwsEc2NetworkAclEntry.h:35
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::VpcIdHasBeenSet
bool VpcIdHasBeenSet() const
Definition: AwsEc2NetworkAclDetails.h:163
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::WithOwnerId
AwsEc2NetworkAclDetails & WithOwnerId(const Aws::String &value)
Definition: AwsEc2NetworkAclDetails.h:140
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::WithOwnerId
AwsEc2NetworkAclDetails & WithOwnerId(const char *value)
Definition: AwsEc2NetworkAclDetails.h:152
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::AssociationsHasBeenSet
bool AssociationsHasBeenSet() const
Definition: AwsEc2NetworkAclDetails.h:204
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::SetEntries
void SetEntries(Aws::Vector< AwsEc2NetworkAclEntry > &&value)
Definition: AwsEc2NetworkAclDetails.h:255
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::AddAssociations
AwsEc2NetworkAclDetails & AddAssociations(const AwsEc2NetworkAclAssociation &value)
Definition: AwsEc2NetworkAclDetails.h:229
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails
Definition: AwsEc2NetworkAclDetails.h:36
AwsEc2NetworkAclAssociation.h
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::WithNetworkAclId
AwsEc2NetworkAclDetails & WithNetworkAclId(const char *value)
Definition: AwsEc2NetworkAclDetails.h:103
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::SetNetworkAclId
void SetNetworkAclId(Aws::String &&value)
Definition: AwsEc2NetworkAclDetails.h:83
AWSVector.h
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::operator=
AwsEc2NetworkAclDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::SetOwnerId
void SetOwnerId(Aws::String &&value)
Definition: AwsEc2NetworkAclDetails.h:128
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::GetNetworkAclId
const Aws::String & GetNetworkAclId() const
Definition: AwsEc2NetworkAclDetails.h:68
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::GetVpcId
const Aws::String & GetVpcId() const
Definition: AwsEc2NetworkAclDetails.h:158
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::WithEntries
AwsEc2NetworkAclDetails & WithEntries(Aws::Vector< AwsEc2NetworkAclEntry > &&value)
Definition: AwsEc2NetworkAclDetails.h:265
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::SetEntries
void SetEntries(const Aws::Vector< AwsEc2NetworkAclEntry > &value)
Definition: AwsEc2NetworkAclDetails.h:250
AWS_SECURITYHUB_API
#define AWS_SECURITYHUB_API
Definition: SecurityHub_EXPORTS.h:28
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::SetNetworkAclId
void SetNetworkAclId(const char *value)
Definition: AwsEc2NetworkAclDetails.h:88
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::SetAssociations
void SetAssociations(Aws::Vector< AwsEc2NetworkAclAssociation > &&value)
Definition: AwsEc2NetworkAclDetails.h:214
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::SetNetworkAclId
void SetNetworkAclId(const Aws::String &value)
Definition: AwsEc2NetworkAclDetails.h:78
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::WithVpcId
AwsEc2NetworkAclDetails & WithVpcId(const Aws::String &value)
Definition: AwsEc2NetworkAclDetails.h:183
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::SetVpcId
void SetVpcId(const char *value)
Definition: AwsEc2NetworkAclDetails.h:178
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::WithNetworkAclId
AwsEc2NetworkAclDetails & WithNetworkAclId(const Aws::String &value)
Definition: AwsEc2NetworkAclDetails.h:93
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::GetIsDefault
bool GetIsDefault() const
Definition: AwsEc2NetworkAclDetails.h:47
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::WithVpcId
AwsEc2NetworkAclDetails & WithVpcId(const char *value)
Definition: AwsEc2NetworkAclDetails.h:193
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::WithAssociations
AwsEc2NetworkAclDetails & WithAssociations(const Aws::Vector< AwsEc2NetworkAclAssociation > &value)
Definition: AwsEc2NetworkAclDetails.h:219
AwsEc2NetworkAclEntry.h
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::GetEntries
const Aws::Vector< AwsEc2NetworkAclEntry > & GetEntries() const
Definition: AwsEc2NetworkAclDetails.h:240
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::GetOwnerId
const Aws::String & GetOwnerId() const
Definition: AwsEc2NetworkAclDetails.h:110
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::SetOwnerId
void SetOwnerId(const Aws::String &value)
Definition: AwsEc2NetworkAclDetails.h:122
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::SetOwnerId
void SetOwnerId(const char *value)
Definition: AwsEc2NetworkAclDetails.h:134
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::WithEntries
AwsEc2NetworkAclDetails & WithEntries(const Aws::Vector< AwsEc2NetworkAclEntry > &value)
Definition: AwsEc2NetworkAclDetails.h:260
Aws
Definition: AccessManagementClient.h:15
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::SetVpcId
void SetVpcId(const Aws::String &value)
Definition: AwsEc2NetworkAclDetails.h:168
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::EntriesHasBeenSet
bool EntriesHasBeenSet() const
Definition: AwsEc2NetworkAclDetails.h:245
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SecurityHub_EXPORTS.h
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::WithVpcId
AwsEc2NetworkAclDetails & WithVpcId(Aws::String &&value)
Definition: AwsEc2NetworkAclDetails.h:188
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::WithNetworkAclId
AwsEc2NetworkAclDetails & WithNetworkAclId(Aws::String &&value)
Definition: AwsEc2NetworkAclDetails.h:98
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::AwsEc2NetworkAclDetails
AwsEc2NetworkAclDetails(Aws::Utils::Json::JsonView jsonValue)
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::SetVpcId
void SetVpcId(Aws::String &&value)
Definition: AwsEc2NetworkAclDetails.h:173
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::WithOwnerId
AwsEc2NetworkAclDetails & WithOwnerId(Aws::String &&value)
Definition: AwsEc2NetworkAclDetails.h:146
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::AddEntries
AwsEc2NetworkAclDetails & AddEntries(AwsEc2NetworkAclEntry &&value)
Definition: AwsEc2NetworkAclDetails.h:275
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::WithIsDefault
AwsEc2NetworkAclDetails & WithIsDefault(bool value)
Definition: AwsEc2NetworkAclDetails.h:62
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::OwnerIdHasBeenSet
bool OwnerIdHasBeenSet() const
Definition: AwsEc2NetworkAclDetails.h:116
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::SetAssociations
void SetAssociations(const Aws::Vector< AwsEc2NetworkAclAssociation > &value)
Definition: AwsEc2NetworkAclDetails.h:209
Aws::SecurityHub::Model::AwsEc2NetworkAclDetails::WithAssociations
AwsEc2NetworkAclDetails & WithAssociations(Aws::Vector< AwsEc2NetworkAclAssociation > &&value)
Definition: AwsEc2NetworkAclDetails.h:224