AWS SDK for C++

AWS SDK for C++ Version 1.11.820

Loading...
Searching...
No Matches
CreateFirewallRuleRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/route53resolver/Route53ResolverRequest.h>
10#include <aws/route53resolver/Route53Resolver_EXPORTS.h>
11#include <aws/route53resolver/model/Action.h>
12#include <aws/route53resolver/model/BlockOverrideDnsType.h>
13#include <aws/route53resolver/model/BlockResponse.h>
14#include <aws/route53resolver/model/ConfidenceThreshold.h>
15#include <aws/route53resolver/model/DnsThreatProtection.h>
16#include <aws/route53resolver/model/FirewallDomainRedirectionAction.h>
17#include <aws/route53resolver/model/FirewallRuleType.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Route53Resolver {
23namespace Model {
24
28 public:
29 AWS_ROUTE53RESOLVER_API CreateFirewallRuleRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateFirewallRule"; }
36
37 AWS_ROUTE53RESOLVER_API Aws::String SerializePayload() const override;
38
39 AWS_ROUTE53RESOLVER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
42
48 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
49 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
50 template <typename CreatorRequestIdT = Aws::String>
51 void SetCreatorRequestId(CreatorRequestIdT&& value) {
52 m_creatorRequestIdHasBeenSet = true;
53 m_creatorRequestId = std::forward<CreatorRequestIdT>(value);
54 }
55 template <typename CreatorRequestIdT = Aws::String>
56 CreateFirewallRuleRequest& WithCreatorRequestId(CreatorRequestIdT&& value) {
57 SetCreatorRequestId(std::forward<CreatorRequestIdT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::String& GetFirewallRuleGroupId() const { return m_firewallRuleGroupId; }
68 inline bool FirewallRuleGroupIdHasBeenSet() const { return m_firewallRuleGroupIdHasBeenSet; }
69 template <typename FirewallRuleGroupIdT = Aws::String>
70 void SetFirewallRuleGroupId(FirewallRuleGroupIdT&& value) {
71 m_firewallRuleGroupIdHasBeenSet = true;
72 m_firewallRuleGroupId = std::forward<FirewallRuleGroupIdT>(value);
73 }
74 template <typename FirewallRuleGroupIdT = Aws::String>
75 CreateFirewallRuleRequest& WithFirewallRuleGroupId(FirewallRuleGroupIdT&& value) {
76 SetFirewallRuleGroupId(std::forward<FirewallRuleGroupIdT>(value));
77 return *this;
78 }
80
82
86 inline const Aws::String& GetFirewallDomainListId() const { return m_firewallDomainListId; }
87 inline bool FirewallDomainListIdHasBeenSet() const { return m_firewallDomainListIdHasBeenSet; }
88 template <typename FirewallDomainListIdT = Aws::String>
89 void SetFirewallDomainListId(FirewallDomainListIdT&& value) {
90 m_firewallDomainListIdHasBeenSet = true;
91 m_firewallDomainListId = std::forward<FirewallDomainListIdT>(value);
92 }
93 template <typename FirewallDomainListIdT = Aws::String>
94 CreateFirewallRuleRequest& WithFirewallDomainListId(FirewallDomainListIdT&& value) {
95 SetFirewallDomainListId(std::forward<FirewallDomainListIdT>(value));
96 return *this;
97 }
99
101
109 inline int GetPriority() const { return m_priority; }
110 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
111 inline void SetPriority(int value) {
112 m_priorityHasBeenSet = true;
113 m_priority = value;
114 }
116 SetPriority(value);
117 return *this;
118 }
120
122
132 inline Action GetAction() const { return m_action; }
133 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
134 inline void SetAction(Action value) {
135 m_actionHasBeenSet = true;
136 m_action = value;
137 }
139 SetAction(value);
140 return *this;
141 }
143
145
156 inline BlockResponse GetBlockResponse() const { return m_blockResponse; }
157 inline bool BlockResponseHasBeenSet() const { return m_blockResponseHasBeenSet; }
158 inline void SetBlockResponse(BlockResponse value) {
159 m_blockResponseHasBeenSet = true;
160 m_blockResponse = value;
161 }
163 SetBlockResponse(value);
164 return *this;
165 }
167
169
175 inline const Aws::String& GetBlockOverrideDomain() const { return m_blockOverrideDomain; }
176 inline bool BlockOverrideDomainHasBeenSet() const { return m_blockOverrideDomainHasBeenSet; }
177 template <typename BlockOverrideDomainT = Aws::String>
178 void SetBlockOverrideDomain(BlockOverrideDomainT&& value) {
179 m_blockOverrideDomainHasBeenSet = true;
180 m_blockOverrideDomain = std::forward<BlockOverrideDomainT>(value);
181 }
182 template <typename BlockOverrideDomainT = Aws::String>
183 CreateFirewallRuleRequest& WithBlockOverrideDomain(BlockOverrideDomainT&& value) {
184 SetBlockOverrideDomain(std::forward<BlockOverrideDomainT>(value));
185 return *this;
186 }
188
190
197 inline BlockOverrideDnsType GetBlockOverrideDnsType() const { return m_blockOverrideDnsType; }
198 inline bool BlockOverrideDnsTypeHasBeenSet() const { return m_blockOverrideDnsTypeHasBeenSet; }
200 m_blockOverrideDnsTypeHasBeenSet = true;
201 m_blockOverrideDnsType = value;
202 }
205 return *this;
206 }
208
210
217 inline int GetBlockOverrideTtl() const { return m_blockOverrideTtl; }
218 inline bool BlockOverrideTtlHasBeenSet() const { return m_blockOverrideTtlHasBeenSet; }
219 inline void SetBlockOverrideTtl(int value) {
220 m_blockOverrideTtlHasBeenSet = true;
221 m_blockOverrideTtl = value;
222 }
224 SetBlockOverrideTtl(value);
225 return *this;
226 }
228
230
233 inline const Aws::String& GetName() const { return m_name; }
234 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
235 template <typename NameT = Aws::String>
236 void SetName(NameT&& value) {
237 m_nameHasBeenSet = true;
238 m_name = std::forward<NameT>(value);
239 }
240 template <typename NameT = Aws::String>
242 SetName(std::forward<NameT>(value));
243 return *this;
244 }
246
248
257 inline FirewallDomainRedirectionAction GetFirewallDomainRedirectionAction() const { return m_firewallDomainRedirectionAction; }
258 inline bool FirewallDomainRedirectionActionHasBeenSet() const { return m_firewallDomainRedirectionActionHasBeenSet; }
260 m_firewallDomainRedirectionActionHasBeenSet = true;
261 m_firewallDomainRedirectionAction = value;
262 }
265 return *this;
266 }
268
270
289 inline const Aws::String& GetQtype() const { return m_qtype; }
290 inline bool QtypeHasBeenSet() const { return m_qtypeHasBeenSet; }
291 template <typename QtypeT = Aws::String>
292 void SetQtype(QtypeT&& value) {
293 m_qtypeHasBeenSet = true;
294 m_qtype = std::forward<QtypeT>(value);
295 }
296 template <typename QtypeT = Aws::String>
298 SetQtype(std::forward<QtypeT>(value));
299 return *this;
300 }
302
304
307 inline DnsThreatProtection GetDnsThreatProtection() const { return m_dnsThreatProtection; }
308 inline bool DnsThreatProtectionHasBeenSet() const { return m_dnsThreatProtectionHasBeenSet; }
310 m_dnsThreatProtectionHasBeenSet = true;
311 m_dnsThreatProtection = value;
312 }
315 return *this;
316 }
318
320
329 inline ConfidenceThreshold GetConfidenceThreshold() const { return m_confidenceThreshold; }
330 inline bool ConfidenceThresholdHasBeenSet() const { return m_confidenceThresholdHasBeenSet; }
332 m_confidenceThresholdHasBeenSet = true;
333 m_confidenceThreshold = value;
334 }
337 return *this;
338 }
340
342
347 inline const FirewallRuleType& GetFirewallRuleType() const { return m_firewallRuleType; }
348 inline bool FirewallRuleTypeHasBeenSet() const { return m_firewallRuleTypeHasBeenSet; }
349 template <typename FirewallRuleTypeT = FirewallRuleType>
350 void SetFirewallRuleType(FirewallRuleTypeT&& value) {
351 m_firewallRuleTypeHasBeenSet = true;
352 m_firewallRuleType = std::forward<FirewallRuleTypeT>(value);
353 }
354 template <typename FirewallRuleTypeT = FirewallRuleType>
356 SetFirewallRuleType(std::forward<FirewallRuleTypeT>(value));
357 return *this;
358 }
360 private:
362
363 Aws::String m_firewallRuleGroupId;
364
365 Aws::String m_firewallDomainListId;
366
367 int m_priority{0};
368
369 Action m_action{Action::NOT_SET};
370
371 BlockResponse m_blockResponse{BlockResponse::NOT_SET};
372
373 Aws::String m_blockOverrideDomain;
374
376
377 int m_blockOverrideTtl{0};
378
379 Aws::String m_name;
380
382
383 Aws::String m_qtype;
384
386
388
389 FirewallRuleType m_firewallRuleType;
390 bool m_creatorRequestIdHasBeenSet = true;
391 bool m_firewallRuleGroupIdHasBeenSet = false;
392 bool m_firewallDomainListIdHasBeenSet = false;
393 bool m_priorityHasBeenSet = false;
394 bool m_actionHasBeenSet = false;
395 bool m_blockResponseHasBeenSet = false;
396 bool m_blockOverrideDomainHasBeenSet = false;
397 bool m_blockOverrideDnsTypeHasBeenSet = false;
398 bool m_blockOverrideTtlHasBeenSet = false;
399 bool m_nameHasBeenSet = false;
400 bool m_firewallDomainRedirectionActionHasBeenSet = false;
401 bool m_qtypeHasBeenSet = false;
402 bool m_dnsThreatProtectionHasBeenSet = false;
403 bool m_confidenceThresholdHasBeenSet = false;
404 bool m_firewallRuleTypeHasBeenSet = false;
405};
406
407} // namespace Model
408} // namespace Route53Resolver
409} // namespace Aws
CreateFirewallRuleRequest & WithBlockOverrideDnsType(BlockOverrideDnsType value)
CreateFirewallRuleRequest & WithFirewallDomainRedirectionAction(FirewallDomainRedirectionAction value)
CreateFirewallRuleRequest & WithConfidenceThreshold(ConfidenceThreshold value)
CreateFirewallRuleRequest & WithQtype(QtypeT &&value)
AWS_ROUTE53RESOLVER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
FirewallDomainRedirectionAction GetFirewallDomainRedirectionAction() const
CreateFirewallRuleRequest & WithCreatorRequestId(CreatorRequestIdT &&value)
void SetFirewallDomainRedirectionAction(FirewallDomainRedirectionAction value)
AWS_ROUTE53RESOLVER_API Aws::String SerializePayload() const override
CreateFirewallRuleRequest & WithFirewallRuleGroupId(FirewallRuleGroupIdT &&value)
CreateFirewallRuleRequest & WithBlockOverrideDomain(BlockOverrideDomainT &&value)
CreateFirewallRuleRequest & WithDnsThreatProtection(DnsThreatProtection value)
CreateFirewallRuleRequest & WithFirewallRuleType(FirewallRuleTypeT &&value)
CreateFirewallRuleRequest & WithFirewallDomainListId(FirewallDomainListIdT &&value)
CreateFirewallRuleRequest & WithBlockResponse(BlockResponse value)
AWS_ROUTE53RESOLVER_API CreateFirewallRuleRequest()=default
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String