AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateFirewallRuleRequest.h
1
6#pragma once
7#include <aws/route53resolver/Route53Resolver_EXPORTS.h>
8#include <aws/route53resolver/Route53ResolverRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/route53resolver/model/Action.h>
11#include <aws/route53resolver/model/BlockResponse.h>
12#include <aws/route53resolver/model/BlockOverrideDnsType.h>
13#include <aws/route53resolver/model/FirewallDomainRedirectionAction.h>
14#include <aws/route53resolver/model/DnsThreatProtection.h>
15#include <aws/route53resolver/model/ConfidenceThreshold.h>
16#include <utility>
17#include <aws/core/utils/UUID.h>
18
19namespace Aws
20{
21namespace Route53Resolver
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_ROUTE53RESOLVER_API CreateFirewallRuleRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateFirewallRule"; }
38
39 AWS_ROUTE53RESOLVER_API Aws::String SerializePayload() const override;
40
41 AWS_ROUTE53RESOLVER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
42
43
45
51 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
52 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
53 template<typename CreatorRequestIdT = Aws::String>
54 void SetCreatorRequestId(CreatorRequestIdT&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::forward<CreatorRequestIdT>(value); }
55 template<typename CreatorRequestIdT = Aws::String>
56 CreateFirewallRuleRequest& WithCreatorRequestId(CreatorRequestIdT&& value) { SetCreatorRequestId(std::forward<CreatorRequestIdT>(value)); return *this;}
58
60
64 inline const Aws::String& GetFirewallRuleGroupId() const { return m_firewallRuleGroupId; }
65 inline bool FirewallRuleGroupIdHasBeenSet() const { return m_firewallRuleGroupIdHasBeenSet; }
66 template<typename FirewallRuleGroupIdT = Aws::String>
67 void SetFirewallRuleGroupId(FirewallRuleGroupIdT&& value) { m_firewallRuleGroupIdHasBeenSet = true; m_firewallRuleGroupId = std::forward<FirewallRuleGroupIdT>(value); }
68 template<typename FirewallRuleGroupIdT = Aws::String>
69 CreateFirewallRuleRequest& WithFirewallRuleGroupId(FirewallRuleGroupIdT&& value) { SetFirewallRuleGroupId(std::forward<FirewallRuleGroupIdT>(value)); return *this;}
71
73
77 inline const Aws::String& GetFirewallDomainListId() const { return m_firewallDomainListId; }
78 inline bool FirewallDomainListIdHasBeenSet() const { return m_firewallDomainListIdHasBeenSet; }
79 template<typename FirewallDomainListIdT = Aws::String>
80 void SetFirewallDomainListId(FirewallDomainListIdT&& value) { m_firewallDomainListIdHasBeenSet = true; m_firewallDomainListId = std::forward<FirewallDomainListIdT>(value); }
81 template<typename FirewallDomainListIdT = Aws::String>
82 CreateFirewallRuleRequest& WithFirewallDomainListId(FirewallDomainListIdT&& value) { SetFirewallDomainListId(std::forward<FirewallDomainListIdT>(value)); return *this;}
84
86
94 inline int GetPriority() const { return m_priority; }
95 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
96 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
97 inline CreateFirewallRuleRequest& WithPriority(int value) { SetPriority(value); return *this;}
99
101
111 inline Action GetAction() const { return m_action; }
112 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
113 inline void SetAction(Action value) { m_actionHasBeenSet = true; m_action = value; }
114 inline CreateFirewallRuleRequest& WithAction(Action value) { SetAction(value); return *this;}
116
118
129 inline BlockResponse GetBlockResponse() const { return m_blockResponse; }
130 inline bool BlockResponseHasBeenSet() const { return m_blockResponseHasBeenSet; }
131 inline void SetBlockResponse(BlockResponse value) { m_blockResponseHasBeenSet = true; m_blockResponse = value; }
134
136
142 inline const Aws::String& GetBlockOverrideDomain() const { return m_blockOverrideDomain; }
143 inline bool BlockOverrideDomainHasBeenSet() const { return m_blockOverrideDomainHasBeenSet; }
144 template<typename BlockOverrideDomainT = Aws::String>
145 void SetBlockOverrideDomain(BlockOverrideDomainT&& value) { m_blockOverrideDomainHasBeenSet = true; m_blockOverrideDomain = std::forward<BlockOverrideDomainT>(value); }
146 template<typename BlockOverrideDomainT = Aws::String>
147 CreateFirewallRuleRequest& WithBlockOverrideDomain(BlockOverrideDomainT&& value) { SetBlockOverrideDomain(std::forward<BlockOverrideDomainT>(value)); return *this;}
149
151
158 inline BlockOverrideDnsType GetBlockOverrideDnsType() const { return m_blockOverrideDnsType; }
159 inline bool BlockOverrideDnsTypeHasBeenSet() const { return m_blockOverrideDnsTypeHasBeenSet; }
160 inline void SetBlockOverrideDnsType(BlockOverrideDnsType value) { m_blockOverrideDnsTypeHasBeenSet = true; m_blockOverrideDnsType = value; }
163
165
172 inline int GetBlockOverrideTtl() const { return m_blockOverrideTtl; }
173 inline bool BlockOverrideTtlHasBeenSet() const { return m_blockOverrideTtlHasBeenSet; }
174 inline void SetBlockOverrideTtl(int value) { m_blockOverrideTtlHasBeenSet = true; m_blockOverrideTtl = value; }
175 inline CreateFirewallRuleRequest& WithBlockOverrideTtl(int value) { SetBlockOverrideTtl(value); return *this;}
177
179
182 inline const Aws::String& GetName() const { return m_name; }
183 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
184 template<typename NameT = Aws::String>
185 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
186 template<typename NameT = Aws::String>
187 CreateFirewallRuleRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
189
191
200 inline FirewallDomainRedirectionAction GetFirewallDomainRedirectionAction() const { return m_firewallDomainRedirectionAction; }
201 inline bool FirewallDomainRedirectionActionHasBeenSet() const { return m_firewallDomainRedirectionActionHasBeenSet; }
202 inline void SetFirewallDomainRedirectionAction(FirewallDomainRedirectionAction value) { m_firewallDomainRedirectionActionHasBeenSet = true; m_firewallDomainRedirectionAction = value; }
205
207
226 inline const Aws::String& GetQtype() const { return m_qtype; }
227 inline bool QtypeHasBeenSet() const { return m_qtypeHasBeenSet; }
228 template<typename QtypeT = Aws::String>
229 void SetQtype(QtypeT&& value) { m_qtypeHasBeenSet = true; m_qtype = std::forward<QtypeT>(value); }
230 template<typename QtypeT = Aws::String>
231 CreateFirewallRuleRequest& WithQtype(QtypeT&& value) { SetQtype(std::forward<QtypeT>(value)); return *this;}
233
235
238 inline DnsThreatProtection GetDnsThreatProtection() const { return m_dnsThreatProtection; }
239 inline bool DnsThreatProtectionHasBeenSet() const { return m_dnsThreatProtectionHasBeenSet; }
240 inline void SetDnsThreatProtection(DnsThreatProtection value) { m_dnsThreatProtectionHasBeenSet = true; m_dnsThreatProtection = value; }
243
245
254 inline ConfidenceThreshold GetConfidenceThreshold() const { return m_confidenceThreshold; }
255 inline bool ConfidenceThresholdHasBeenSet() const { return m_confidenceThresholdHasBeenSet; }
256 inline void SetConfidenceThreshold(ConfidenceThreshold value) { m_confidenceThresholdHasBeenSet = true; m_confidenceThreshold = value; }
259 private:
260
262 bool m_creatorRequestIdHasBeenSet = true;
263
264 Aws::String m_firewallRuleGroupId;
265 bool m_firewallRuleGroupIdHasBeenSet = false;
266
267 Aws::String m_firewallDomainListId;
268 bool m_firewallDomainListIdHasBeenSet = false;
269
270 int m_priority{0};
271 bool m_priorityHasBeenSet = false;
272
273 Action m_action{Action::NOT_SET};
274 bool m_actionHasBeenSet = false;
275
276 BlockResponse m_blockResponse{BlockResponse::NOT_SET};
277 bool m_blockResponseHasBeenSet = false;
278
279 Aws::String m_blockOverrideDomain;
280 bool m_blockOverrideDomainHasBeenSet = false;
281
283 bool m_blockOverrideDnsTypeHasBeenSet = false;
284
285 int m_blockOverrideTtl{0};
286 bool m_blockOverrideTtlHasBeenSet = false;
287
288 Aws::String m_name;
289 bool m_nameHasBeenSet = false;
290
292 bool m_firewallDomainRedirectionActionHasBeenSet = false;
293
294 Aws::String m_qtype;
295 bool m_qtypeHasBeenSet = false;
296
298 bool m_dnsThreatProtectionHasBeenSet = false;
299
301 bool m_confidenceThresholdHasBeenSet = false;
302 };
303
304} // namespace Model
305} // namespace Route53Resolver
306} // 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