AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
17#include <utility>
18
19namespace Aws {
20namespace Route53Resolver {
21namespace Model {
22
26 public:
27 AWS_ROUTE53RESOLVER_API UpdateFirewallRuleRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateFirewallRule"; }
34
35 AWS_ROUTE53RESOLVER_API Aws::String SerializePayload() const override;
36
37 AWS_ROUTE53RESOLVER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
40
43 inline const Aws::String& GetFirewallRuleGroupId() const { return m_firewallRuleGroupId; }
44 inline bool FirewallRuleGroupIdHasBeenSet() const { return m_firewallRuleGroupIdHasBeenSet; }
45 template <typename FirewallRuleGroupIdT = Aws::String>
46 void SetFirewallRuleGroupId(FirewallRuleGroupIdT&& value) {
47 m_firewallRuleGroupIdHasBeenSet = true;
48 m_firewallRuleGroupId = std::forward<FirewallRuleGroupIdT>(value);
49 }
50 template <typename FirewallRuleGroupIdT = Aws::String>
51 UpdateFirewallRuleRequest& WithFirewallRuleGroupId(FirewallRuleGroupIdT&& value) {
52 SetFirewallRuleGroupId(std::forward<FirewallRuleGroupIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetFirewallDomainListId() const { return m_firewallDomainListId; }
62 inline bool FirewallDomainListIdHasBeenSet() const { return m_firewallDomainListIdHasBeenSet; }
63 template <typename FirewallDomainListIdT = Aws::String>
64 void SetFirewallDomainListId(FirewallDomainListIdT&& value) {
65 m_firewallDomainListIdHasBeenSet = true;
66 m_firewallDomainListId = std::forward<FirewallDomainListIdT>(value);
67 }
68 template <typename FirewallDomainListIdT = Aws::String>
69 UpdateFirewallRuleRequest& WithFirewallDomainListId(FirewallDomainListIdT&& value) {
70 SetFirewallDomainListId(std::forward<FirewallDomainListIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetFirewallThreatProtectionId() const { return m_firewallThreatProtectionId; }
80 inline bool FirewallThreatProtectionIdHasBeenSet() const { return m_firewallThreatProtectionIdHasBeenSet; }
81 template <typename FirewallThreatProtectionIdT = Aws::String>
82 void SetFirewallThreatProtectionId(FirewallThreatProtectionIdT&& value) {
83 m_firewallThreatProtectionIdHasBeenSet = true;
84 m_firewallThreatProtectionId = std::forward<FirewallThreatProtectionIdT>(value);
85 }
86 template <typename FirewallThreatProtectionIdT = Aws::String>
87 UpdateFirewallRuleRequest& WithFirewallThreatProtectionId(FirewallThreatProtectionIdT&& value) {
88 SetFirewallThreatProtectionId(std::forward<FirewallThreatProtectionIdT>(value));
89 return *this;
90 }
92
94
102 inline int GetPriority() const { return m_priority; }
103 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
104 inline void SetPriority(int value) {
105 m_priorityHasBeenSet = true;
106 m_priority = value;
107 }
109 SetPriority(value);
110 return *this;
111 }
113
115
125 inline Action GetAction() const { return m_action; }
126 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
127 inline void SetAction(Action value) {
128 m_actionHasBeenSet = true;
129 m_action = value;
130 }
132 SetAction(value);
133 return *this;
134 }
136
138
148 inline BlockResponse GetBlockResponse() const { return m_blockResponse; }
149 inline bool BlockResponseHasBeenSet() const { return m_blockResponseHasBeenSet; }
150 inline void SetBlockResponse(BlockResponse value) {
151 m_blockResponseHasBeenSet = true;
152 m_blockResponse = value;
153 }
155 SetBlockResponse(value);
156 return *this;
157 }
159
161
166 inline const Aws::String& GetBlockOverrideDomain() const { return m_blockOverrideDomain; }
167 inline bool BlockOverrideDomainHasBeenSet() const { return m_blockOverrideDomainHasBeenSet; }
168 template <typename BlockOverrideDomainT = Aws::String>
169 void SetBlockOverrideDomain(BlockOverrideDomainT&& value) {
170 m_blockOverrideDomainHasBeenSet = true;
171 m_blockOverrideDomain = std::forward<BlockOverrideDomainT>(value);
172 }
173 template <typename BlockOverrideDomainT = Aws::String>
174 UpdateFirewallRuleRequest& WithBlockOverrideDomain(BlockOverrideDomainT&& value) {
175 SetBlockOverrideDomain(std::forward<BlockOverrideDomainT>(value));
176 return *this;
177 }
179
181
187 inline BlockOverrideDnsType GetBlockOverrideDnsType() const { return m_blockOverrideDnsType; }
188 inline bool BlockOverrideDnsTypeHasBeenSet() const { return m_blockOverrideDnsTypeHasBeenSet; }
190 m_blockOverrideDnsTypeHasBeenSet = true;
191 m_blockOverrideDnsType = value;
192 }
195 return *this;
196 }
198
200
206 inline int GetBlockOverrideTtl() const { return m_blockOverrideTtl; }
207 inline bool BlockOverrideTtlHasBeenSet() const { return m_blockOverrideTtlHasBeenSet; }
208 inline void SetBlockOverrideTtl(int value) {
209 m_blockOverrideTtlHasBeenSet = true;
210 m_blockOverrideTtl = value;
211 }
213 SetBlockOverrideTtl(value);
214 return *this;
215 }
217
219
222 inline const Aws::String& GetName() const { return m_name; }
223 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
224 template <typename NameT = Aws::String>
225 void SetName(NameT&& value) {
226 m_nameHasBeenSet = true;
227 m_name = std::forward<NameT>(value);
228 }
229 template <typename NameT = Aws::String>
231 SetName(std::forward<NameT>(value));
232 return *this;
233 }
235
237
246 inline FirewallDomainRedirectionAction GetFirewallDomainRedirectionAction() const { return m_firewallDomainRedirectionAction; }
247 inline bool FirewallDomainRedirectionActionHasBeenSet() const { return m_firewallDomainRedirectionActionHasBeenSet; }
249 m_firewallDomainRedirectionActionHasBeenSet = true;
250 m_firewallDomainRedirectionAction = value;
251 }
254 return *this;
255 }
257
259
280 inline const Aws::String& GetQtype() const { return m_qtype; }
281 inline bool QtypeHasBeenSet() const { return m_qtypeHasBeenSet; }
282 template <typename QtypeT = Aws::String>
283 void SetQtype(QtypeT&& value) {
284 m_qtypeHasBeenSet = true;
285 m_qtype = std::forward<QtypeT>(value);
286 }
287 template <typename QtypeT = Aws::String>
289 SetQtype(std::forward<QtypeT>(value));
290 return *this;
291 }
293
295
304 inline DnsThreatProtection GetDnsThreatProtection() const { return m_dnsThreatProtection; }
305 inline bool DnsThreatProtectionHasBeenSet() const { return m_dnsThreatProtectionHasBeenSet; }
307 m_dnsThreatProtectionHasBeenSet = true;
308 m_dnsThreatProtection = value;
309 }
312 return *this;
313 }
315
317
326 inline ConfidenceThreshold GetConfidenceThreshold() const { return m_confidenceThreshold; }
327 inline bool ConfidenceThresholdHasBeenSet() const { return m_confidenceThresholdHasBeenSet; }
329 m_confidenceThresholdHasBeenSet = true;
330 m_confidenceThreshold = value;
331 }
334 return *this;
335 }
337 private:
338 Aws::String m_firewallRuleGroupId;
339
340 Aws::String m_firewallDomainListId;
341
342 Aws::String m_firewallThreatProtectionId;
343
344 int m_priority{0};
345
346 Action m_action{Action::NOT_SET};
347
348 BlockResponse m_blockResponse{BlockResponse::NOT_SET};
349
350 Aws::String m_blockOverrideDomain;
351
353
354 int m_blockOverrideTtl{0};
355
356 Aws::String m_name;
357
359
360 Aws::String m_qtype;
361
363
365 bool m_firewallRuleGroupIdHasBeenSet = false;
366 bool m_firewallDomainListIdHasBeenSet = false;
367 bool m_firewallThreatProtectionIdHasBeenSet = false;
368 bool m_priorityHasBeenSet = false;
369 bool m_actionHasBeenSet = false;
370 bool m_blockResponseHasBeenSet = false;
371 bool m_blockOverrideDomainHasBeenSet = false;
372 bool m_blockOverrideDnsTypeHasBeenSet = false;
373 bool m_blockOverrideTtlHasBeenSet = false;
374 bool m_nameHasBeenSet = false;
375 bool m_firewallDomainRedirectionActionHasBeenSet = false;
376 bool m_qtypeHasBeenSet = false;
377 bool m_dnsThreatProtectionHasBeenSet = false;
378 bool m_confidenceThresholdHasBeenSet = false;
379};
380
381} // namespace Model
382} // namespace Route53Resolver
383} // 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
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