AWS SDK for C++

AWS SDK for C++ Version 1.11.844

Loading...
Searching...
No Matches
UpdateFirewallRuleRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/route53resolver/Route53ResolverRequest.h>
9#include <aws/route53resolver/Route53Resolver_EXPORTS.h>
10#include <aws/route53resolver/model/Action.h>
11#include <aws/route53resolver/model/BlockOverrideDnsType.h>
12#include <aws/route53resolver/model/BlockResponse.h>
13#include <aws/route53resolver/model/ConfidenceThreshold.h>
14#include <aws/route53resolver/model/DnsThreatProtection.h>
15#include <aws/route53resolver/model/FirewallDomainRedirectionAction.h>
16#include <aws/route53resolver/model/FirewallRuleType.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Route53Resolver {
22namespace Model {
23
27 public:
28 AWS_ROUTE53RESOLVER_API UpdateFirewallRuleRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateFirewallRule"; }
35
36 AWS_ROUTE53RESOLVER_API Aws::String SerializePayload() const override;
37
38 AWS_ROUTE53RESOLVER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
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 UpdateFirewallRuleRequest& 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 UpdateFirewallRuleRequest& 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 UpdateFirewallRuleRequest& WithFirewallThreatProtectionId(FirewallThreatProtectionIdT&& value) {
89 SetFirewallThreatProtectionId(std::forward<FirewallThreatProtectionIdT>(value));
90 return *this;
91 }
93
95
103 inline int GetPriority() const { return m_priority; }
104 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
105 inline void SetPriority(int value) {
106 m_priorityHasBeenSet = true;
107 m_priority = value;
108 }
110 SetPriority(value);
111 return *this;
112 }
114
116
126 inline Action GetAction() const { return m_action; }
127 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
128 inline void SetAction(Action value) {
129 m_actionHasBeenSet = true;
130 m_action = value;
131 }
133 SetAction(value);
134 return *this;
135 }
137
139
149 inline BlockResponse GetBlockResponse() const { return m_blockResponse; }
150 inline bool BlockResponseHasBeenSet() const { return m_blockResponseHasBeenSet; }
151 inline void SetBlockResponse(BlockResponse value) {
152 m_blockResponseHasBeenSet = true;
153 m_blockResponse = value;
154 }
156 SetBlockResponse(value);
157 return *this;
158 }
160
162
167 inline const Aws::String& GetBlockOverrideDomain() const { return m_blockOverrideDomain; }
168 inline bool BlockOverrideDomainHasBeenSet() const { return m_blockOverrideDomainHasBeenSet; }
169 template <typename BlockOverrideDomainT = Aws::String>
170 void SetBlockOverrideDomain(BlockOverrideDomainT&& value) {
171 m_blockOverrideDomainHasBeenSet = true;
172 m_blockOverrideDomain = std::forward<BlockOverrideDomainT>(value);
173 }
174 template <typename BlockOverrideDomainT = Aws::String>
175 UpdateFirewallRuleRequest& WithBlockOverrideDomain(BlockOverrideDomainT&& value) {
176 SetBlockOverrideDomain(std::forward<BlockOverrideDomainT>(value));
177 return *this;
178 }
180
182
188 inline BlockOverrideDnsType GetBlockOverrideDnsType() const { return m_blockOverrideDnsType; }
189 inline bool BlockOverrideDnsTypeHasBeenSet() const { return m_blockOverrideDnsTypeHasBeenSet; }
191 m_blockOverrideDnsTypeHasBeenSet = true;
192 m_blockOverrideDnsType = value;
193 }
196 return *this;
197 }
199
201
207 inline int GetBlockOverrideTtl() const { return m_blockOverrideTtl; }
208 inline bool BlockOverrideTtlHasBeenSet() const { return m_blockOverrideTtlHasBeenSet; }
209 inline void SetBlockOverrideTtl(int value) {
210 m_blockOverrideTtlHasBeenSet = true;
211 m_blockOverrideTtl = value;
212 }
214 SetBlockOverrideTtl(value);
215 return *this;
216 }
218
220
223 inline const Aws::String& GetName() const { return m_name; }
224 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
225 template <typename NameT = Aws::String>
226 void SetName(NameT&& value) {
227 m_nameHasBeenSet = true;
228 m_name = std::forward<NameT>(value);
229 }
230 template <typename NameT = Aws::String>
232 SetName(std::forward<NameT>(value));
233 return *this;
234 }
236
238
247 inline FirewallDomainRedirectionAction GetFirewallDomainRedirectionAction() const { return m_firewallDomainRedirectionAction; }
248 inline bool FirewallDomainRedirectionActionHasBeenSet() const { return m_firewallDomainRedirectionActionHasBeenSet; }
250 m_firewallDomainRedirectionActionHasBeenSet = true;
251 m_firewallDomainRedirectionAction = value;
252 }
255 return *this;
256 }
258
260
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
361 inline const FirewallRuleType& GetFirewallRuleType() const { return m_firewallRuleType; }
362 inline bool FirewallRuleTypeHasBeenSet() const { return m_firewallRuleTypeHasBeenSet; }
363 template <typename FirewallRuleTypeT = FirewallRuleType>
364 void SetFirewallRuleType(FirewallRuleTypeT&& value) {
365 m_firewallRuleTypeHasBeenSet = true;
366 m_firewallRuleType = std::forward<FirewallRuleTypeT>(value);
367 }
368 template <typename FirewallRuleTypeT = FirewallRuleType>
370 SetFirewallRuleType(std::forward<FirewallRuleTypeT>(value));
371 return *this;
372 }
374 private:
375 Aws::String m_firewallRuleGroupId;
376
377 Aws::String m_firewallDomainListId;
378
379 Aws::String m_firewallThreatProtectionId;
380
381 int m_priority{0};
382
383 Action m_action{Action::NOT_SET};
384
385 BlockResponse m_blockResponse{BlockResponse::NOT_SET};
386
387 Aws::String m_blockOverrideDomain;
388
390
391 int m_blockOverrideTtl{0};
392
393 Aws::String m_name;
394
396
397 Aws::String m_qtype;
398
400
402
403 FirewallRuleType m_firewallRuleType;
404 bool m_firewallRuleGroupIdHasBeenSet = false;
405 bool m_firewallDomainListIdHasBeenSet = false;
406 bool m_firewallThreatProtectionIdHasBeenSet = false;
407 bool m_priorityHasBeenSet = false;
408 bool m_actionHasBeenSet = false;
409 bool m_blockResponseHasBeenSet = false;
410 bool m_blockOverrideDomainHasBeenSet = false;
411 bool m_blockOverrideDnsTypeHasBeenSet = false;
412 bool m_blockOverrideTtlHasBeenSet = false;
413 bool m_nameHasBeenSet = false;
414 bool m_firewallDomainRedirectionActionHasBeenSet = false;
415 bool m_qtypeHasBeenSet = false;
416 bool m_dnsThreatProtectionHasBeenSet = false;
417 bool m_confidenceThresholdHasBeenSet = false;
418 bool m_firewallRuleTypeHasBeenSet = false;
419};
420
421} // namespace Model
422} // namespace Route53Resolver
423} // namespace Aws
UpdateFirewallRuleRequest & WithFirewallRuleGroupId(FirewallRuleGroupIdT &&value)
AWS_ROUTE53RESOLVER_API Aws::String SerializePayload() const override
UpdateFirewallRuleRequest & WithBlockOverrideDnsType(BlockOverrideDnsType value)
AWS_ROUTE53RESOLVER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateFirewallRuleRequest & WithFirewallRuleType(FirewallRuleTypeT &&value)
AWS_ROUTE53RESOLVER_API UpdateFirewallRuleRequest()=default
UpdateFirewallRuleRequest & WithBlockResponse(BlockResponse value)
void SetFirewallThreatProtectionId(FirewallThreatProtectionIdT &&value)
void SetFirewallDomainRedirectionAction(FirewallDomainRedirectionAction value)
UpdateFirewallRuleRequest & WithFirewallDomainRedirectionAction(FirewallDomainRedirectionAction value)
UpdateFirewallRuleRequest & WithBlockOverrideDomain(BlockOverrideDomainT &&value)
FirewallDomainRedirectionAction GetFirewallDomainRedirectionAction() const
UpdateFirewallRuleRequest & WithFirewallThreatProtectionId(FirewallThreatProtectionIdT &&value)
UpdateFirewallRuleRequest & WithFirewallDomainListId(FirewallDomainListIdT &&value)
UpdateFirewallRuleRequest & WithDnsThreatProtection(DnsThreatProtection value)
UpdateFirewallRuleRequest & WithQtype(QtypeT &&value)
UpdateFirewallRuleRequest & WithConfidenceThreshold(ConfidenceThreshold value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String