AWS SDK for C++

AWS SDK for C++ Version 1.11.714

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
18#include <utility>
19
20namespace Aws {
21namespace Route53Resolver {
22namespace Model {
23
27 public:
28 AWS_ROUTE53RESOLVER_API CreateFirewallRuleRequest() = 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 "CreateFirewallRule"; }
35
36 AWS_ROUTE53RESOLVER_API Aws::String SerializePayload() const override;
37
38 AWS_ROUTE53RESOLVER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
41
47 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
48 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
49 template <typename CreatorRequestIdT = Aws::String>
50 void SetCreatorRequestId(CreatorRequestIdT&& value) {
51 m_creatorRequestIdHasBeenSet = true;
52 m_creatorRequestId = std::forward<CreatorRequestIdT>(value);
53 }
54 template <typename CreatorRequestIdT = Aws::String>
55 CreateFirewallRuleRequest& WithCreatorRequestId(CreatorRequestIdT&& value) {
56 SetCreatorRequestId(std::forward<CreatorRequestIdT>(value));
57 return *this;
58 }
60
62
66 inline const Aws::String& GetFirewallRuleGroupId() const { return m_firewallRuleGroupId; }
67 inline bool FirewallRuleGroupIdHasBeenSet() const { return m_firewallRuleGroupIdHasBeenSet; }
68 template <typename FirewallRuleGroupIdT = Aws::String>
69 void SetFirewallRuleGroupId(FirewallRuleGroupIdT&& value) {
70 m_firewallRuleGroupIdHasBeenSet = true;
71 m_firewallRuleGroupId = std::forward<FirewallRuleGroupIdT>(value);
72 }
73 template <typename FirewallRuleGroupIdT = Aws::String>
74 CreateFirewallRuleRequest& WithFirewallRuleGroupId(FirewallRuleGroupIdT&& value) {
75 SetFirewallRuleGroupId(std::forward<FirewallRuleGroupIdT>(value));
76 return *this;
77 }
79
81
85 inline const Aws::String& GetFirewallDomainListId() const { return m_firewallDomainListId; }
86 inline bool FirewallDomainListIdHasBeenSet() const { return m_firewallDomainListIdHasBeenSet; }
87 template <typename FirewallDomainListIdT = Aws::String>
88 void SetFirewallDomainListId(FirewallDomainListIdT&& value) {
89 m_firewallDomainListIdHasBeenSet = true;
90 m_firewallDomainListId = std::forward<FirewallDomainListIdT>(value);
91 }
92 template <typename FirewallDomainListIdT = Aws::String>
93 CreateFirewallRuleRequest& WithFirewallDomainListId(FirewallDomainListIdT&& value) {
94 SetFirewallDomainListId(std::forward<FirewallDomainListIdT>(value));
95 return *this;
96 }
98
100
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
155 inline BlockResponse GetBlockResponse() const { return m_blockResponse; }
156 inline bool BlockResponseHasBeenSet() const { return m_blockResponseHasBeenSet; }
157 inline void SetBlockResponse(BlockResponse value) {
158 m_blockResponseHasBeenSet = true;
159 m_blockResponse = value;
160 }
162 SetBlockResponse(value);
163 return *this;
164 }
166
168
174 inline const Aws::String& GetBlockOverrideDomain() const { return m_blockOverrideDomain; }
175 inline bool BlockOverrideDomainHasBeenSet() const { return m_blockOverrideDomainHasBeenSet; }
176 template <typename BlockOverrideDomainT = Aws::String>
177 void SetBlockOverrideDomain(BlockOverrideDomainT&& value) {
178 m_blockOverrideDomainHasBeenSet = true;
179 m_blockOverrideDomain = std::forward<BlockOverrideDomainT>(value);
180 }
181 template <typename BlockOverrideDomainT = Aws::String>
182 CreateFirewallRuleRequest& WithBlockOverrideDomain(BlockOverrideDomainT&& value) {
183 SetBlockOverrideDomain(std::forward<BlockOverrideDomainT>(value));
184 return *this;
185 }
187
189
196 inline BlockOverrideDnsType GetBlockOverrideDnsType() const { return m_blockOverrideDnsType; }
197 inline bool BlockOverrideDnsTypeHasBeenSet() const { return m_blockOverrideDnsTypeHasBeenSet; }
199 m_blockOverrideDnsTypeHasBeenSet = true;
200 m_blockOverrideDnsType = value;
201 }
204 return *this;
205 }
207
209
216 inline int GetBlockOverrideTtl() const { return m_blockOverrideTtl; }
217 inline bool BlockOverrideTtlHasBeenSet() const { return m_blockOverrideTtlHasBeenSet; }
218 inline void SetBlockOverrideTtl(int value) {
219 m_blockOverrideTtlHasBeenSet = true;
220 m_blockOverrideTtl = value;
221 }
223 SetBlockOverrideTtl(value);
224 return *this;
225 }
227
229
232 inline const Aws::String& GetName() const { return m_name; }
233 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
234 template <typename NameT = Aws::String>
235 void SetName(NameT&& value) {
236 m_nameHasBeenSet = true;
237 m_name = std::forward<NameT>(value);
238 }
239 template <typename NameT = Aws::String>
241 SetName(std::forward<NameT>(value));
242 return *this;
243 }
245
247
256 inline FirewallDomainRedirectionAction GetFirewallDomainRedirectionAction() const { return m_firewallDomainRedirectionAction; }
257 inline bool FirewallDomainRedirectionActionHasBeenSet() const { return m_firewallDomainRedirectionActionHasBeenSet; }
259 m_firewallDomainRedirectionActionHasBeenSet = true;
260 m_firewallDomainRedirectionAction = value;
261 }
264 return *this;
265 }
267
269
288 inline const Aws::String& GetQtype() const { return m_qtype; }
289 inline bool QtypeHasBeenSet() const { return m_qtypeHasBeenSet; }
290 template <typename QtypeT = Aws::String>
291 void SetQtype(QtypeT&& value) {
292 m_qtypeHasBeenSet = true;
293 m_qtype = std::forward<QtypeT>(value);
294 }
295 template <typename QtypeT = Aws::String>
297 SetQtype(std::forward<QtypeT>(value));
298 return *this;
299 }
301
303
306 inline DnsThreatProtection GetDnsThreatProtection() const { return m_dnsThreatProtection; }
307 inline bool DnsThreatProtectionHasBeenSet() const { return m_dnsThreatProtectionHasBeenSet; }
309 m_dnsThreatProtectionHasBeenSet = true;
310 m_dnsThreatProtection = value;
311 }
314 return *this;
315 }
317
319
328 inline ConfidenceThreshold GetConfidenceThreshold() const { return m_confidenceThreshold; }
329 inline bool ConfidenceThresholdHasBeenSet() const { return m_confidenceThresholdHasBeenSet; }
331 m_confidenceThresholdHasBeenSet = true;
332 m_confidenceThreshold = value;
333 }
336 return *this;
337 }
339 private:
341
342 Aws::String m_firewallRuleGroupId;
343
344 Aws::String m_firewallDomainListId;
345
346 int m_priority{0};
347
348 Action m_action{Action::NOT_SET};
349
350 BlockResponse m_blockResponse{BlockResponse::NOT_SET};
351
352 Aws::String m_blockOverrideDomain;
353
355
356 int m_blockOverrideTtl{0};
357
358 Aws::String m_name;
359
361
362 Aws::String m_qtype;
363
365
367 bool m_creatorRequestIdHasBeenSet = true;
368 bool m_firewallRuleGroupIdHasBeenSet = false;
369 bool m_firewallDomainListIdHasBeenSet = false;
370 bool m_priorityHasBeenSet = false;
371 bool m_actionHasBeenSet = false;
372 bool m_blockResponseHasBeenSet = false;
373 bool m_blockOverrideDomainHasBeenSet = false;
374 bool m_blockOverrideDnsTypeHasBeenSet = false;
375 bool m_blockOverrideTtlHasBeenSet = false;
376 bool m_nameHasBeenSet = false;
377 bool m_firewallDomainRedirectionActionHasBeenSet = false;
378 bool m_qtypeHasBeenSet = false;
379 bool m_dnsThreatProtectionHasBeenSet = false;
380 bool m_confidenceThresholdHasBeenSet = false;
381};
382
383} // namespace Model
384} // namespace Route53Resolver
385} // 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 & 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