AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
FirewallPolicyResponse.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/crt/cbor/Cbor.h>
11#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
12#include <aws/network-firewall/model/EncryptionConfiguration.h>
13#include <aws/network-firewall/model/FirewallPolicyError.h>
14#include <aws/network-firewall/model/ResourceStatus.h>
15#include <aws/network-firewall/model/Tag.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Cbor {
22class CborValue;
23} // namespace Cbor
24} // namespace Utils
25namespace NetworkFirewall {
26namespace Model {
27
37 public:
38 AWS_NETWORKFIREWALL_API FirewallPolicyResponse() = default;
39 AWS_NETWORKFIREWALL_API FirewallPolicyResponse(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
40 AWS_NETWORKFIREWALL_API FirewallPolicyResponse& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
41 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
42
44
48 inline const Aws::String& GetFirewallPolicyName() const { return m_firewallPolicyName; }
49 inline bool FirewallPolicyNameHasBeenSet() const { return m_firewallPolicyNameHasBeenSet; }
50 template <typename FirewallPolicyNameT = Aws::String>
51 void SetFirewallPolicyName(FirewallPolicyNameT&& value) {
52 m_firewallPolicyNameHasBeenSet = true;
53 m_firewallPolicyName = std::forward<FirewallPolicyNameT>(value);
54 }
55 template <typename FirewallPolicyNameT = Aws::String>
56 FirewallPolicyResponse& WithFirewallPolicyName(FirewallPolicyNameT&& value) {
57 SetFirewallPolicyName(std::forward<FirewallPolicyNameT>(value));
58 return *this;
59 }
61
63
69 inline const Aws::String& GetFirewallPolicyArn() const { return m_firewallPolicyArn; }
70 inline bool FirewallPolicyArnHasBeenSet() const { return m_firewallPolicyArnHasBeenSet; }
71 template <typename FirewallPolicyArnT = Aws::String>
72 void SetFirewallPolicyArn(FirewallPolicyArnT&& value) {
73 m_firewallPolicyArnHasBeenSet = true;
74 m_firewallPolicyArn = std::forward<FirewallPolicyArnT>(value);
75 }
76 template <typename FirewallPolicyArnT = Aws::String>
77 FirewallPolicyResponse& WithFirewallPolicyArn(FirewallPolicyArnT&& value) {
78 SetFirewallPolicyArn(std::forward<FirewallPolicyArnT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetFirewallPolicyId() const { return m_firewallPolicyId; }
88 inline bool FirewallPolicyIdHasBeenSet() const { return m_firewallPolicyIdHasBeenSet; }
89 template <typename FirewallPolicyIdT = Aws::String>
90 void SetFirewallPolicyId(FirewallPolicyIdT&& value) {
91 m_firewallPolicyIdHasBeenSet = true;
92 m_firewallPolicyId = std::forward<FirewallPolicyIdT>(value);
93 }
94 template <typename FirewallPolicyIdT = Aws::String>
95 FirewallPolicyResponse& WithFirewallPolicyId(FirewallPolicyIdT&& value) {
96 SetFirewallPolicyId(std::forward<FirewallPolicyIdT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::String& GetDescription() const { return m_description; }
106 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
107 template <typename DescriptionT = Aws::String>
108 void SetDescription(DescriptionT&& value) {
109 m_descriptionHasBeenSet = true;
110 m_description = std::forward<DescriptionT>(value);
111 }
112 template <typename DescriptionT = Aws::String>
114 SetDescription(std::forward<DescriptionT>(value));
115 return *this;
116 }
118
120
125 inline ResourceStatus GetFirewallPolicyStatus() const { return m_firewallPolicyStatus; }
126 inline bool FirewallPolicyStatusHasBeenSet() const { return m_firewallPolicyStatusHasBeenSet; }
128 m_firewallPolicyStatusHasBeenSet = true;
129 m_firewallPolicyStatus = value;
130 }
133 return *this;
134 }
136
138
144 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
145 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
146 template <typename StatusMessageT = Aws::String>
147 void SetStatusMessage(StatusMessageT&& value) {
148 m_statusMessageHasBeenSet = true;
149 m_statusMessage = std::forward<StatusMessageT>(value);
150 }
151 template <typename StatusMessageT = Aws::String>
152 FirewallPolicyResponse& WithStatusMessage(StatusMessageT&& value) {
153 SetStatusMessage(std::forward<StatusMessageT>(value));
154 return *this;
155 }
157
159
162 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
163 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
164 template <typename TagsT = Aws::Vector<Tag>>
165 void SetTags(TagsT&& value) {
166 m_tagsHasBeenSet = true;
167 m_tags = std::forward<TagsT>(value);
168 }
169 template <typename TagsT = Aws::Vector<Tag>>
171 SetTags(std::forward<TagsT>(value));
172 return *this;
173 }
174 template <typename TagsT = Tag>
176 m_tagsHasBeenSet = true;
177 m_tags.emplace_back(std::forward<TagsT>(value));
178 return *this;
179 }
181
183
187 inline int64_t GetConsumedStatelessRuleCapacity() const { return m_consumedStatelessRuleCapacity; }
188 inline bool ConsumedStatelessRuleCapacityHasBeenSet() const { return m_consumedStatelessRuleCapacityHasBeenSet; }
189 inline void SetConsumedStatelessRuleCapacity(int64_t value) {
190 m_consumedStatelessRuleCapacityHasBeenSet = true;
191 m_consumedStatelessRuleCapacity = value;
192 }
195 return *this;
196 }
198
200
204 inline int64_t GetConsumedStatefulRuleCapacity() const { return m_consumedStatefulRuleCapacity; }
205 inline bool ConsumedStatefulRuleCapacityHasBeenSet() const { return m_consumedStatefulRuleCapacityHasBeenSet; }
206 inline void SetConsumedStatefulRuleCapacity(int64_t value) {
207 m_consumedStatefulRuleCapacityHasBeenSet = true;
208 m_consumedStatefulRuleCapacity = value;
209 }
212 return *this;
213 }
215
217
222 inline int64_t GetConsumedStatefulDomainCapacity() const { return m_consumedStatefulDomainCapacity; }
223 inline bool ConsumedStatefulDomainCapacityHasBeenSet() const { return m_consumedStatefulDomainCapacityHasBeenSet; }
224 inline void SetConsumedStatefulDomainCapacity(int64_t value) {
225 m_consumedStatefulDomainCapacityHasBeenSet = true;
226 m_consumedStatefulDomainCapacity = value;
227 }
230 return *this;
231 }
233
235
238 inline int64_t GetNumberOfAssociations() const { return m_numberOfAssociations; }
239 inline bool NumberOfAssociationsHasBeenSet() const { return m_numberOfAssociationsHasBeenSet; }
240 inline void SetNumberOfAssociations(int64_t value) {
241 m_numberOfAssociationsHasBeenSet = true;
242 m_numberOfAssociations = value;
243 }
246 return *this;
247 }
249
251
255 inline const EncryptionConfiguration& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
256 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
257 template <typename EncryptionConfigurationT = EncryptionConfiguration>
258 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) {
259 m_encryptionConfigurationHasBeenSet = true;
260 m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value);
261 }
262 template <typename EncryptionConfigurationT = EncryptionConfiguration>
263 FirewallPolicyResponse& WithEncryptionConfiguration(EncryptionConfigurationT&& value) {
264 SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value));
265 return *this;
266 }
268
270
277 inline const Aws::Vector<FirewallPolicyError>& GetErrors() const { return m_errors; }
278 inline bool ErrorsHasBeenSet() const { return m_errorsHasBeenSet; }
279 template <typename ErrorsT = Aws::Vector<FirewallPolicyError>>
280 void SetErrors(ErrorsT&& value) {
281 m_errorsHasBeenSet = true;
282 m_errors = std::forward<ErrorsT>(value);
283 }
284 template <typename ErrorsT = Aws::Vector<FirewallPolicyError>>
286 SetErrors(std::forward<ErrorsT>(value));
287 return *this;
288 }
289 template <typename ErrorsT = FirewallPolicyError>
291 m_errorsHasBeenSet = true;
292 m_errors.emplace_back(std::forward<ErrorsT>(value));
293 return *this;
294 }
296
298
301 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
302 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
303 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
304 void SetLastModifiedTime(LastModifiedTimeT&& value) {
305 m_lastModifiedTimeHasBeenSet = true;
306 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
307 }
308 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
309 FirewallPolicyResponse& WithLastModifiedTime(LastModifiedTimeT&& value) {
310 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
311 return *this;
312 }
314 private:
315 Aws::String m_firewallPolicyName;
316
317 Aws::String m_firewallPolicyArn;
318
319 Aws::String m_firewallPolicyId;
320
321 Aws::String m_description;
322
323 ResourceStatus m_firewallPolicyStatus{ResourceStatus::NOT_SET};
324
325 Aws::String m_statusMessage;
326
327 Aws::Vector<Tag> m_tags;
328
329 int64_t m_consumedStatelessRuleCapacity{0};
330
331 int64_t m_consumedStatefulRuleCapacity{0};
332
333 int64_t m_consumedStatefulDomainCapacity{0};
334
335 int64_t m_numberOfAssociations{0};
336
337 EncryptionConfiguration m_encryptionConfiguration;
338
340
341 Aws::Utils::DateTime m_lastModifiedTime{};
342 bool m_firewallPolicyNameHasBeenSet = false;
343 bool m_firewallPolicyArnHasBeenSet = false;
344 bool m_firewallPolicyIdHasBeenSet = false;
345 bool m_descriptionHasBeenSet = false;
346 bool m_firewallPolicyStatusHasBeenSet = false;
347 bool m_statusMessageHasBeenSet = false;
348 bool m_tagsHasBeenSet = false;
349 bool m_consumedStatelessRuleCapacityHasBeenSet = false;
350 bool m_consumedStatefulRuleCapacityHasBeenSet = false;
351 bool m_consumedStatefulDomainCapacityHasBeenSet = false;
352 bool m_numberOfAssociationsHasBeenSet = false;
353 bool m_encryptionConfigurationHasBeenSet = false;
354 bool m_errorsHasBeenSet = false;
355 bool m_lastModifiedTimeHasBeenSet = false;
356};
357
358} // namespace Model
359} // namespace NetworkFirewall
360} // namespace Aws
FirewallPolicyResponse & WithConsumedStatefulRuleCapacity(int64_t value)
FirewallPolicyResponse & WithErrors(ErrorsT &&value)
FirewallPolicyResponse & WithConsumedStatefulDomainCapacity(int64_t value)
AWS_NETWORKFIREWALL_API FirewallPolicyResponse()=default
AWS_NETWORKFIREWALL_API FirewallPolicyResponse & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const EncryptionConfiguration & GetEncryptionConfiguration() const
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
FirewallPolicyResponse & AddErrors(ErrorsT &&value)
FirewallPolicyResponse & WithDescription(DescriptionT &&value)
FirewallPolicyResponse & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
void SetEncryptionConfiguration(EncryptionConfigurationT &&value)
FirewallPolicyResponse & WithStatusMessage(StatusMessageT &&value)
const Aws::Vector< FirewallPolicyError > & GetErrors() const
FirewallPolicyResponse & WithLastModifiedTime(LastModifiedTimeT &&value)
FirewallPolicyResponse & WithNumberOfAssociations(int64_t value)
FirewallPolicyResponse & WithFirewallPolicyStatus(ResourceStatus value)
AWS_NETWORKFIREWALL_API FirewallPolicyResponse(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
FirewallPolicyResponse & WithConsumedStatelessRuleCapacity(int64_t value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
FirewallPolicyResponse & WithFirewallPolicyId(FirewallPolicyIdT &&value)
FirewallPolicyResponse & WithFirewallPolicyArn(FirewallPolicyArnT &&value)
FirewallPolicyResponse & WithFirewallPolicyName(FirewallPolicyNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector