AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename NetworkAclIdT = Aws::String>
61 void SetNetworkAclId(NetworkAclIdT&& value) { m_networkAclIdHasBeenSet = true; m_networkAclId = std::forward<NetworkAclIdT>(value); }
62 template<typename NetworkAclIdT = Aws::String>
63 AwsEc2NetworkAclDetails& WithNetworkAclId(NetworkAclIdT&& value) { SetNetworkAclId(std::forward<NetworkAclIdT>(value)); return *this;}
65
67
71 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
72 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
73 template<typename OwnerIdT = Aws::String>
74 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
75 template<typename OwnerIdT = Aws::String>
76 AwsEc2NetworkAclDetails& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
78
80
83 inline const Aws::String& GetVpcId() const { return m_vpcId; }
84 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
85 template<typename VpcIdT = Aws::String>
86 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
87 template<typename VpcIdT = Aws::String>
88 AwsEc2NetworkAclDetails& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
90
92
95 inline const Aws::Vector<AwsEc2NetworkAclAssociation>& GetAssociations() const { return m_associations; }
96 inline bool AssociationsHasBeenSet() const { return m_associationsHasBeenSet; }
97 template<typename AssociationsT = Aws::Vector<AwsEc2NetworkAclAssociation>>
98 void SetAssociations(AssociationsT&& value) { m_associationsHasBeenSet = true; m_associations = std::forward<AssociationsT>(value); }
99 template<typename AssociationsT = Aws::Vector<AwsEc2NetworkAclAssociation>>
100 AwsEc2NetworkAclDetails& WithAssociations(AssociationsT&& value) { SetAssociations(std::forward<AssociationsT>(value)); return *this;}
101 template<typename AssociationsT = AwsEc2NetworkAclAssociation>
102 AwsEc2NetworkAclDetails& AddAssociations(AssociationsT&& value) { m_associationsHasBeenSet = true; m_associations.emplace_back(std::forward<AssociationsT>(value)); return *this; }
104
106
109 inline const Aws::Vector<AwsEc2NetworkAclEntry>& GetEntries() const { return m_entries; }
110 inline bool EntriesHasBeenSet() const { return m_entriesHasBeenSet; }
111 template<typename EntriesT = Aws::Vector<AwsEc2NetworkAclEntry>>
112 void SetEntries(EntriesT&& value) { m_entriesHasBeenSet = true; m_entries = std::forward<EntriesT>(value); }
113 template<typename EntriesT = Aws::Vector<AwsEc2NetworkAclEntry>>
114 AwsEc2NetworkAclDetails& WithEntries(EntriesT&& value) { SetEntries(std::forward<EntriesT>(value)); return *this;}
115 template<typename EntriesT = AwsEc2NetworkAclEntry>
116 AwsEc2NetworkAclDetails& AddEntries(EntriesT&& value) { m_entriesHasBeenSet = true; m_entries.emplace_back(std::forward<EntriesT>(value)); return *this; }
118 private:
119
120 bool m_isDefault{false};
121 bool m_isDefaultHasBeenSet = false;
122
123 Aws::String m_networkAclId;
124 bool m_networkAclIdHasBeenSet = false;
125
126 Aws::String m_ownerId;
127 bool m_ownerIdHasBeenSet = false;
128
129 Aws::String m_vpcId;
130 bool m_vpcIdHasBeenSet = false;
131
133 bool m_associationsHasBeenSet = false;
134
136 bool m_entriesHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace SecurityHub
141} // namespace Aws
AwsEc2NetworkAclDetails & WithNetworkAclId(NetworkAclIdT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsEc2NetworkAclDetails & AddAssociations(AssociationsT &&value)
AwsEc2NetworkAclDetails & WithVpcId(VpcIdT &&value)
AwsEc2NetworkAclDetails & WithIsDefault(bool value)
AwsEc2NetworkAclDetails & AddEntries(EntriesT &&value)
const Aws::Vector< AwsEc2NetworkAclAssociation > & GetAssociations() const
AwsEc2NetworkAclDetails & WithAssociations(AssociationsT &&value)
AWS_SECURITYHUB_API AwsEc2NetworkAclDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsEc2NetworkAclDetails & WithOwnerId(OwnerIdT &&value)
AWS_SECURITYHUB_API AwsEc2NetworkAclDetails()=default
AWS_SECURITYHUB_API AwsEc2NetworkAclDetails(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AwsEc2NetworkAclEntry > & GetEntries() const
AwsEc2NetworkAclDetails & WithEntries(EntriesT &&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