AWS SDK for C++

AWS SDK for C++ Version 1.11.820

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
359 inline DnsThreatProtection GetDnsThreatProtection() const { return m_dnsThreatProtection; }
360 inline bool DnsThreatProtectionHasBeenSet() const { return m_dnsThreatProtectionHasBeenSet; }
362 m_dnsThreatProtectionHasBeenSet = true;
363 m_dnsThreatProtection = value;
364 }
367 return *this;
368 }
370
372
381 inline ConfidenceThreshold GetConfidenceThreshold() const { return m_confidenceThreshold; }
382 inline bool ConfidenceThresholdHasBeenSet() const { return m_confidenceThresholdHasBeenSet; }
384 m_confidenceThresholdHasBeenSet = true;
385 m_confidenceThreshold = value;
386 }
389 return *this;
390 }
392
394
398 inline const FirewallRuleType& GetFirewallRuleType() const { return m_firewallRuleType; }
399 inline bool FirewallRuleTypeHasBeenSet() const { return m_firewallRuleTypeHasBeenSet; }
400 template <typename FirewallRuleTypeT = FirewallRuleType>
401 void SetFirewallRuleType(FirewallRuleTypeT&& value) {
402 m_firewallRuleTypeHasBeenSet = true;
403 m_firewallRuleType = std::forward<FirewallRuleTypeT>(value);
404 }
405 template <typename FirewallRuleTypeT = FirewallRuleType>
406 FirewallRule& WithFirewallRuleType(FirewallRuleTypeT&& value) {
407 SetFirewallRuleType(std::forward<FirewallRuleTypeT>(value));
408 return *this;
409 }
411 private:
412 Aws::String m_firewallRuleGroupId;
413
414 Aws::String m_firewallDomainListId;
415
416 Aws::String m_firewallThreatProtectionId;
417
418 Aws::String m_name;
419
420 int m_priority{0};
421
422 Action m_action{Action::NOT_SET};
423
424 BlockResponse m_blockResponse{BlockResponse::NOT_SET};
425
426 Aws::String m_blockOverrideDomain;
427
429
430 int m_blockOverrideTtl{0};
431
432 Aws::String m_creatorRequestId;
433
434 Aws::String m_creationTime;
435
436 Aws::String m_modificationTime;
437
439
440 Aws::String m_qtype;
441
443
445
446 FirewallRuleType m_firewallRuleType;
447 bool m_firewallRuleGroupIdHasBeenSet = false;
448 bool m_firewallDomainListIdHasBeenSet = false;
449 bool m_firewallThreatProtectionIdHasBeenSet = false;
450 bool m_nameHasBeenSet = false;
451 bool m_priorityHasBeenSet = false;
452 bool m_actionHasBeenSet = false;
453 bool m_blockResponseHasBeenSet = false;
454 bool m_blockOverrideDomainHasBeenSet = false;
455 bool m_blockOverrideDnsTypeHasBeenSet = false;
456 bool m_blockOverrideTtlHasBeenSet = false;
457 bool m_creatorRequestIdHasBeenSet = false;
458 bool m_creationTimeHasBeenSet = false;
459 bool m_modificationTimeHasBeenSet = false;
460 bool m_firewallDomainRedirectionActionHasBeenSet = false;
461 bool m_qtypeHasBeenSet = false;
462 bool m_dnsThreatProtectionHasBeenSet = false;
463 bool m_confidenceThresholdHasBeenSet = false;
464 bool m_firewallRuleTypeHasBeenSet = false;
465};
466
467} // namespace Model
468} // namespace Route53Resolver
469} // 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
FirewallRule & WithDnsThreatProtection(DnsThreatProtection value)
AWS_ROUTE53RESOLVER_API FirewallRule & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetFirewallThreatProtectionId() const
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)
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