AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
FirewallRule.h
1
6#pragma once
7#include <aws/route53resolver/Route53Resolver_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/route53resolver/model/Action.h>
10#include <aws/route53resolver/model/BlockResponse.h>
11#include <aws/route53resolver/model/BlockOverrideDnsType.h>
12#include <aws/route53resolver/model/FirewallDomainRedirectionAction.h>
13#include <aws/route53resolver/model/DnsThreatProtection.h>
14#include <aws/route53resolver/model/ConfidenceThreshold.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Route53Resolver
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_ROUTE53RESOLVER_API FirewallRule() = default;
41 AWS_ROUTE53RESOLVER_API FirewallRule(Aws::Utils::Json::JsonView jsonValue);
42 AWS_ROUTE53RESOLVER_API FirewallRule& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetFirewallRuleGroupId() const { return m_firewallRuleGroupId; }
51 inline bool FirewallRuleGroupIdHasBeenSet() const { return m_firewallRuleGroupIdHasBeenSet; }
52 template<typename FirewallRuleGroupIdT = Aws::String>
53 void SetFirewallRuleGroupId(FirewallRuleGroupIdT&& value) { m_firewallRuleGroupIdHasBeenSet = true; m_firewallRuleGroupId = std::forward<FirewallRuleGroupIdT>(value); }
54 template<typename FirewallRuleGroupIdT = Aws::String>
55 FirewallRule& WithFirewallRuleGroupId(FirewallRuleGroupIdT&& value) { SetFirewallRuleGroupId(std::forward<FirewallRuleGroupIdT>(value)); return *this;}
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) { m_firewallDomainListIdHasBeenSet = true; m_firewallDomainListId = std::forward<FirewallDomainListIdT>(value); }
66 template<typename FirewallDomainListIdT = Aws::String>
67 FirewallRule& WithFirewallDomainListId(FirewallDomainListIdT&& value) { SetFirewallDomainListId(std::forward<FirewallDomainListIdT>(value)); return *this;}
69
71
74 inline const Aws::String& GetFirewallThreatProtectionId() const { return m_firewallThreatProtectionId; }
75 inline bool FirewallThreatProtectionIdHasBeenSet() const { return m_firewallThreatProtectionIdHasBeenSet; }
76 template<typename FirewallThreatProtectionIdT = Aws::String>
77 void SetFirewallThreatProtectionId(FirewallThreatProtectionIdT&& value) { m_firewallThreatProtectionIdHasBeenSet = true; m_firewallThreatProtectionId = std::forward<FirewallThreatProtectionIdT>(value); }
78 template<typename FirewallThreatProtectionIdT = Aws::String>
79 FirewallRule& WithFirewallThreatProtectionId(FirewallThreatProtectionIdT&& value) { SetFirewallThreatProtectionId(std::forward<FirewallThreatProtectionIdT>(value)); return *this;}
81
83
86 inline const Aws::String& GetName() const { return m_name; }
87 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
88 template<typename NameT = Aws::String>
89 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
90 template<typename NameT = Aws::String>
91 FirewallRule& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
93
95
100 inline int GetPriority() const { return m_priority; }
101 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
102 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
103 inline FirewallRule& WithPriority(int value) { SetPriority(value); return *this;}
105
107
117 inline Action GetAction() const { return m_action; }
118 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
119 inline void SetAction(Action value) { m_actionHasBeenSet = true; m_action = value; }
120 inline FirewallRule& WithAction(Action value) { SetAction(value); return *this;}
122
124
134 inline BlockResponse GetBlockResponse() const { return m_blockResponse; }
135 inline bool BlockResponseHasBeenSet() const { return m_blockResponseHasBeenSet; }
136 inline void SetBlockResponse(BlockResponse value) { m_blockResponseHasBeenSet = true; m_blockResponse = value; }
137 inline FirewallRule& WithBlockResponse(BlockResponse value) { SetBlockResponse(value); return *this;}
139
141
146 inline const Aws::String& GetBlockOverrideDomain() const { return m_blockOverrideDomain; }
147 inline bool BlockOverrideDomainHasBeenSet() const { return m_blockOverrideDomainHasBeenSet; }
148 template<typename BlockOverrideDomainT = Aws::String>
149 void SetBlockOverrideDomain(BlockOverrideDomainT&& value) { m_blockOverrideDomainHasBeenSet = true; m_blockOverrideDomain = std::forward<BlockOverrideDomainT>(value); }
150 template<typename BlockOverrideDomainT = Aws::String>
151 FirewallRule& WithBlockOverrideDomain(BlockOverrideDomainT&& value) { SetBlockOverrideDomain(std::forward<BlockOverrideDomainT>(value)); return *this;}
153
155
161 inline BlockOverrideDnsType GetBlockOverrideDnsType() const { return m_blockOverrideDnsType; }
162 inline bool BlockOverrideDnsTypeHasBeenSet() const { return m_blockOverrideDnsTypeHasBeenSet; }
163 inline void SetBlockOverrideDnsType(BlockOverrideDnsType value) { m_blockOverrideDnsTypeHasBeenSet = true; m_blockOverrideDnsType = value; }
166
168
174 inline int GetBlockOverrideTtl() const { return m_blockOverrideTtl; }
175 inline bool BlockOverrideTtlHasBeenSet() const { return m_blockOverrideTtlHasBeenSet; }
176 inline void SetBlockOverrideTtl(int value) { m_blockOverrideTtlHasBeenSet = true; m_blockOverrideTtl = value; }
177 inline FirewallRule& WithBlockOverrideTtl(int value) { SetBlockOverrideTtl(value); return *this;}
179
181
186 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
187 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
188 template<typename CreatorRequestIdT = Aws::String>
189 void SetCreatorRequestId(CreatorRequestIdT&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::forward<CreatorRequestIdT>(value); }
190 template<typename CreatorRequestIdT = Aws::String>
191 FirewallRule& WithCreatorRequestId(CreatorRequestIdT&& value) { SetCreatorRequestId(std::forward<CreatorRequestIdT>(value)); return *this;}
193
195
199 inline const Aws::String& GetCreationTime() const { return m_creationTime; }
200 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
201 template<typename CreationTimeT = Aws::String>
202 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
203 template<typename CreationTimeT = Aws::String>
204 FirewallRule& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
206
208
212 inline const Aws::String& GetModificationTime() const { return m_modificationTime; }
213 inline bool ModificationTimeHasBeenSet() const { return m_modificationTimeHasBeenSet; }
214 template<typename ModificationTimeT = Aws::String>
215 void SetModificationTime(ModificationTimeT&& value) { m_modificationTimeHasBeenSet = true; m_modificationTime = std::forward<ModificationTimeT>(value); }
216 template<typename ModificationTimeT = Aws::String>
217 FirewallRule& WithModificationTime(ModificationTimeT&& value) { SetModificationTime(std::forward<ModificationTimeT>(value)); return *this;}
219
221
230 inline FirewallDomainRedirectionAction GetFirewallDomainRedirectionAction() const { return m_firewallDomainRedirectionAction; }
231 inline bool FirewallDomainRedirectionActionHasBeenSet() const { return m_firewallDomainRedirectionActionHasBeenSet; }
232 inline void SetFirewallDomainRedirectionAction(FirewallDomainRedirectionAction value) { m_firewallDomainRedirectionActionHasBeenSet = true; m_firewallDomainRedirectionAction = value; }
235
237
256 inline const Aws::String& GetQtype() const { return m_qtype; }
257 inline bool QtypeHasBeenSet() const { return m_qtypeHasBeenSet; }
258 template<typename QtypeT = Aws::String>
259 void SetQtype(QtypeT&& value) { m_qtypeHasBeenSet = true; m_qtype = std::forward<QtypeT>(value); }
260 template<typename QtypeT = Aws::String>
261 FirewallRule& WithQtype(QtypeT&& value) { SetQtype(std::forward<QtypeT>(value)); return *this;}
263
265
274 inline DnsThreatProtection GetDnsThreatProtection() const { return m_dnsThreatProtection; }
275 inline bool DnsThreatProtectionHasBeenSet() const { return m_dnsThreatProtectionHasBeenSet; }
276 inline void SetDnsThreatProtection(DnsThreatProtection value) { m_dnsThreatProtectionHasBeenSet = true; m_dnsThreatProtection = value; }
279
281
290 inline ConfidenceThreshold GetConfidenceThreshold() const { return m_confidenceThreshold; }
291 inline bool ConfidenceThresholdHasBeenSet() const { return m_confidenceThresholdHasBeenSet; }
292 inline void SetConfidenceThreshold(ConfidenceThreshold value) { m_confidenceThresholdHasBeenSet = true; m_confidenceThreshold = value; }
295 private:
296
297 Aws::String m_firewallRuleGroupId;
298 bool m_firewallRuleGroupIdHasBeenSet = false;
299
300 Aws::String m_firewallDomainListId;
301 bool m_firewallDomainListIdHasBeenSet = false;
302
303 Aws::String m_firewallThreatProtectionId;
304 bool m_firewallThreatProtectionIdHasBeenSet = false;
305
306 Aws::String m_name;
307 bool m_nameHasBeenSet = false;
308
309 int m_priority{0};
310 bool m_priorityHasBeenSet = false;
311
312 Action m_action{Action::NOT_SET};
313 bool m_actionHasBeenSet = false;
314
315 BlockResponse m_blockResponse{BlockResponse::NOT_SET};
316 bool m_blockResponseHasBeenSet = false;
317
318 Aws::String m_blockOverrideDomain;
319 bool m_blockOverrideDomainHasBeenSet = false;
320
322 bool m_blockOverrideDnsTypeHasBeenSet = false;
323
324 int m_blockOverrideTtl{0};
325 bool m_blockOverrideTtlHasBeenSet = false;
326
327 Aws::String m_creatorRequestId;
328 bool m_creatorRequestIdHasBeenSet = false;
329
330 Aws::String m_creationTime;
331 bool m_creationTimeHasBeenSet = false;
332
333 Aws::String m_modificationTime;
334 bool m_modificationTimeHasBeenSet = false;
335
337 bool m_firewallDomainRedirectionActionHasBeenSet = false;
338
339 Aws::String m_qtype;
340 bool m_qtypeHasBeenSet = false;
341
343 bool m_dnsThreatProtectionHasBeenSet = false;
344
346 bool m_confidenceThresholdHasBeenSet = false;
347 };
348
349} // namespace Model
350} // namespace Route53Resolver
351} // 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