AWS SDK for C++

AWS SDK for C++ Version 1.11.830

Loading...
Searching...
No Matches
FirewallRule.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/route53resolver/Route53Resolver_EXPORTS.h>
9#include <aws/route53resolver/model/Action.h>
10#include <aws/route53resolver/model/BlockOverrideDnsType.h>
11#include <aws/route53resolver/model/BlockResponse.h>
12#include <aws/route53resolver/model/ConfidenceThreshold.h>
13#include <aws/route53resolver/model/DnsThreatProtection.h>
14#include <aws/route53resolver/model/FirewallDomainRedirectionAction.h>
15#include <aws/route53resolver/model/FirewallRuleType.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Route53Resolver {
27namespace Model {
28
35 public:
36 AWS_ROUTE53RESOLVER_API FirewallRule() = default;
37 AWS_ROUTE53RESOLVER_API FirewallRule(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ROUTE53RESOLVER_API FirewallRule& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetFirewallRuleGroupId() const { return m_firewallRuleGroupId; }
46 inline bool FirewallRuleGroupIdHasBeenSet() const { return m_firewallRuleGroupIdHasBeenSet; }
47 template <typename FirewallRuleGroupIdT = Aws::String>
48 void SetFirewallRuleGroupId(FirewallRuleGroupIdT&& value) {
49 m_firewallRuleGroupIdHasBeenSet = true;
50 m_firewallRuleGroupId = std::forward<FirewallRuleGroupIdT>(value);
51 }
52 template <typename FirewallRuleGroupIdT = Aws::String>
53 FirewallRule& WithFirewallRuleGroupId(FirewallRuleGroupIdT&& value) {
54 SetFirewallRuleGroupId(std::forward<FirewallRuleGroupIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetFirewallDomainListId() const { return m_firewallDomainListId; }
64 inline bool FirewallDomainListIdHasBeenSet() const { return m_firewallDomainListIdHasBeenSet; }
65 template <typename FirewallDomainListIdT = Aws::String>
66 void SetFirewallDomainListId(FirewallDomainListIdT&& value) {
67 m_firewallDomainListIdHasBeenSet = true;
68 m_firewallDomainListId = std::forward<FirewallDomainListIdT>(value);
69 }
70 template <typename FirewallDomainListIdT = Aws::String>
71 FirewallRule& WithFirewallDomainListId(FirewallDomainListIdT&& value) {
72 SetFirewallDomainListId(std::forward<FirewallDomainListIdT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetFirewallThreatProtectionId() const { return m_firewallThreatProtectionId; }
82 inline bool FirewallThreatProtectionIdHasBeenSet() const { return m_firewallThreatProtectionIdHasBeenSet; }
83 template <typename FirewallThreatProtectionIdT = Aws::String>
84 void SetFirewallThreatProtectionId(FirewallThreatProtectionIdT&& value) {
85 m_firewallThreatProtectionIdHasBeenSet = true;
86 m_firewallThreatProtectionId = std::forward<FirewallThreatProtectionIdT>(value);
87 }
88 template <typename FirewallThreatProtectionIdT = Aws::String>
89 FirewallRule& WithFirewallThreatProtectionId(FirewallThreatProtectionIdT&& value) {
90 SetFirewallThreatProtectionId(std::forward<FirewallThreatProtectionIdT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetName() const { return m_name; }
100 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
101 template <typename NameT = Aws::String>
102 void SetName(NameT&& value) {
103 m_nameHasBeenSet = true;
104 m_name = std::forward<NameT>(value);
105 }
106 template <typename NameT = Aws::String>
107 FirewallRule& WithName(NameT&& value) {
108 SetName(std::forward<NameT>(value));
109 return *this;
110 }
112
114
119 inline int GetPriority() const { return m_priority; }
120 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
121 inline void SetPriority(int value) {
122 m_priorityHasBeenSet = true;
123 m_priority = value;
124 }
125 inline FirewallRule& WithPriority(int value) {
126 SetPriority(value);
127 return *this;
128 }
130
132
142 inline Action GetAction() const { return m_action; }
143 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
144 inline void SetAction(Action value) {
145 m_actionHasBeenSet = true;
146 m_action = value;
147 }
149 SetAction(value);
150 return *this;
151 }
153
155
165 inline BlockResponse GetBlockResponse() const { return m_blockResponse; }
166 inline bool BlockResponseHasBeenSet() const { return m_blockResponseHasBeenSet; }
167 inline void SetBlockResponse(BlockResponse value) {
168 m_blockResponseHasBeenSet = true;
169 m_blockResponse = value;
170 }
172 SetBlockResponse(value);
173 return *this;
174 }
176
178
183 inline const Aws::String& GetBlockOverrideDomain() const { return m_blockOverrideDomain; }
184 inline bool BlockOverrideDomainHasBeenSet() const { return m_blockOverrideDomainHasBeenSet; }
185 template <typename BlockOverrideDomainT = Aws::String>
186 void SetBlockOverrideDomain(BlockOverrideDomainT&& value) {
187 m_blockOverrideDomainHasBeenSet = true;
188 m_blockOverrideDomain = std::forward<BlockOverrideDomainT>(value);
189 }
190 template <typename BlockOverrideDomainT = Aws::String>
191 FirewallRule& WithBlockOverrideDomain(BlockOverrideDomainT&& value) {
192 SetBlockOverrideDomain(std::forward<BlockOverrideDomainT>(value));
193 return *this;
194 }
196
198
204 inline BlockOverrideDnsType GetBlockOverrideDnsType() const { return m_blockOverrideDnsType; }
205 inline bool BlockOverrideDnsTypeHasBeenSet() const { return m_blockOverrideDnsTypeHasBeenSet; }
207 m_blockOverrideDnsTypeHasBeenSet = true;
208 m_blockOverrideDnsType = value;
209 }
212 return *this;
213 }
215
217
223 inline int GetBlockOverrideTtl() const { return m_blockOverrideTtl; }
224 inline bool BlockOverrideTtlHasBeenSet() const { return m_blockOverrideTtlHasBeenSet; }
225 inline void SetBlockOverrideTtl(int value) {
226 m_blockOverrideTtlHasBeenSet = true;
227 m_blockOverrideTtl = value;
228 }
230 SetBlockOverrideTtl(value);
231 return *this;
232 }
234
236
241 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
242 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
243 template <typename CreatorRequestIdT = Aws::String>
244 void SetCreatorRequestId(CreatorRequestIdT&& value) {
245 m_creatorRequestIdHasBeenSet = true;
246 m_creatorRequestId = std::forward<CreatorRequestIdT>(value);
247 }
248 template <typename CreatorRequestIdT = Aws::String>
249 FirewallRule& WithCreatorRequestId(CreatorRequestIdT&& value) {
250 SetCreatorRequestId(std::forward<CreatorRequestIdT>(value));
251 return *this;
252 }
254
256
260 inline const Aws::String& GetCreationTime() const { return m_creationTime; }
261 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
262 template <typename CreationTimeT = Aws::String>
263 void SetCreationTime(CreationTimeT&& value) {
264 m_creationTimeHasBeenSet = true;
265 m_creationTime = std::forward<CreationTimeT>(value);
266 }
267 template <typename CreationTimeT = Aws::String>
268 FirewallRule& WithCreationTime(CreationTimeT&& value) {
269 SetCreationTime(std::forward<CreationTimeT>(value));
270 return *this;
271 }
273
275
279 inline const Aws::String& GetModificationTime() const { return m_modificationTime; }
280 inline bool ModificationTimeHasBeenSet() const { return m_modificationTimeHasBeenSet; }
281 template <typename ModificationTimeT = Aws::String>
282 void SetModificationTime(ModificationTimeT&& value) {
283 m_modificationTimeHasBeenSet = true;
284 m_modificationTime = std::forward<ModificationTimeT>(value);
285 }
286 template <typename ModificationTimeT = Aws::String>
287 FirewallRule& WithModificationTime(ModificationTimeT&& value) {
288 SetModificationTime(std::forward<ModificationTimeT>(value));
289 return *this;
290 }
292
294
303 inline FirewallDomainRedirectionAction GetFirewallDomainRedirectionAction() const { return m_firewallDomainRedirectionAction; }
304 inline bool FirewallDomainRedirectionActionHasBeenSet() const { return m_firewallDomainRedirectionActionHasBeenSet; }
306 m_firewallDomainRedirectionActionHasBeenSet = true;
307 m_firewallDomainRedirectionAction = value;
308 }
311 return *this;
312 }
314
316
335 inline const Aws::String& GetQtype() const { return m_qtype; }
336 inline bool QtypeHasBeenSet() const { return m_qtypeHasBeenSet; }
337 template <typename QtypeT = Aws::String>
338 void SetQtype(QtypeT&& value) {
339 m_qtypeHasBeenSet = true;
340 m_qtype = std::forward<QtypeT>(value);
341 }
342 template <typename QtypeT = Aws::String>
343 FirewallRule& WithQtype(QtypeT&& value) {
344 SetQtype(std::forward<QtypeT>(value));
345 return *this;
346 }
348
350
361 inline DnsThreatProtection GetDnsThreatProtection() const { return m_dnsThreatProtection; }
362 inline bool DnsThreatProtectionHasBeenSet() const { return m_dnsThreatProtectionHasBeenSet; }
364 m_dnsThreatProtectionHasBeenSet = true;
365 m_dnsThreatProtection = value;
366 }
369 return *this;
370 }
372
374
383 inline ConfidenceThreshold GetConfidenceThreshold() const { return m_confidenceThreshold; }
384 inline bool ConfidenceThresholdHasBeenSet() const { return m_confidenceThresholdHasBeenSet; }
386 m_confidenceThresholdHasBeenSet = true;
387 m_confidenceThreshold = value;
388 }
391 return *this;
392 }
394
396
410 inline const FirewallRuleType& GetFirewallRuleType() const { return m_firewallRuleType; }
411 inline bool FirewallRuleTypeHasBeenSet() const { return m_firewallRuleTypeHasBeenSet; }
412 template <typename FirewallRuleTypeT = FirewallRuleType>
413 void SetFirewallRuleType(FirewallRuleTypeT&& value) {
414 m_firewallRuleTypeHasBeenSet = true;
415 m_firewallRuleType = std::forward<FirewallRuleTypeT>(value);
416 }
417 template <typename FirewallRuleTypeT = FirewallRuleType>
418 FirewallRule& WithFirewallRuleType(FirewallRuleTypeT&& value) {
419 SetFirewallRuleType(std::forward<FirewallRuleTypeT>(value));
420 return *this;
421 }
423
425
438 inline const Aws::String& GetStatus() const { return m_status; }
439 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
440 template <typename StatusT = Aws::String>
441 void SetStatus(StatusT&& value) {
442 m_statusHasBeenSet = true;
443 m_status = std::forward<StatusT>(value);
444 }
445 template <typename StatusT = Aws::String>
446 FirewallRule& WithStatus(StatusT&& value) {
447 SetStatus(std::forward<StatusT>(value));
448 return *this;
449 }
451
453
458 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
459 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
460 template <typename StatusMessageT = Aws::String>
461 void SetStatusMessage(StatusMessageT&& value) {
462 m_statusMessageHasBeenSet = true;
463 m_statusMessage = std::forward<StatusMessageT>(value);
464 }
465 template <typename StatusMessageT = Aws::String>
466 FirewallRule& WithStatusMessage(StatusMessageT&& value) {
467 SetStatusMessage(std::forward<StatusMessageT>(value));
468 return *this;
469 }
471 private:
472 Aws::String m_firewallRuleGroupId;
473
474 Aws::String m_firewallDomainListId;
475
476 Aws::String m_firewallThreatProtectionId;
477
478 Aws::String m_name;
479
480 int m_priority{0};
481
482 Action m_action{Action::NOT_SET};
483
484 BlockResponse m_blockResponse{BlockResponse::NOT_SET};
485
486 Aws::String m_blockOverrideDomain;
487
489
490 int m_blockOverrideTtl{0};
491
492 Aws::String m_creatorRequestId;
493
494 Aws::String m_creationTime;
495
496 Aws::String m_modificationTime;
497
499
500 Aws::String m_qtype;
501
503
505
506 FirewallRuleType m_firewallRuleType;
507
508 Aws::String m_status;
509
510 Aws::String m_statusMessage;
511 bool m_firewallRuleGroupIdHasBeenSet = false;
512 bool m_firewallDomainListIdHasBeenSet = false;
513 bool m_firewallThreatProtectionIdHasBeenSet = false;
514 bool m_nameHasBeenSet = false;
515 bool m_priorityHasBeenSet = false;
516 bool m_actionHasBeenSet = false;
517 bool m_blockResponseHasBeenSet = false;
518 bool m_blockOverrideDomainHasBeenSet = false;
519 bool m_blockOverrideDnsTypeHasBeenSet = false;
520 bool m_blockOverrideTtlHasBeenSet = false;
521 bool m_creatorRequestIdHasBeenSet = false;
522 bool m_creationTimeHasBeenSet = false;
523 bool m_modificationTimeHasBeenSet = false;
524 bool m_firewallDomainRedirectionActionHasBeenSet = false;
525 bool m_qtypeHasBeenSet = false;
526 bool m_dnsThreatProtectionHasBeenSet = false;
527 bool m_confidenceThresholdHasBeenSet = false;
528 bool m_firewallRuleTypeHasBeenSet = false;
529 bool m_statusHasBeenSet = false;
530 bool m_statusMessageHasBeenSet = false;
531};
532
533} // namespace Model
534} // namespace Route53Resolver
535} // namespace Aws
FirewallRule & WithQtype(QtypeT &&value)
void SetDnsThreatProtection(DnsThreatProtection value)
void SetFirewallRuleGroupId(FirewallRuleGroupIdT &&value)
AWS_ROUTE53RESOLVER_API FirewallRule(Aws::Utils::Json::JsonView jsonValue)
FirewallRule & WithBlockOverrideDomain(BlockOverrideDomainT &&value)
FirewallRule & WithAction(Action value)
FirewallRule & WithBlockOverrideDnsType(BlockOverrideDnsType value)
const Aws::String & GetModificationTime() const
void SetBlockOverrideDomain(BlockOverrideDomainT &&value)
FirewallRule & WithFirewallRuleType(FirewallRuleTypeT &&value)
void SetModificationTime(ModificationTimeT &&value)
const Aws::String & GetCreationTime() const
void SetFirewallRuleType(FirewallRuleTypeT &&value)
FirewallRule & WithFirewallDomainRedirectionAction(FirewallDomainRedirectionAction value)
AWS_ROUTE53RESOLVER_API FirewallRule()=default
FirewallRule & WithCreatorRequestId(CreatorRequestIdT &&value)
const Aws::String & GetBlockOverrideDomain() const
const Aws::String & GetStatus() const
FirewallRule & WithStatus(StatusT &&value)
FirewallRule & WithDnsThreatProtection(DnsThreatProtection value)
const Aws::String & GetStatusMessage() const
AWS_ROUTE53RESOLVER_API FirewallRule & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetFirewallThreatProtectionId() const
FirewallRule & WithStatusMessage(StatusMessageT &&value)
void SetFirewallDomainRedirectionAction(FirewallDomainRedirectionAction value)
void SetBlockResponse(BlockResponse value)
FirewallRule & WithConfidenceThreshold(ConfidenceThreshold value)
BlockOverrideDnsType GetBlockOverrideDnsType() const
FirewallRule & WithPriority(int value)
const Aws::String & GetCreatorRequestId() const
FirewallRule & WithFirewallThreatProtectionId(FirewallThreatProtectionIdT &&value)
const Aws::String & GetFirewallDomainListId() const
FirewallDomainRedirectionAction GetFirewallDomainRedirectionAction() const
DnsThreatProtection GetDnsThreatProtection() const
void SetConfidenceThreshold(ConfidenceThreshold value)
FirewallRule & WithName(NameT &&value)
const FirewallRuleType & GetFirewallRuleType() const
FirewallRule & WithFirewallRuleGroupId(FirewallRuleGroupIdT &&value)
FirewallRule & WithCreationTime(CreationTimeT &&value)
void SetBlockOverrideDnsType(BlockOverrideDnsType value)
void SetFirewallThreatProtectionId(FirewallThreatProtectionIdT &&value)
ConfidenceThreshold GetConfidenceThreshold() const
const Aws::String & GetQtype() const
void SetCreatorRequestId(CreatorRequestIdT &&value)
FirewallRule & WithFirewallDomainListId(FirewallDomainListIdT &&value)
AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const
FirewallRule & WithBlockOverrideTtl(int value)
FirewallRule & WithBlockResponse(BlockResponse value)
void SetStatusMessage(StatusMessageT &&value)
FirewallRule & WithModificationTime(ModificationTimeT &&value)
void SetFirewallDomainListId(FirewallDomainListIdT &&value)
void SetCreationTime(CreationTimeT &&value)
const Aws::String & GetName() const
const Aws::String & GetFirewallRuleGroupId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue