AWS SDK for C++

AWS SDK for C++ Version 1.11.764

Loading...
Searching...
No Matches
UpdateFirewallRuleRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/route53globalresolver/Route53GlobalResolverRequest.h>
10#include <aws/route53globalresolver/Route53GlobalResolver_EXPORTS.h>
11#include <aws/route53globalresolver/model/BlockOverrideDnsQueryType.h>
12#include <aws/route53globalresolver/model/ConfidenceThreshold.h>
13#include <aws/route53globalresolver/model/DnsAdvancedProtection.h>
14#include <aws/route53globalresolver/model/FirewallBlockResponse.h>
15#include <aws/route53globalresolver/model/FirewallRuleAction.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Route53GlobalResolver {
21namespace Model {
22
26 public:
27 AWS_ROUTE53GLOBALRESOLVER_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_ROUTE53GLOBALRESOLVER_API Aws::String SerializePayload() const override;
36
38
43 inline FirewallRuleAction GetAction() const { return m_action; }
44 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
45 inline void SetAction(FirewallRuleAction value) {
46 m_actionHasBeenSet = true;
47 m_action = value;
48 }
50 SetAction(value);
51 return *this;
52 }
54
56
62 inline BlockOverrideDnsQueryType GetBlockOverrideDnsType() const { return m_blockOverrideDnsType; }
63 inline bool BlockOverrideDnsTypeHasBeenSet() const { return m_blockOverrideDnsTypeHasBeenSet; }
65 m_blockOverrideDnsTypeHasBeenSet = true;
66 m_blockOverrideDnsType = value;
67 }
70 return *this;
71 }
73
75
80 inline const Aws::String& GetBlockOverrideDomain() const { return m_blockOverrideDomain; }
81 inline bool BlockOverrideDomainHasBeenSet() const { return m_blockOverrideDomainHasBeenSet; }
82 template <typename BlockOverrideDomainT = Aws::String>
83 void SetBlockOverrideDomain(BlockOverrideDomainT&& value) {
84 m_blockOverrideDomainHasBeenSet = true;
85 m_blockOverrideDomain = std::forward<BlockOverrideDomainT>(value);
86 }
87 template <typename BlockOverrideDomainT = Aws::String>
88 UpdateFirewallRuleRequest& WithBlockOverrideDomain(BlockOverrideDomainT&& value) {
89 SetBlockOverrideDomain(std::forward<BlockOverrideDomainT>(value));
90 return *this;
91 }
93
95
101 inline int GetBlockOverrideTtl() const { return m_blockOverrideTtl; }
102 inline bool BlockOverrideTtlHasBeenSet() const { return m_blockOverrideTtlHasBeenSet; }
103 inline void SetBlockOverrideTtl(int value) {
104 m_blockOverrideTtlHasBeenSet = true;
105 m_blockOverrideTtl = value;
106 }
108 SetBlockOverrideTtl(value);
109 return *this;
110 }
112
114
118 inline FirewallBlockResponse GetBlockResponse() const { return m_blockResponse; }
119 inline bool BlockResponseHasBeenSet() const { return m_blockResponseHasBeenSet; }
121 m_blockResponseHasBeenSet = true;
122 m_blockResponse = value;
123 }
125 SetBlockResponse(value);
126 return *this;
127 }
129
131
136 inline const Aws::String& GetClientToken() const { return m_clientToken; }
137 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
138 template <typename ClientTokenT = Aws::String>
139 void SetClientToken(ClientTokenT&& value) {
140 m_clientTokenHasBeenSet = true;
141 m_clientToken = std::forward<ClientTokenT>(value);
142 }
143 template <typename ClientTokenT = Aws::String>
145 SetClientToken(std::forward<ClientTokenT>(value));
146 return *this;
147 }
149
151
155 inline ConfidenceThreshold GetConfidenceThreshold() const { return m_confidenceThreshold; }
156 inline bool ConfidenceThresholdHasBeenSet() const { return m_confidenceThresholdHasBeenSet; }
158 m_confidenceThresholdHasBeenSet = true;
159 m_confidenceThreshold = value;
160 }
163 return *this;
164 }
166
168
171 inline const Aws::String& GetDescription() const { return m_description; }
172 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
173 template <typename DescriptionT = Aws::String>
174 void SetDescription(DescriptionT&& value) {
175 m_descriptionHasBeenSet = true;
176 m_description = std::forward<DescriptionT>(value);
177 }
178 template <typename DescriptionT = Aws::String>
180 SetDescription(std::forward<DescriptionT>(value));
181 return *this;
182 }
184
186
190 inline DnsAdvancedProtection GetDnsAdvancedProtection() const { return m_dnsAdvancedProtection; }
191 inline bool DnsAdvancedProtectionHasBeenSet() const { return m_dnsAdvancedProtectionHasBeenSet; }
193 m_dnsAdvancedProtectionHasBeenSet = true;
194 m_dnsAdvancedProtection = value;
195 }
198 return *this;
199 }
201
203
206 inline const Aws::String& GetFirewallRuleId() const { return m_firewallRuleId; }
207 inline bool FirewallRuleIdHasBeenSet() const { return m_firewallRuleIdHasBeenSet; }
208 template <typename FirewallRuleIdT = Aws::String>
209 void SetFirewallRuleId(FirewallRuleIdT&& value) {
210 m_firewallRuleIdHasBeenSet = true;
211 m_firewallRuleId = std::forward<FirewallRuleIdT>(value);
212 }
213 template <typename FirewallRuleIdT = Aws::String>
215 SetFirewallRuleId(std::forward<FirewallRuleIdT>(value));
216 return *this;
217 }
219
221
224 inline const Aws::String& GetName() const { return m_name; }
225 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
226 template <typename NameT = Aws::String>
227 void SetName(NameT&& value) {
228 m_nameHasBeenSet = true;
229 m_name = std::forward<NameT>(value);
230 }
231 template <typename NameT = Aws::String>
233 SetName(std::forward<NameT>(value));
234 return *this;
235 }
237
239
244 inline long long GetPriority() const { return m_priority; }
245 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
246 inline void SetPriority(long long value) {
247 m_priorityHasBeenSet = true;
248 m_priority = value;
249 }
250 inline UpdateFirewallRuleRequest& WithPriority(long long value) {
251 SetPriority(value);
252 return *this;
253 }
255 private:
257
259
260 Aws::String m_blockOverrideDomain;
261
262 int m_blockOverrideTtl{0};
263
265
267
269
270 Aws::String m_description;
271
273
274 Aws::String m_firewallRuleId;
275
276 Aws::String m_name;
277
278 long long m_priority{0};
279 bool m_actionHasBeenSet = false;
280 bool m_blockOverrideDnsTypeHasBeenSet = false;
281 bool m_blockOverrideDomainHasBeenSet = false;
282 bool m_blockOverrideTtlHasBeenSet = false;
283 bool m_blockResponseHasBeenSet = false;
284 bool m_clientTokenHasBeenSet = true;
285 bool m_confidenceThresholdHasBeenSet = false;
286 bool m_descriptionHasBeenSet = false;
287 bool m_dnsAdvancedProtectionHasBeenSet = false;
288 bool m_firewallRuleIdHasBeenSet = false;
289 bool m_nameHasBeenSet = false;
290 bool m_priorityHasBeenSet = false;
291};
292
293} // namespace Model
294} // namespace Route53GlobalResolver
295} // namespace Aws
UpdateFirewallRuleRequest & WithClientToken(ClientTokenT &&value)
UpdateFirewallRuleRequest & WithAction(FirewallRuleAction value)
UpdateFirewallRuleRequest & WithBlockOverrideDomain(BlockOverrideDomainT &&value)
UpdateFirewallRuleRequest & WithBlockOverrideDnsType(BlockOverrideDnsQueryType value)
UpdateFirewallRuleRequest & WithDescription(DescriptionT &&value)
UpdateFirewallRuleRequest & WithDnsAdvancedProtection(DnsAdvancedProtection value)
UpdateFirewallRuleRequest & WithBlockResponse(FirewallBlockResponse value)
AWS_ROUTE53GLOBALRESOLVER_API Aws::String SerializePayload() const override
UpdateFirewallRuleRequest & WithConfidenceThreshold(ConfidenceThreshold value)
AWS_ROUTE53GLOBALRESOLVER_API UpdateFirewallRuleRequest()=default
UpdateFirewallRuleRequest & WithFirewallRuleId(FirewallRuleIdT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String