AWS SDK for C++

AWS SDK for C++ Version 1.11.820

Loading...
Searching...
No Matches
UpdateFirewallRuleEntry.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 UpdateFirewallRuleEntry() = default;
38 AWS_ROUTE53RESOLVER_API UpdateFirewallRuleEntry(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetFirewallRuleGroupId() const { return m_firewallRuleGroupId; }
47 inline bool FirewallRuleGroupIdHasBeenSet() const { return m_firewallRuleGroupIdHasBeenSet; }
48 template <typename FirewallRuleGroupIdT = Aws::String>
49 void SetFirewallRuleGroupId(FirewallRuleGroupIdT&& value) {
50 m_firewallRuleGroupIdHasBeenSet = true;
51 m_firewallRuleGroupId = std::forward<FirewallRuleGroupIdT>(value);
52 }
53 template <typename FirewallRuleGroupIdT = Aws::String>
54 UpdateFirewallRuleEntry& WithFirewallRuleGroupId(FirewallRuleGroupIdT&& value) {
55 SetFirewallRuleGroupId(std::forward<FirewallRuleGroupIdT>(value));
56 return *this;
57 }
59
61
66 inline const Aws::String& GetFirewallDomainListId() const { return m_firewallDomainListId; }
67 inline bool FirewallDomainListIdHasBeenSet() const { return m_firewallDomainListIdHasBeenSet; }
68 template <typename FirewallDomainListIdT = Aws::String>
69 void SetFirewallDomainListId(FirewallDomainListIdT&& value) {
70 m_firewallDomainListIdHasBeenSet = true;
71 m_firewallDomainListId = std::forward<FirewallDomainListIdT>(value);
72 }
73 template <typename FirewallDomainListIdT = Aws::String>
74 UpdateFirewallRuleEntry& WithFirewallDomainListId(FirewallDomainListIdT&& value) {
75 SetFirewallDomainListId(std::forward<FirewallDomainListIdT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetFirewallThreatProtectionId() const { return m_firewallThreatProtectionId; }
85 inline bool FirewallThreatProtectionIdHasBeenSet() const { return m_firewallThreatProtectionIdHasBeenSet; }
86 template <typename FirewallThreatProtectionIdT = Aws::String>
87 void SetFirewallThreatProtectionId(FirewallThreatProtectionIdT&& value) {
88 m_firewallThreatProtectionIdHasBeenSet = true;
89 m_firewallThreatProtectionId = std::forward<FirewallThreatProtectionIdT>(value);
90 }
91 template <typename FirewallThreatProtectionIdT = Aws::String>
92 UpdateFirewallRuleEntry& WithFirewallThreatProtectionId(FirewallThreatProtectionIdT&& value) {
93 SetFirewallThreatProtectionId(std::forward<FirewallThreatProtectionIdT>(value));
94 return *this;
95 }
97
99
104 inline int GetPriority() const { return m_priority; }
105 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
106 inline void SetPriority(int value) {
107 m_priorityHasBeenSet = true;
108 m_priority = value;
109 }
111 SetPriority(value);
112 return *this;
113 }
115
117
127 inline Action GetAction() const { return m_action; }
128 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
129 inline void SetAction(Action value) {
130 m_actionHasBeenSet = true;
131 m_action = value;
132 }
134 SetAction(value);
135 return *this;
136 }
138
140
150 inline BlockResponse GetBlockResponse() const { return m_blockResponse; }
151 inline bool BlockResponseHasBeenSet() const { return m_blockResponseHasBeenSet; }
152 inline void SetBlockResponse(BlockResponse value) {
153 m_blockResponseHasBeenSet = true;
154 m_blockResponse = value;
155 }
157 SetBlockResponse(value);
158 return *this;
159 }
161
163
168 inline const Aws::String& GetBlockOverrideDomain() const { return m_blockOverrideDomain; }
169 inline bool BlockOverrideDomainHasBeenSet() const { return m_blockOverrideDomainHasBeenSet; }
170 template <typename BlockOverrideDomainT = Aws::String>
171 void SetBlockOverrideDomain(BlockOverrideDomainT&& value) {
172 m_blockOverrideDomainHasBeenSet = true;
173 m_blockOverrideDomain = std::forward<BlockOverrideDomainT>(value);
174 }
175 template <typename BlockOverrideDomainT = Aws::String>
176 UpdateFirewallRuleEntry& WithBlockOverrideDomain(BlockOverrideDomainT&& value) {
177 SetBlockOverrideDomain(std::forward<BlockOverrideDomainT>(value));
178 return *this;
179 }
181
183
189 inline BlockOverrideDnsType GetBlockOverrideDnsType() const { return m_blockOverrideDnsType; }
190 inline bool BlockOverrideDnsTypeHasBeenSet() const { return m_blockOverrideDnsTypeHasBeenSet; }
192 m_blockOverrideDnsTypeHasBeenSet = true;
193 m_blockOverrideDnsType = value;
194 }
197 return *this;
198 }
200
202
209 inline int GetBlockOverrideTtl() const { return m_blockOverrideTtl; }
210 inline bool BlockOverrideTtlHasBeenSet() const { return m_blockOverrideTtlHasBeenSet; }
211 inline void SetBlockOverrideTtl(int value) {
212 m_blockOverrideTtlHasBeenSet = true;
213 m_blockOverrideTtl = value;
214 }
216 SetBlockOverrideTtl(value);
217 return *this;
218 }
220
222
225 inline const Aws::String& GetName() const { return m_name; }
226 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
227 template <typename NameT = Aws::String>
228 void SetName(NameT&& value) {
229 m_nameHasBeenSet = true;
230 m_name = std::forward<NameT>(value);
231 }
232 template <typename NameT = Aws::String>
234 SetName(std::forward<NameT>(value));
235 return *this;
236 }
238
240
249 inline FirewallDomainRedirectionAction GetFirewallDomainRedirectionAction() const { return m_firewallDomainRedirectionAction; }
250 inline bool FirewallDomainRedirectionActionHasBeenSet() const { return m_firewallDomainRedirectionActionHasBeenSet; }
252 m_firewallDomainRedirectionActionHasBeenSet = true;
253 m_firewallDomainRedirectionAction = value;
254 }
257 return *this;
258 }
260
262
281 inline const Aws::String& GetQtype() const { return m_qtype; }
282 inline bool QtypeHasBeenSet() const { return m_qtypeHasBeenSet; }
283 template <typename QtypeT = Aws::String>
284 void SetQtype(QtypeT&& value) {
285 m_qtypeHasBeenSet = true;
286 m_qtype = std::forward<QtypeT>(value);
287 }
288 template <typename QtypeT = Aws::String>
290 SetQtype(std::forward<QtypeT>(value));
291 return *this;
292 }
294
296
309 inline DnsThreatProtection GetDnsThreatProtection() const { return m_dnsThreatProtection; }
310 inline bool DnsThreatProtectionHasBeenSet() const { return m_dnsThreatProtectionHasBeenSet; }
312 m_dnsThreatProtectionHasBeenSet = true;
313 m_dnsThreatProtection = value;
314 }
317 return *this;
318 }
320
322
331 inline ConfidenceThreshold GetConfidenceThreshold() const { return m_confidenceThreshold; }
332 inline bool ConfidenceThresholdHasBeenSet() const { return m_confidenceThresholdHasBeenSet; }
334 m_confidenceThresholdHasBeenSet = true;
335 m_confidenceThreshold = value;
336 }
339 return *this;
340 }
342
344
349 inline const FirewallRuleType& GetFirewallRuleType() const { return m_firewallRuleType; }
350 inline bool FirewallRuleTypeHasBeenSet() const { return m_firewallRuleTypeHasBeenSet; }
351 template <typename FirewallRuleTypeT = FirewallRuleType>
352 void SetFirewallRuleType(FirewallRuleTypeT&& value) {
353 m_firewallRuleTypeHasBeenSet = true;
354 m_firewallRuleType = std::forward<FirewallRuleTypeT>(value);
355 }
356 template <typename FirewallRuleTypeT = FirewallRuleType>
357 UpdateFirewallRuleEntry& WithFirewallRuleType(FirewallRuleTypeT&& value) {
358 SetFirewallRuleType(std::forward<FirewallRuleTypeT>(value));
359 return *this;
360 }
362 private:
363 Aws::String m_firewallRuleGroupId;
364
365 Aws::String m_firewallDomainListId;
366
367 Aws::String m_firewallThreatProtectionId;
368
369 int m_priority{0};
370
371 Action m_action{Action::NOT_SET};
372
373 BlockResponse m_blockResponse{BlockResponse::NOT_SET};
374
375 Aws::String m_blockOverrideDomain;
376
378
379 int m_blockOverrideTtl{0};
380
381 Aws::String m_name;
382
384
385 Aws::String m_qtype;
386
388
390
391 FirewallRuleType m_firewallRuleType;
392 bool m_firewallRuleGroupIdHasBeenSet = false;
393 bool m_firewallDomainListIdHasBeenSet = false;
394 bool m_firewallThreatProtectionIdHasBeenSet = false;
395 bool m_priorityHasBeenSet = false;
396 bool m_actionHasBeenSet = false;
397 bool m_blockResponseHasBeenSet = false;
398 bool m_blockOverrideDomainHasBeenSet = false;
399 bool m_blockOverrideDnsTypeHasBeenSet = false;
400 bool m_blockOverrideTtlHasBeenSet = false;
401 bool m_nameHasBeenSet = false;
402 bool m_firewallDomainRedirectionActionHasBeenSet = false;
403 bool m_qtypeHasBeenSet = false;
404 bool m_dnsThreatProtectionHasBeenSet = false;
405 bool m_confidenceThresholdHasBeenSet = false;
406 bool m_firewallRuleTypeHasBeenSet = false;
407};
408
409} // namespace Model
410} // namespace Route53Resolver
411} // namespace Aws
UpdateFirewallRuleEntry & WithAction(Action value)
const Aws::String & GetFirewallThreatProtectionId() const
void SetFirewallRuleType(FirewallRuleTypeT &&value)
UpdateFirewallRuleEntry & WithFirewallDomainListId(FirewallDomainListIdT &&value)
bool FirewallDomainListIdHasBeenSet() const
bool ConfidenceThresholdHasBeenSet() const
const FirewallRuleType & GetFirewallRuleType() const
void SetConfidenceThreshold(ConfidenceThreshold value)
void SetDnsThreatProtection(DnsThreatProtection value)
AWS_ROUTE53RESOLVER_API UpdateFirewallRuleEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(NameT &&value)
bool DnsThreatProtectionHasBeenSet() const
FirewallDomainRedirectionAction GetFirewallDomainRedirectionAction() const
bool BlockOverrideDomainHasBeenSet() const
UpdateFirewallRuleEntry & WithBlockOverrideDomain(BlockOverrideDomainT &&value)
UpdateFirewallRuleEntry & WithBlockOverrideDnsType(BlockOverrideDnsType value)
void SetBlockResponse(BlockResponse value)
void SetFirewallDomainListId(FirewallDomainListIdT &&value)
AWS_ROUTE53RESOLVER_API UpdateFirewallRuleEntry(Aws::Utils::Json::JsonView jsonValue)
UpdateFirewallRuleEntry & WithFirewallRuleGroupId(FirewallRuleGroupIdT &&value)
const Aws::String & GetBlockOverrideDomain() const
bool FirewallRuleGroupIdHasBeenSet() const
bool NameHasBeenSet() const
void SetFirewallDomainRedirectionAction(FirewallDomainRedirectionAction value)
void SetBlockOverrideTtl(int value)
bool ActionHasBeenSet() const
UpdateFirewallRuleEntry & WithFirewallThreatProtectionId(FirewallThreatProtectionIdT &&value)
BlockResponse GetBlockResponse() const
const Aws::String & GetQtype() const
bool FirewallRuleTypeHasBeenSet() const
void SetAction(Action value)
AWS_ROUTE53RESOLVER_API UpdateFirewallRuleEntry()=default
bool BlockResponseHasBeenSet() const
UpdateFirewallRuleEntry & WithConfidenceThreshold(ConfidenceThreshold value)
const Aws::String & GetName() const
bool BlockOverrideDnsTypeHasBeenSet() const
DnsThreatProtection GetDnsThreatProtection() const
const Aws::String & GetFirewallDomainListId() const
const Aws::String & GetFirewallRuleGroupId() const
bool QtypeHasBeenSet() const
void SetBlockOverrideDnsType(BlockOverrideDnsType value)
AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const
UpdateFirewallRuleEntry & WithBlockResponse(BlockResponse value)
void SetPriority(int value)
int GetBlockOverrideTtl() const
UpdateFirewallRuleEntry & WithQtype(QtypeT &&value)
void SetFirewallThreatProtectionId(FirewallThreatProtectionIdT &&value)
int GetPriority() const
bool BlockOverrideTtlHasBeenSet() const
Action GetAction() const
bool FirewallThreatProtectionIdHasBeenSet() const
UpdateFirewallRuleEntry & WithDnsThreatProtection(DnsThreatProtection value)
UpdateFirewallRuleEntry & WithBlockOverrideTtl(int value)
UpdateFirewallRuleEntry & WithPriority(int value)
UpdateFirewallRuleEntry & WithFirewallDomainRedirectionAction(FirewallDomainRedirectionAction value)
UpdateFirewallRuleEntry & WithName(NameT &&value)
void SetFirewallRuleGroupId(FirewallRuleGroupIdT &&value)
UpdateFirewallRuleEntry & WithFirewallRuleType(FirewallRuleTypeT &&value)
void SetQtype(QtypeT &&value)
ConfidenceThreshold GetConfidenceThreshold() const
bool PriorityHasBeenSet() const
bool FirewallDomainRedirectionActionHasBeenSet() const
BlockOverrideDnsType GetBlockOverrideDnsType() const
void SetBlockOverrideDomain(BlockOverrideDomainT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue