AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateFirewallRuleRequest.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
18namespace Aws
19{
20namespace Route53Resolver
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_ROUTE53RESOLVER_API UpdateFirewallRuleRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateFirewallRule"; }
37
38 AWS_ROUTE53RESOLVER_API Aws::String SerializePayload() const override;
39
40 AWS_ROUTE53RESOLVER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41
42
44
47 inline const Aws::String& GetFirewallRuleGroupId() const { return m_firewallRuleGroupId; }
48 inline bool FirewallRuleGroupIdHasBeenSet() const { return m_firewallRuleGroupIdHasBeenSet; }
49 template<typename FirewallRuleGroupIdT = Aws::String>
50 void SetFirewallRuleGroupId(FirewallRuleGroupIdT&& value) { m_firewallRuleGroupIdHasBeenSet = true; m_firewallRuleGroupId = std::forward<FirewallRuleGroupIdT>(value); }
51 template<typename FirewallRuleGroupIdT = Aws::String>
52 UpdateFirewallRuleRequest& WithFirewallRuleGroupId(FirewallRuleGroupIdT&& value) { SetFirewallRuleGroupId(std::forward<FirewallRuleGroupIdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetFirewallDomainListId() const { return m_firewallDomainListId; }
60 inline bool FirewallDomainListIdHasBeenSet() const { return m_firewallDomainListIdHasBeenSet; }
61 template<typename FirewallDomainListIdT = Aws::String>
62 void SetFirewallDomainListId(FirewallDomainListIdT&& value) { m_firewallDomainListIdHasBeenSet = true; m_firewallDomainListId = std::forward<FirewallDomainListIdT>(value); }
63 template<typename FirewallDomainListIdT = Aws::String>
64 UpdateFirewallRuleRequest& WithFirewallDomainListId(FirewallDomainListIdT&& value) { SetFirewallDomainListId(std::forward<FirewallDomainListIdT>(value)); return *this;}
66
68
71 inline const Aws::String& GetFirewallThreatProtectionId() const { return m_firewallThreatProtectionId; }
72 inline bool FirewallThreatProtectionIdHasBeenSet() const { return m_firewallThreatProtectionIdHasBeenSet; }
73 template<typename FirewallThreatProtectionIdT = Aws::String>
74 void SetFirewallThreatProtectionId(FirewallThreatProtectionIdT&& value) { m_firewallThreatProtectionIdHasBeenSet = true; m_firewallThreatProtectionId = std::forward<FirewallThreatProtectionIdT>(value); }
75 template<typename FirewallThreatProtectionIdT = Aws::String>
76 UpdateFirewallRuleRequest& WithFirewallThreatProtectionId(FirewallThreatProtectionIdT&& value) { SetFirewallThreatProtectionId(std::forward<FirewallThreatProtectionIdT>(value)); return *this;}
78
80
88 inline int GetPriority() const { return m_priority; }
89 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
90 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
91 inline UpdateFirewallRuleRequest& WithPriority(int value) { SetPriority(value); return *this;}
93
95
105 inline Action GetAction() const { return m_action; }
106 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
107 inline void SetAction(Action value) { m_actionHasBeenSet = true; m_action = value; }
108 inline UpdateFirewallRuleRequest& WithAction(Action value) { SetAction(value); return *this;}
110
112
122 inline BlockResponse GetBlockResponse() const { return m_blockResponse; }
123 inline bool BlockResponseHasBeenSet() const { return m_blockResponseHasBeenSet; }
124 inline void SetBlockResponse(BlockResponse value) { m_blockResponseHasBeenSet = true; m_blockResponse = value; }
127
129
134 inline const Aws::String& GetBlockOverrideDomain() const { return m_blockOverrideDomain; }
135 inline bool BlockOverrideDomainHasBeenSet() const { return m_blockOverrideDomainHasBeenSet; }
136 template<typename BlockOverrideDomainT = Aws::String>
137 void SetBlockOverrideDomain(BlockOverrideDomainT&& value) { m_blockOverrideDomainHasBeenSet = true; m_blockOverrideDomain = std::forward<BlockOverrideDomainT>(value); }
138 template<typename BlockOverrideDomainT = Aws::String>
139 UpdateFirewallRuleRequest& WithBlockOverrideDomain(BlockOverrideDomainT&& value) { SetBlockOverrideDomain(std::forward<BlockOverrideDomainT>(value)); return *this;}
141
143
149 inline BlockOverrideDnsType GetBlockOverrideDnsType() const { return m_blockOverrideDnsType; }
150 inline bool BlockOverrideDnsTypeHasBeenSet() const { return m_blockOverrideDnsTypeHasBeenSet; }
151 inline void SetBlockOverrideDnsType(BlockOverrideDnsType value) { m_blockOverrideDnsTypeHasBeenSet = true; m_blockOverrideDnsType = value; }
154
156
162 inline int GetBlockOverrideTtl() const { return m_blockOverrideTtl; }
163 inline bool BlockOverrideTtlHasBeenSet() const { return m_blockOverrideTtlHasBeenSet; }
164 inline void SetBlockOverrideTtl(int value) { m_blockOverrideTtlHasBeenSet = true; m_blockOverrideTtl = value; }
165 inline UpdateFirewallRuleRequest& WithBlockOverrideTtl(int value) { SetBlockOverrideTtl(value); return *this;}
167
169
172 inline const Aws::String& GetName() const { return m_name; }
173 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
174 template<typename NameT = Aws::String>
175 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
176 template<typename NameT = Aws::String>
177 UpdateFirewallRuleRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
179
181
190 inline FirewallDomainRedirectionAction GetFirewallDomainRedirectionAction() const { return m_firewallDomainRedirectionAction; }
191 inline bool FirewallDomainRedirectionActionHasBeenSet() const { return m_firewallDomainRedirectionActionHasBeenSet; }
192 inline void SetFirewallDomainRedirectionAction(FirewallDomainRedirectionAction value) { m_firewallDomainRedirectionActionHasBeenSet = true; m_firewallDomainRedirectionAction = value; }
195
197
218 inline const Aws::String& GetQtype() const { return m_qtype; }
219 inline bool QtypeHasBeenSet() const { return m_qtypeHasBeenSet; }
220 template<typename QtypeT = Aws::String>
221 void SetQtype(QtypeT&& value) { m_qtypeHasBeenSet = true; m_qtype = std::forward<QtypeT>(value); }
222 template<typename QtypeT = Aws::String>
223 UpdateFirewallRuleRequest& WithQtype(QtypeT&& value) { SetQtype(std::forward<QtypeT>(value)); return *this;}
225
227
236 inline DnsThreatProtection GetDnsThreatProtection() const { return m_dnsThreatProtection; }
237 inline bool DnsThreatProtectionHasBeenSet() const { return m_dnsThreatProtectionHasBeenSet; }
238 inline void SetDnsThreatProtection(DnsThreatProtection value) { m_dnsThreatProtectionHasBeenSet = true; m_dnsThreatProtection = value; }
241
243
252 inline ConfidenceThreshold GetConfidenceThreshold() const { return m_confidenceThreshold; }
253 inline bool ConfidenceThresholdHasBeenSet() const { return m_confidenceThresholdHasBeenSet; }
254 inline void SetConfidenceThreshold(ConfidenceThreshold value) { m_confidenceThresholdHasBeenSet = true; m_confidenceThreshold = value; }
257 private:
258
259 Aws::String m_firewallRuleGroupId;
260 bool m_firewallRuleGroupIdHasBeenSet = false;
261
262 Aws::String m_firewallDomainListId;
263 bool m_firewallDomainListIdHasBeenSet = false;
264
265 Aws::String m_firewallThreatProtectionId;
266 bool m_firewallThreatProtectionIdHasBeenSet = false;
267
268 int m_priority{0};
269 bool m_priorityHasBeenSet = false;
270
271 Action m_action{Action::NOT_SET};
272 bool m_actionHasBeenSet = false;
273
274 BlockResponse m_blockResponse{BlockResponse::NOT_SET};
275 bool m_blockResponseHasBeenSet = false;
276
277 Aws::String m_blockOverrideDomain;
278 bool m_blockOverrideDomainHasBeenSet = false;
279
281 bool m_blockOverrideDnsTypeHasBeenSet = false;
282
283 int m_blockOverrideTtl{0};
284 bool m_blockOverrideTtlHasBeenSet = false;
285
286 Aws::String m_name;
287 bool m_nameHasBeenSet = false;
288
290 bool m_firewallDomainRedirectionActionHasBeenSet = false;
291
292 Aws::String m_qtype;
293 bool m_qtypeHasBeenSet = false;
294
296 bool m_dnsThreatProtectionHasBeenSet = false;
297
299 bool m_confidenceThresholdHasBeenSet = false;
300 };
301
302} // namespace Model
303} // namespace Route53Resolver
304} // 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