AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsEc2NetworkAclDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityhub/model/AwsEc2NetworkAclAssociation.h>
11#include <aws/securityhub/model/AwsEc2NetworkAclEntry.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SecurityHub
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_SECURITYHUB_API AwsEc2NetworkAclDetails();
41 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline bool GetIsDefault() const{ return m_isDefault; }
49 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
50 inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; }
51 inline AwsEc2NetworkAclDetails& WithIsDefault(bool value) { SetIsDefault(value); return *this;}
53
55
58 inline const Aws::String& GetNetworkAclId() const{ return m_networkAclId; }
59 inline bool NetworkAclIdHasBeenSet() const { return m_networkAclIdHasBeenSet; }
60 inline void SetNetworkAclId(const Aws::String& value) { m_networkAclIdHasBeenSet = true; m_networkAclId = value; }
61 inline void SetNetworkAclId(Aws::String&& value) { m_networkAclIdHasBeenSet = true; m_networkAclId = std::move(value); }
62 inline void SetNetworkAclId(const char* value) { m_networkAclIdHasBeenSet = true; m_networkAclId.assign(value); }
63 inline AwsEc2NetworkAclDetails& WithNetworkAclId(const Aws::String& value) { SetNetworkAclId(value); return *this;}
64 inline AwsEc2NetworkAclDetails& WithNetworkAclId(Aws::String&& value) { SetNetworkAclId(std::move(value)); return *this;}
65 inline AwsEc2NetworkAclDetails& WithNetworkAclId(const char* value) { SetNetworkAclId(value); return *this;}
67
69
73 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
74 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
75 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
76 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
77 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
78 inline AwsEc2NetworkAclDetails& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
79 inline AwsEc2NetworkAclDetails& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
80 inline AwsEc2NetworkAclDetails& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
82
84
87 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
88 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
89 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
90 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
91 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
92 inline AwsEc2NetworkAclDetails& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
93 inline AwsEc2NetworkAclDetails& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
94 inline AwsEc2NetworkAclDetails& WithVpcId(const char* value) { SetVpcId(value); return *this;}
96
98
101 inline const Aws::Vector<AwsEc2NetworkAclAssociation>& GetAssociations() const{ return m_associations; }
102 inline bool AssociationsHasBeenSet() const { return m_associationsHasBeenSet; }
103 inline void SetAssociations(const Aws::Vector<AwsEc2NetworkAclAssociation>& value) { m_associationsHasBeenSet = true; m_associations = value; }
104 inline void SetAssociations(Aws::Vector<AwsEc2NetworkAclAssociation>&& value) { m_associationsHasBeenSet = true; m_associations = std::move(value); }
107 inline AwsEc2NetworkAclDetails& AddAssociations(const AwsEc2NetworkAclAssociation& value) { m_associationsHasBeenSet = true; m_associations.push_back(value); return *this; }
108 inline AwsEc2NetworkAclDetails& AddAssociations(AwsEc2NetworkAclAssociation&& value) { m_associationsHasBeenSet = true; m_associations.push_back(std::move(value)); return *this; }
110
112
115 inline const Aws::Vector<AwsEc2NetworkAclEntry>& GetEntries() const{ return m_entries; }
116 inline bool EntriesHasBeenSet() const { return m_entriesHasBeenSet; }
117 inline void SetEntries(const Aws::Vector<AwsEc2NetworkAclEntry>& value) { m_entriesHasBeenSet = true; m_entries = value; }
118 inline void SetEntries(Aws::Vector<AwsEc2NetworkAclEntry>&& value) { m_entriesHasBeenSet = true; m_entries = std::move(value); }
120 inline AwsEc2NetworkAclDetails& WithEntries(Aws::Vector<AwsEc2NetworkAclEntry>&& value) { SetEntries(std::move(value)); return *this;}
121 inline AwsEc2NetworkAclDetails& AddEntries(const AwsEc2NetworkAclEntry& value) { m_entriesHasBeenSet = true; m_entries.push_back(value); return *this; }
122 inline AwsEc2NetworkAclDetails& AddEntries(AwsEc2NetworkAclEntry&& value) { m_entriesHasBeenSet = true; m_entries.push_back(std::move(value)); return *this; }
124 private:
125
126 bool m_isDefault;
127 bool m_isDefaultHasBeenSet = false;
128
129 Aws::String m_networkAclId;
130 bool m_networkAclIdHasBeenSet = false;
131
132 Aws::String m_ownerId;
133 bool m_ownerIdHasBeenSet = false;
134
135 Aws::String m_vpcId;
136 bool m_vpcIdHasBeenSet = false;
137
139 bool m_associationsHasBeenSet = false;
140
142 bool m_entriesHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace SecurityHub
147} // namespace Aws
AwsEc2NetworkAclDetails & WithOwnerId(const char *value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsEc2NetworkAclDetails & WithEntries(const Aws::Vector< AwsEc2NetworkAclEntry > &value)
AwsEc2NetworkAclDetails & WithAssociations(const Aws::Vector< AwsEc2NetworkAclAssociation > &value)
AwsEc2NetworkAclDetails & WithEntries(Aws::Vector< AwsEc2NetworkAclEntry > &&value)
void SetAssociations(const Aws::Vector< AwsEc2NetworkAclAssociation > &value)
AwsEc2NetworkAclDetails & WithIsDefault(bool value)
const Aws::Vector< AwsEc2NetworkAclAssociation > & GetAssociations() const
AwsEc2NetworkAclDetails & WithNetworkAclId(const Aws::String &value)
AwsEc2NetworkAclDetails & WithNetworkAclId(const char *value)
AwsEc2NetworkAclDetails & AddAssociations(const AwsEc2NetworkAclAssociation &value)
AwsEc2NetworkAclDetails & WithNetworkAclId(Aws::String &&value)
AwsEc2NetworkAclDetails & WithAssociations(Aws::Vector< AwsEc2NetworkAclAssociation > &&value)
void SetAssociations(Aws::Vector< AwsEc2NetworkAclAssociation > &&value)
AWS_SECURITYHUB_API AwsEc2NetworkAclDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsEc2NetworkAclDetails & WithOwnerId(const Aws::String &value)
AwsEc2NetworkAclDetails & AddEntries(const AwsEc2NetworkAclEntry &value)
AwsEc2NetworkAclDetails & AddEntries(AwsEc2NetworkAclEntry &&value)
AwsEc2NetworkAclDetails & WithOwnerId(Aws::String &&value)
AWS_SECURITYHUB_API AwsEc2NetworkAclDetails(Aws::Utils::Json::JsonView jsonValue)
AwsEc2NetworkAclDetails & WithVpcId(const char *value)
AwsEc2NetworkAclDetails & WithVpcId(Aws::String &&value)
void SetEntries(const Aws::Vector< AwsEc2NetworkAclEntry > &value)
AwsEc2NetworkAclDetails & WithVpcId(const Aws::String &value)
AwsEc2NetworkAclDetails & AddAssociations(AwsEc2NetworkAclAssociation &&value)
const Aws::Vector< AwsEc2NetworkAclEntry > & GetEntries() const
void SetEntries(Aws::Vector< AwsEc2NetworkAclEntry > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue