AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsNetworkFirewallFirewallDetails.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/AwsNetworkFirewallFirewallSubnetMappingsDetails.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityHub
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_SECURITYHUB_API AwsNetworkFirewallFirewallDetails() = default;
39 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline bool GetDeleteProtection() const { return m_deleteProtection; }
48 inline bool DeleteProtectionHasBeenSet() const { return m_deleteProtectionHasBeenSet; }
49 inline void SetDeleteProtection(bool value) { m_deleteProtectionHasBeenSet = true; m_deleteProtection = value; }
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template<typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
61 template<typename DescriptionT = Aws::String>
62 AwsNetworkFirewallFirewallDetails& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
64
66
69 inline const Aws::String& GetFirewallArn() const { return m_firewallArn; }
70 inline bool FirewallArnHasBeenSet() const { return m_firewallArnHasBeenSet; }
71 template<typename FirewallArnT = Aws::String>
72 void SetFirewallArn(FirewallArnT&& value) { m_firewallArnHasBeenSet = true; m_firewallArn = std::forward<FirewallArnT>(value); }
73 template<typename FirewallArnT = Aws::String>
74 AwsNetworkFirewallFirewallDetails& WithFirewallArn(FirewallArnT&& value) { SetFirewallArn(std::forward<FirewallArnT>(value)); return *this;}
76
78
81 inline const Aws::String& GetFirewallId() const { return m_firewallId; }
82 inline bool FirewallIdHasBeenSet() const { return m_firewallIdHasBeenSet; }
83 template<typename FirewallIdT = Aws::String>
84 void SetFirewallId(FirewallIdT&& value) { m_firewallIdHasBeenSet = true; m_firewallId = std::forward<FirewallIdT>(value); }
85 template<typename FirewallIdT = Aws::String>
86 AwsNetworkFirewallFirewallDetails& WithFirewallId(FirewallIdT&& value) { SetFirewallId(std::forward<FirewallIdT>(value)); return *this;}
88
90
93 inline const Aws::String& GetFirewallName() const { return m_firewallName; }
94 inline bool FirewallNameHasBeenSet() const { return m_firewallNameHasBeenSet; }
95 template<typename FirewallNameT = Aws::String>
96 void SetFirewallName(FirewallNameT&& value) { m_firewallNameHasBeenSet = true; m_firewallName = std::forward<FirewallNameT>(value); }
97 template<typename FirewallNameT = Aws::String>
98 AwsNetworkFirewallFirewallDetails& WithFirewallName(FirewallNameT&& value) { SetFirewallName(std::forward<FirewallNameT>(value)); return *this;}
100
102
105 inline const Aws::String& GetFirewallPolicyArn() const { return m_firewallPolicyArn; }
106 inline bool FirewallPolicyArnHasBeenSet() const { return m_firewallPolicyArnHasBeenSet; }
107 template<typename FirewallPolicyArnT = Aws::String>
108 void SetFirewallPolicyArn(FirewallPolicyArnT&& value) { m_firewallPolicyArnHasBeenSet = true; m_firewallPolicyArn = std::forward<FirewallPolicyArnT>(value); }
109 template<typename FirewallPolicyArnT = Aws::String>
110 AwsNetworkFirewallFirewallDetails& WithFirewallPolicyArn(FirewallPolicyArnT&& value) { SetFirewallPolicyArn(std::forward<FirewallPolicyArnT>(value)); return *this;}
112
114
119 inline bool GetFirewallPolicyChangeProtection() const { return m_firewallPolicyChangeProtection; }
120 inline bool FirewallPolicyChangeProtectionHasBeenSet() const { return m_firewallPolicyChangeProtectionHasBeenSet; }
121 inline void SetFirewallPolicyChangeProtection(bool value) { m_firewallPolicyChangeProtectionHasBeenSet = true; m_firewallPolicyChangeProtection = value; }
124
126
131 inline bool GetSubnetChangeProtection() const { return m_subnetChangeProtection; }
132 inline bool SubnetChangeProtectionHasBeenSet() const { return m_subnetChangeProtectionHasBeenSet; }
133 inline void SetSubnetChangeProtection(bool value) { m_subnetChangeProtectionHasBeenSet = true; m_subnetChangeProtection = value; }
136
138
143 inline bool SubnetMappingsHasBeenSet() const { return m_subnetMappingsHasBeenSet; }
144 template<typename SubnetMappingsT = Aws::Vector<AwsNetworkFirewallFirewallSubnetMappingsDetails>>
145 void SetSubnetMappings(SubnetMappingsT&& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings = std::forward<SubnetMappingsT>(value); }
146 template<typename SubnetMappingsT = Aws::Vector<AwsNetworkFirewallFirewallSubnetMappingsDetails>>
147 AwsNetworkFirewallFirewallDetails& WithSubnetMappings(SubnetMappingsT&& value) { SetSubnetMappings(std::forward<SubnetMappingsT>(value)); return *this;}
148 template<typename SubnetMappingsT = AwsNetworkFirewallFirewallSubnetMappingsDetails>
149 AwsNetworkFirewallFirewallDetails& AddSubnetMappings(SubnetMappingsT&& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings.emplace_back(std::forward<SubnetMappingsT>(value)); return *this; }
151
153
156 inline const Aws::String& GetVpcId() const { return m_vpcId; }
157 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
158 template<typename VpcIdT = Aws::String>
159 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
160 template<typename VpcIdT = Aws::String>
161 AwsNetworkFirewallFirewallDetails& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
163 private:
164
165 bool m_deleteProtection{false};
166 bool m_deleteProtectionHasBeenSet = false;
167
168 Aws::String m_description;
169 bool m_descriptionHasBeenSet = false;
170
171 Aws::String m_firewallArn;
172 bool m_firewallArnHasBeenSet = false;
173
174 Aws::String m_firewallId;
175 bool m_firewallIdHasBeenSet = false;
176
177 Aws::String m_firewallName;
178 bool m_firewallNameHasBeenSet = false;
179
180 Aws::String m_firewallPolicyArn;
181 bool m_firewallPolicyArnHasBeenSet = false;
182
183 bool m_firewallPolicyChangeProtection{false};
184 bool m_firewallPolicyChangeProtectionHasBeenSet = false;
185
186 bool m_subnetChangeProtection{false};
187 bool m_subnetChangeProtectionHasBeenSet = false;
188
190 bool m_subnetMappingsHasBeenSet = false;
191
192 Aws::String m_vpcId;
193 bool m_vpcIdHasBeenSet = false;
194 };
195
196} // namespace Model
197} // namespace SecurityHub
198} // namespace Aws
AWS_SECURITYHUB_API AwsNetworkFirewallFirewallDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsNetworkFirewallFirewallDetails & WithDescription(DescriptionT &&value)
AwsNetworkFirewallFirewallDetails & WithSubnetMappings(SubnetMappingsT &&value)
AwsNetworkFirewallFirewallDetails & WithFirewallId(FirewallIdT &&value)
AwsNetworkFirewallFirewallDetails & WithSubnetChangeProtection(bool value)
AwsNetworkFirewallFirewallDetails & AddSubnetMappings(SubnetMappingsT &&value)
AwsNetworkFirewallFirewallDetails & WithFirewallName(FirewallNameT &&value)
AWS_SECURITYHUB_API AwsNetworkFirewallFirewallDetails()=default
const Aws::Vector< AwsNetworkFirewallFirewallSubnetMappingsDetails > & GetSubnetMappings() const
AwsNetworkFirewallFirewallDetails & WithFirewallArn(FirewallArnT &&value)
AwsNetworkFirewallFirewallDetails & WithVpcId(VpcIdT &&value)
AwsNetworkFirewallFirewallDetails & WithFirewallPolicyArn(FirewallPolicyArnT &&value)
AwsNetworkFirewallFirewallDetails & WithDeleteProtection(bool value)
AwsNetworkFirewallFirewallDetails & WithFirewallPolicyChangeProtection(bool value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API AwsNetworkFirewallFirewallDetails(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue