AWS SDK for C++

AWS SDK for C++ Version 1.11.820

Loading...
Searching...
No Matches
CreateFirewallRuleEntry.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
36 public:
37 AWS_ROUTE53RESOLVER_API CreateFirewallRuleEntry() = default;
38 AWS_ROUTE53RESOLVER_API CreateFirewallRuleEntry(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
49 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
50 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
51 template <typename CreatorRequestIdT = Aws::String>
52 void SetCreatorRequestId(CreatorRequestIdT&& value) {
53 m_creatorRequestIdHasBeenSet = true;
54 m_creatorRequestId = std::forward<CreatorRequestIdT>(value);
55 }
56 template <typename CreatorRequestIdT = Aws::String>
57 CreateFirewallRuleEntry& WithCreatorRequestId(CreatorRequestIdT&& value) {
58 SetCreatorRequestId(std::forward<CreatorRequestIdT>(value));
59 return *this;
60 }
62
64
68 inline const Aws::String& GetFirewallRuleGroupId() const { return m_firewallRuleGroupId; }
69 inline bool FirewallRuleGroupIdHasBeenSet() const { return m_firewallRuleGroupIdHasBeenSet; }
70 template <typename FirewallRuleGroupIdT = Aws::String>
71 void SetFirewallRuleGroupId(FirewallRuleGroupIdT&& value) {
72 m_firewallRuleGroupIdHasBeenSet = true;
73 m_firewallRuleGroupId = std::forward<FirewallRuleGroupIdT>(value);
74 }
75 template <typename FirewallRuleGroupIdT = Aws::String>
76 CreateFirewallRuleEntry& WithFirewallRuleGroupId(FirewallRuleGroupIdT&& value) {
77 SetFirewallRuleGroupId(std::forward<FirewallRuleGroupIdT>(value));
78 return *this;
79 }
81
83
88 inline const Aws::String& GetFirewallDomainListId() const { return m_firewallDomainListId; }
89 inline bool FirewallDomainListIdHasBeenSet() const { return m_firewallDomainListIdHasBeenSet; }
90 template <typename FirewallDomainListIdT = Aws::String>
91 void SetFirewallDomainListId(FirewallDomainListIdT&& value) {
92 m_firewallDomainListIdHasBeenSet = true;
93 m_firewallDomainListId = std::forward<FirewallDomainListIdT>(value);
94 }
95 template <typename FirewallDomainListIdT = Aws::String>
96 CreateFirewallRuleEntry& WithFirewallDomainListId(FirewallDomainListIdT&& value) {
97 SetFirewallDomainListId(std::forward<FirewallDomainListIdT>(value));
98 return *this;
99 }
101
103
108 inline int GetPriority() const { return m_priority; }
109 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
110 inline void SetPriority(int value) {
111 m_priorityHasBeenSet = true;
112 m_priority = value;
113 }
115 SetPriority(value);
116 return *this;
117 }
119
121
131 inline Action GetAction() const { return m_action; }
132 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
133 inline void SetAction(Action value) {
134 m_actionHasBeenSet = true;
135 m_action = value;
136 }
138 SetAction(value);
139 return *this;
140 }
142
144
154 inline BlockResponse GetBlockResponse() const { return m_blockResponse; }
155 inline bool BlockResponseHasBeenSet() const { return m_blockResponseHasBeenSet; }
156 inline void SetBlockResponse(BlockResponse value) {
157 m_blockResponseHasBeenSet = true;
158 m_blockResponse = value;
159 }
161 SetBlockResponse(value);
162 return *this;
163 }
165
167
172 inline const Aws::String& GetBlockOverrideDomain() const { return m_blockOverrideDomain; }
173 inline bool BlockOverrideDomainHasBeenSet() const { return m_blockOverrideDomainHasBeenSet; }
174 template <typename BlockOverrideDomainT = Aws::String>
175 void SetBlockOverrideDomain(BlockOverrideDomainT&& value) {
176 m_blockOverrideDomainHasBeenSet = true;
177 m_blockOverrideDomain = std::forward<BlockOverrideDomainT>(value);
178 }
179 template <typename BlockOverrideDomainT = Aws::String>
180 CreateFirewallRuleEntry& WithBlockOverrideDomain(BlockOverrideDomainT&& value) {
181 SetBlockOverrideDomain(std::forward<BlockOverrideDomainT>(value));
182 return *this;
183 }
185
187
193 inline BlockOverrideDnsType GetBlockOverrideDnsType() const { return m_blockOverrideDnsType; }
194 inline bool BlockOverrideDnsTypeHasBeenSet() const { return m_blockOverrideDnsTypeHasBeenSet; }
196 m_blockOverrideDnsTypeHasBeenSet = true;
197 m_blockOverrideDnsType = value;
198 }
201 return *this;
202 }
204
206
213 inline int GetBlockOverrideTtl() const { return m_blockOverrideTtl; }
214 inline bool BlockOverrideTtlHasBeenSet() const { return m_blockOverrideTtlHasBeenSet; }
215 inline void SetBlockOverrideTtl(int value) {
216 m_blockOverrideTtlHasBeenSet = true;
217 m_blockOverrideTtl = value;
218 }
220 SetBlockOverrideTtl(value);
221 return *this;
222 }
224
226
229 inline const Aws::String& GetName() const { return m_name; }
230 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
231 template <typename NameT = Aws::String>
232 void SetName(NameT&& value) {
233 m_nameHasBeenSet = true;
234 m_name = std::forward<NameT>(value);
235 }
236 template <typename NameT = Aws::String>
238 SetName(std::forward<NameT>(value));
239 return *this;
240 }
242
244
253 inline FirewallDomainRedirectionAction GetFirewallDomainRedirectionAction() const { return m_firewallDomainRedirectionAction; }
254 inline bool FirewallDomainRedirectionActionHasBeenSet() const { return m_firewallDomainRedirectionActionHasBeenSet; }
256 m_firewallDomainRedirectionActionHasBeenSet = true;
257 m_firewallDomainRedirectionAction = value;
258 }
261 return *this;
262 }
264
266
285 inline const Aws::String& GetQtype() const { return m_qtype; }
286 inline bool QtypeHasBeenSet() const { return m_qtypeHasBeenSet; }
287 template <typename QtypeT = Aws::String>
288 void SetQtype(QtypeT&& value) {
289 m_qtypeHasBeenSet = true;
290 m_qtype = std::forward<QtypeT>(value);
291 }
292 template <typename QtypeT = Aws::String>
294 SetQtype(std::forward<QtypeT>(value));
295 return *this;
296 }
298
300
313 inline DnsThreatProtection GetDnsThreatProtection() const { return m_dnsThreatProtection; }
314 inline bool DnsThreatProtectionHasBeenSet() const { return m_dnsThreatProtectionHasBeenSet; }
316 m_dnsThreatProtectionHasBeenSet = true;
317 m_dnsThreatProtection = value;
318 }
321 return *this;
322 }
324
326
335 inline ConfidenceThreshold GetConfidenceThreshold() const { return m_confidenceThreshold; }
336 inline bool ConfidenceThresholdHasBeenSet() const { return m_confidenceThresholdHasBeenSet; }
338 m_confidenceThresholdHasBeenSet = true;
339 m_confidenceThreshold = value;
340 }
343 return *this;
344 }
346
348
353 inline const FirewallRuleType& GetFirewallRuleType() const { return m_firewallRuleType; }
354 inline bool FirewallRuleTypeHasBeenSet() const { return m_firewallRuleTypeHasBeenSet; }
355 template <typename FirewallRuleTypeT = FirewallRuleType>
356 void SetFirewallRuleType(FirewallRuleTypeT&& value) {
357 m_firewallRuleTypeHasBeenSet = true;
358 m_firewallRuleType = std::forward<FirewallRuleTypeT>(value);
359 }
360 template <typename FirewallRuleTypeT = FirewallRuleType>
361 CreateFirewallRuleEntry& WithFirewallRuleType(FirewallRuleTypeT&& value) {
362 SetFirewallRuleType(std::forward<FirewallRuleTypeT>(value));
363 return *this;
364 }
366 private:
367 Aws::String m_creatorRequestId;
368
369 Aws::String m_firewallRuleGroupId;
370
371 Aws::String m_firewallDomainListId;
372
373 int m_priority{0};
374
375 Action m_action{Action::NOT_SET};
376
377 BlockResponse m_blockResponse{BlockResponse::NOT_SET};
378
379 Aws::String m_blockOverrideDomain;
380
382
383 int m_blockOverrideTtl{0};
384
385 Aws::String m_name;
386
388
389 Aws::String m_qtype;
390
392
394
395 FirewallRuleType m_firewallRuleType;
396 bool m_creatorRequestIdHasBeenSet = false;
397 bool m_firewallRuleGroupIdHasBeenSet = false;
398 bool m_firewallDomainListIdHasBeenSet = false;
399 bool m_priorityHasBeenSet = false;
400 bool m_actionHasBeenSet = false;
401 bool m_blockResponseHasBeenSet = false;
402 bool m_blockOverrideDomainHasBeenSet = false;
403 bool m_blockOverrideDnsTypeHasBeenSet = false;
404 bool m_blockOverrideTtlHasBeenSet = false;
405 bool m_nameHasBeenSet = false;
406 bool m_firewallDomainRedirectionActionHasBeenSet = false;
407 bool m_qtypeHasBeenSet = false;
408 bool m_dnsThreatProtectionHasBeenSet = false;
409 bool m_confidenceThresholdHasBeenSet = false;
410 bool m_firewallRuleTypeHasBeenSet = false;
411};
412
413} // namespace Model
414} // namespace Route53Resolver
415} // namespace Aws
bool PriorityHasBeenSet() const
bool BlockOverrideTtlHasBeenSet() const
bool FirewallDomainListIdHasBeenSet() const
void SetBlockOverrideDomain(BlockOverrideDomainT &&value)
CreateFirewallRuleEntry & WithBlockResponse(BlockResponse value)
AWS_ROUTE53RESOLVER_API CreateFirewallRuleEntry(Aws::Utils::Json::JsonView jsonValue)
DnsThreatProtection GetDnsThreatProtection() const
bool CreatorRequestIdHasBeenSet() const
void SetCreatorRequestId(CreatorRequestIdT &&value)
bool NameHasBeenSet() const
Action GetAction() const
bool FirewallRuleTypeHasBeenSet() const
CreateFirewallRuleEntry & WithFirewallDomainListId(FirewallDomainListIdT &&value)
CreateFirewallRuleEntry & WithCreatorRequestId(CreatorRequestIdT &&value)
void SetQtype(QtypeT &&value)
const Aws::String & GetName() const
bool ActionHasBeenSet() const
void SetPriority(int value)
bool FirewallRuleGroupIdHasBeenSet() const
CreateFirewallRuleEntry & WithName(NameT &&value)
void SetConfidenceThreshold(ConfidenceThreshold value)
BlockOverrideDnsType GetBlockOverrideDnsType() const
void SetFirewallDomainRedirectionAction(FirewallDomainRedirectionAction value)
CreateFirewallRuleEntry & WithConfidenceThreshold(ConfidenceThreshold value)
void SetFirewallRuleGroupId(FirewallRuleGroupIdT &&value)
const Aws::String & GetFirewallDomainListId() const
bool BlockOverrideDnsTypeHasBeenSet() const
AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const
bool DnsThreatProtectionHasBeenSet() const
const FirewallRuleType & GetFirewallRuleType() const
AWS_ROUTE53RESOLVER_API CreateFirewallRuleEntry()=default
CreateFirewallRuleEntry & WithBlockOverrideDomain(BlockOverrideDomainT &&value)
CreateFirewallRuleEntry & WithBlockOverrideTtl(int value)
void SetBlockResponse(BlockResponse value)
CreateFirewallRuleEntry & WithFirewallRuleType(FirewallRuleTypeT &&value)
CreateFirewallRuleEntry & WithFirewallDomainRedirectionAction(FirewallDomainRedirectionAction value)
bool QtypeHasBeenSet() const
void SetBlockOverrideDnsType(BlockOverrideDnsType value)
BlockResponse GetBlockResponse() const
void SetFirewallRuleType(FirewallRuleTypeT &&value)
ConfidenceThreshold GetConfidenceThreshold() const
void SetAction(Action value)
bool ConfidenceThresholdHasBeenSet() const
CreateFirewallRuleEntry & WithAction(Action value)
CreateFirewallRuleEntry & WithBlockOverrideDnsType(BlockOverrideDnsType value)
bool BlockOverrideDomainHasBeenSet() const
const Aws::String & GetBlockOverrideDomain() const
CreateFirewallRuleEntry & WithQtype(QtypeT &&value)
const Aws::String & GetQtype() const
int GetBlockOverrideTtl() const
AWS_ROUTE53RESOLVER_API CreateFirewallRuleEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
bool BlockResponseHasBeenSet() const
CreateFirewallRuleEntry & WithFirewallRuleGroupId(FirewallRuleGroupIdT &&value)
void SetName(NameT &&value)
const Aws::String & GetFirewallRuleGroupId() const
void SetDnsThreatProtection(DnsThreatProtection value)
CreateFirewallRuleEntry & WithPriority(int value)
FirewallDomainRedirectionAction GetFirewallDomainRedirectionAction() const
void SetFirewallDomainListId(FirewallDomainListIdT &&value)
int GetPriority() const
bool FirewallDomainRedirectionActionHasBeenSet() const
const Aws::String & GetCreatorRequestId() const
void SetBlockOverrideTtl(int value)
CreateFirewallRuleEntry & WithDnsThreatProtection(DnsThreatProtection value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue