AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Route53Resolver {
26namespace Model {
27
34 public:
35 AWS_ROUTE53RESOLVER_API FirewallRule() = default;
36 AWS_ROUTE53RESOLVER_API FirewallRule(Aws::Utils::Json::JsonView jsonValue);
37 AWS_ROUTE53RESOLVER_API FirewallRule& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetFirewallRuleGroupId() const { return m_firewallRuleGroupId; }
45 inline bool FirewallRuleGroupIdHasBeenSet() const { return m_firewallRuleGroupIdHasBeenSet; }
46 template <typename FirewallRuleGroupIdT = Aws::String>
47 void SetFirewallRuleGroupId(FirewallRuleGroupIdT&& value) {
48 m_firewallRuleGroupIdHasBeenSet = true;
49 m_firewallRuleGroupId = std::forward<FirewallRuleGroupIdT>(value);
50 }
51 template <typename FirewallRuleGroupIdT = Aws::String>
52 FirewallRule& WithFirewallRuleGroupId(FirewallRuleGroupIdT&& value) {
53 SetFirewallRuleGroupId(std::forward<FirewallRuleGroupIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetFirewallDomainListId() const { return m_firewallDomainListId; }
63 inline bool FirewallDomainListIdHasBeenSet() const { return m_firewallDomainListIdHasBeenSet; }
64 template <typename FirewallDomainListIdT = Aws::String>
65 void SetFirewallDomainListId(FirewallDomainListIdT&& value) {
66 m_firewallDomainListIdHasBeenSet = true;
67 m_firewallDomainListId = std::forward<FirewallDomainListIdT>(value);
68 }
69 template <typename FirewallDomainListIdT = Aws::String>
70 FirewallRule& WithFirewallDomainListId(FirewallDomainListIdT&& value) {
71 SetFirewallDomainListId(std::forward<FirewallDomainListIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetFirewallThreatProtectionId() const { return m_firewallThreatProtectionId; }
81 inline bool FirewallThreatProtectionIdHasBeenSet() const { return m_firewallThreatProtectionIdHasBeenSet; }
82 template <typename FirewallThreatProtectionIdT = Aws::String>
83 void SetFirewallThreatProtectionId(FirewallThreatProtectionIdT&& value) {
84 m_firewallThreatProtectionIdHasBeenSet = true;
85 m_firewallThreatProtectionId = std::forward<FirewallThreatProtectionIdT>(value);
86 }
87 template <typename FirewallThreatProtectionIdT = Aws::String>
88 FirewallRule& WithFirewallThreatProtectionId(FirewallThreatProtectionIdT&& value) {
89 SetFirewallThreatProtectionId(std::forward<FirewallThreatProtectionIdT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetName() const { return m_name; }
99 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
100 template <typename NameT = Aws::String>
101 void SetName(NameT&& value) {
102 m_nameHasBeenSet = true;
103 m_name = std::forward<NameT>(value);
104 }
105 template <typename NameT = Aws::String>
106 FirewallRule& WithName(NameT&& value) {
107 SetName(std::forward<NameT>(value));
108 return *this;
109 }
111
113
118 inline int GetPriority() const { return m_priority; }
119 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
120 inline void SetPriority(int value) {
121 m_priorityHasBeenSet = true;
122 m_priority = value;
123 }
124 inline FirewallRule& WithPriority(int value) {
125 SetPriority(value);
126 return *this;
127 }
129
131
141 inline Action GetAction() const { return m_action; }
142 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
143 inline void SetAction(Action value) {
144 m_actionHasBeenSet = true;
145 m_action = value;
146 }
148 SetAction(value);
149 return *this;
150 }
152
154
164 inline BlockResponse GetBlockResponse() const { return m_blockResponse; }
165 inline bool BlockResponseHasBeenSet() const { return m_blockResponseHasBeenSet; }
166 inline void SetBlockResponse(BlockResponse value) {
167 m_blockResponseHasBeenSet = true;
168 m_blockResponse = value;
169 }
171 SetBlockResponse(value);
172 return *this;
173 }
175
177
182 inline const Aws::String& GetBlockOverrideDomain() const { return m_blockOverrideDomain; }
183 inline bool BlockOverrideDomainHasBeenSet() const { return m_blockOverrideDomainHasBeenSet; }
184 template <typename BlockOverrideDomainT = Aws::String>
185 void SetBlockOverrideDomain(BlockOverrideDomainT&& value) {
186 m_blockOverrideDomainHasBeenSet = true;
187 m_blockOverrideDomain = std::forward<BlockOverrideDomainT>(value);
188 }
189 template <typename BlockOverrideDomainT = Aws::String>
190 FirewallRule& WithBlockOverrideDomain(BlockOverrideDomainT&& value) {
191 SetBlockOverrideDomain(std::forward<BlockOverrideDomainT>(value));
192 return *this;
193 }
195
197
203 inline BlockOverrideDnsType GetBlockOverrideDnsType() const { return m_blockOverrideDnsType; }
204 inline bool BlockOverrideDnsTypeHasBeenSet() const { return m_blockOverrideDnsTypeHasBeenSet; }
206 m_blockOverrideDnsTypeHasBeenSet = true;
207 m_blockOverrideDnsType = value;
208 }
211 return *this;
212 }
214
216
222 inline int GetBlockOverrideTtl() const { return m_blockOverrideTtl; }
223 inline bool BlockOverrideTtlHasBeenSet() const { return m_blockOverrideTtlHasBeenSet; }
224 inline void SetBlockOverrideTtl(int value) {
225 m_blockOverrideTtlHasBeenSet = true;
226 m_blockOverrideTtl = value;
227 }
229 SetBlockOverrideTtl(value);
230 return *this;
231 }
233
235
240 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
241 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
242 template <typename CreatorRequestIdT = Aws::String>
243 void SetCreatorRequestId(CreatorRequestIdT&& value) {
244 m_creatorRequestIdHasBeenSet = true;
245 m_creatorRequestId = std::forward<CreatorRequestIdT>(value);
246 }
247 template <typename CreatorRequestIdT = Aws::String>
248 FirewallRule& WithCreatorRequestId(CreatorRequestIdT&& value) {
249 SetCreatorRequestId(std::forward<CreatorRequestIdT>(value));
250 return *this;
251 }
253
255
259 inline const Aws::String& GetCreationTime() const { return m_creationTime; }
260 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
261 template <typename CreationTimeT = Aws::String>
262 void SetCreationTime(CreationTimeT&& value) {
263 m_creationTimeHasBeenSet = true;
264 m_creationTime = std::forward<CreationTimeT>(value);
265 }
266 template <typename CreationTimeT = Aws::String>
267 FirewallRule& WithCreationTime(CreationTimeT&& value) {
268 SetCreationTime(std::forward<CreationTimeT>(value));
269 return *this;
270 }
272
274
278 inline const Aws::String& GetModificationTime() const { return m_modificationTime; }
279 inline bool ModificationTimeHasBeenSet() const { return m_modificationTimeHasBeenSet; }
280 template <typename ModificationTimeT = Aws::String>
281 void SetModificationTime(ModificationTimeT&& value) {
282 m_modificationTimeHasBeenSet = true;
283 m_modificationTime = std::forward<ModificationTimeT>(value);
284 }
285 template <typename ModificationTimeT = Aws::String>
286 FirewallRule& WithModificationTime(ModificationTimeT&& value) {
287 SetModificationTime(std::forward<ModificationTimeT>(value));
288 return *this;
289 }
291
293
302 inline FirewallDomainRedirectionAction GetFirewallDomainRedirectionAction() const { return m_firewallDomainRedirectionAction; }
303 inline bool FirewallDomainRedirectionActionHasBeenSet() const { return m_firewallDomainRedirectionActionHasBeenSet; }
305 m_firewallDomainRedirectionActionHasBeenSet = true;
306 m_firewallDomainRedirectionAction = value;
307 }
310 return *this;
311 }
313
315
334 inline const Aws::String& GetQtype() const { return m_qtype; }
335 inline bool QtypeHasBeenSet() const { return m_qtypeHasBeenSet; }
336 template <typename QtypeT = Aws::String>
337 void SetQtype(QtypeT&& value) {
338 m_qtypeHasBeenSet = true;
339 m_qtype = std::forward<QtypeT>(value);
340 }
341 template <typename QtypeT = Aws::String>
342 FirewallRule& WithQtype(QtypeT&& value) {
343 SetQtype(std::forward<QtypeT>(value));
344 return *this;
345 }
347
349
358 inline DnsThreatProtection GetDnsThreatProtection() const { return m_dnsThreatProtection; }
359 inline bool DnsThreatProtectionHasBeenSet() const { return m_dnsThreatProtectionHasBeenSet; }
361 m_dnsThreatProtectionHasBeenSet = true;
362 m_dnsThreatProtection = value;
363 }
366 return *this;
367 }
369
371
380 inline ConfidenceThreshold GetConfidenceThreshold() const { return m_confidenceThreshold; }
381 inline bool ConfidenceThresholdHasBeenSet() const { return m_confidenceThresholdHasBeenSet; }
383 m_confidenceThresholdHasBeenSet = true;
384 m_confidenceThreshold = value;
385 }
388 return *this;
389 }
391 private:
392 Aws::String m_firewallRuleGroupId;
393
394 Aws::String m_firewallDomainListId;
395
396 Aws::String m_firewallThreatProtectionId;
397
398 Aws::String m_name;
399
400 int m_priority{0};
401
402 Action m_action{Action::NOT_SET};
403
404 BlockResponse m_blockResponse{BlockResponse::NOT_SET};
405
406 Aws::String m_blockOverrideDomain;
407
409
410 int m_blockOverrideTtl{0};
411
412 Aws::String m_creatorRequestId;
413
414 Aws::String m_creationTime;
415
416 Aws::String m_modificationTime;
417
419
420 Aws::String m_qtype;
421
423
425 bool m_firewallRuleGroupIdHasBeenSet = false;
426 bool m_firewallDomainListIdHasBeenSet = false;
427 bool m_firewallThreatProtectionIdHasBeenSet = false;
428 bool m_nameHasBeenSet = false;
429 bool m_priorityHasBeenSet = false;
430 bool m_actionHasBeenSet = false;
431 bool m_blockResponseHasBeenSet = false;
432 bool m_blockOverrideDomainHasBeenSet = false;
433 bool m_blockOverrideDnsTypeHasBeenSet = false;
434 bool m_blockOverrideTtlHasBeenSet = false;
435 bool m_creatorRequestIdHasBeenSet = false;
436 bool m_creationTimeHasBeenSet = false;
437 bool m_modificationTimeHasBeenSet = false;
438 bool m_firewallDomainRedirectionActionHasBeenSet = false;
439 bool m_qtypeHasBeenSet = false;
440 bool m_dnsThreatProtectionHasBeenSet = false;
441 bool m_confidenceThresholdHasBeenSet = false;
442};
443
444} // namespace Model
445} // namespace Route53Resolver
446} // 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)
void SetModificationTime(ModificationTimeT &&value)
const Aws::String & GetCreationTime() const
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)
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