AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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/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 CreateFirewallRuleRequest() = 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 "CreateFirewallRule"; }
34
35 AWS_ROUTE53GLOBALRESOLVER_API Aws::String SerializePayload() const override;
36
38
46 inline FirewallRuleAction GetAction() const { return m_action; }
47 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
48 inline void SetAction(FirewallRuleAction value) {
49 m_actionHasBeenSet = true;
50 m_action = value;
51 }
53 SetAction(value);
54 return *this;
55 }
57
59
66 inline BlockOverrideDnsQueryType GetBlockOverrideDnsType() const { return m_blockOverrideDnsType; }
67 inline bool BlockOverrideDnsTypeHasBeenSet() const { return m_blockOverrideDnsTypeHasBeenSet; }
69 m_blockOverrideDnsTypeHasBeenSet = true;
70 m_blockOverrideDnsType = value;
71 }
74 return *this;
75 }
77
79
85 inline const Aws::String& GetBlockOverrideDomain() const { return m_blockOverrideDomain; }
86 inline bool BlockOverrideDomainHasBeenSet() const { return m_blockOverrideDomainHasBeenSet; }
87 template <typename BlockOverrideDomainT = Aws::String>
88 void SetBlockOverrideDomain(BlockOverrideDomainT&& value) {
89 m_blockOverrideDomainHasBeenSet = true;
90 m_blockOverrideDomain = std::forward<BlockOverrideDomainT>(value);
91 }
92 template <typename BlockOverrideDomainT = Aws::String>
93 CreateFirewallRuleRequest& WithBlockOverrideDomain(BlockOverrideDomainT&& value) {
94 SetBlockOverrideDomain(std::forward<BlockOverrideDomainT>(value));
95 return *this;
96 }
98
100
107 inline int GetBlockOverrideTtl() const { return m_blockOverrideTtl; }
108 inline bool BlockOverrideTtlHasBeenSet() const { return m_blockOverrideTtlHasBeenSet; }
109 inline void SetBlockOverrideTtl(int value) {
110 m_blockOverrideTtlHasBeenSet = true;
111 m_blockOverrideTtl = value;
112 }
114 SetBlockOverrideTtl(value);
115 return *this;
116 }
118
120
125 inline FirewallBlockResponse GetBlockResponse() const { return m_blockResponse; }
126 inline bool BlockResponseHasBeenSet() const { return m_blockResponseHasBeenSet; }
128 m_blockResponseHasBeenSet = true;
129 m_blockResponse = value;
130 }
132 SetBlockResponse(value);
133 return *this;
134 }
136
138
143 inline const Aws::String& GetClientToken() const { return m_clientToken; }
144 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
145 template <typename ClientTokenT = Aws::String>
146 void SetClientToken(ClientTokenT&& value) {
147 m_clientTokenHasBeenSet = true;
148 m_clientToken = std::forward<ClientTokenT>(value);
149 }
150 template <typename ClientTokenT = Aws::String>
152 SetClientToken(std::forward<ClientTokenT>(value));
153 return *this;
154 }
156
158
163 inline ConfidenceThreshold GetConfidenceThreshold() const { return m_confidenceThreshold; }
164 inline bool ConfidenceThresholdHasBeenSet() const { return m_confidenceThresholdHasBeenSet; }
166 m_confidenceThresholdHasBeenSet = true;
167 m_confidenceThreshold = value;
168 }
171 return *this;
172 }
174
176
179 inline const Aws::String& GetDescription() const { return m_description; }
180 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
181 template <typename DescriptionT = Aws::String>
182 void SetDescription(DescriptionT&& value) {
183 m_descriptionHasBeenSet = true;
184 m_description = std::forward<DescriptionT>(value);
185 }
186 template <typename DescriptionT = Aws::String>
188 SetDescription(std::forward<DescriptionT>(value));
189 return *this;
190 }
192
194
199 inline DnsAdvancedProtection GetDnsAdvancedProtection() const { return m_dnsAdvancedProtection; }
200 inline bool DnsAdvancedProtectionHasBeenSet() const { return m_dnsAdvancedProtectionHasBeenSet; }
202 m_dnsAdvancedProtectionHasBeenSet = true;
203 m_dnsAdvancedProtection = value;
204 }
207 return *this;
208 }
210
212
215 inline const Aws::String& GetFirewallDomainListId() const { return m_firewallDomainListId; }
216 inline bool FirewallDomainListIdHasBeenSet() const { return m_firewallDomainListIdHasBeenSet; }
217 template <typename FirewallDomainListIdT = Aws::String>
218 void SetFirewallDomainListId(FirewallDomainListIdT&& value) {
219 m_firewallDomainListIdHasBeenSet = true;
220 m_firewallDomainListId = std::forward<FirewallDomainListIdT>(value);
221 }
222 template <typename FirewallDomainListIdT = Aws::String>
223 CreateFirewallRuleRequest& WithFirewallDomainListId(FirewallDomainListIdT&& value) {
224 SetFirewallDomainListId(std::forward<FirewallDomainListIdT>(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
253 inline long long GetPriority() const { return m_priority; }
254 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
255 inline void SetPriority(long long value) {
256 m_priorityHasBeenSet = true;
257 m_priority = value;
258 }
259 inline CreateFirewallRuleRequest& WithPriority(long long value) {
260 SetPriority(value);
261 return *this;
262 }
264
266
269 inline const Aws::String& GetDnsViewId() const { return m_dnsViewId; }
270 inline bool DnsViewIdHasBeenSet() const { return m_dnsViewIdHasBeenSet; }
271 template <typename DnsViewIdT = Aws::String>
272 void SetDnsViewId(DnsViewIdT&& value) {
273 m_dnsViewIdHasBeenSet = true;
274 m_dnsViewId = std::forward<DnsViewIdT>(value);
275 }
276 template <typename DnsViewIdT = Aws::String>
278 SetDnsViewId(std::forward<DnsViewIdT>(value));
279 return *this;
280 }
282
284
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 private:
303
305
306 Aws::String m_blockOverrideDomain;
307
308 int m_blockOverrideTtl{0};
309
311
313
315
316 Aws::String m_description;
317
319
320 Aws::String m_firewallDomainListId;
321
322 Aws::String m_name;
323
324 long long m_priority{0};
325
326 Aws::String m_dnsViewId;
327
328 Aws::String m_qType;
329 bool m_actionHasBeenSet = false;
330 bool m_blockOverrideDnsTypeHasBeenSet = false;
331 bool m_blockOverrideDomainHasBeenSet = false;
332 bool m_blockOverrideTtlHasBeenSet = false;
333 bool m_blockResponseHasBeenSet = false;
334 bool m_clientTokenHasBeenSet = true;
335 bool m_confidenceThresholdHasBeenSet = false;
336 bool m_descriptionHasBeenSet = false;
337 bool m_dnsAdvancedProtectionHasBeenSet = false;
338 bool m_firewallDomainListIdHasBeenSet = false;
339 bool m_nameHasBeenSet = false;
340 bool m_priorityHasBeenSet = false;
341 bool m_dnsViewIdHasBeenSet = false;
342 bool m_qTypeHasBeenSet = false;
343};
344
345} // namespace Model
346} // namespace Route53GlobalResolver
347} // namespace Aws
CreateFirewallRuleRequest & WithFirewallDomainListId(FirewallDomainListIdT &&value)
CreateFirewallRuleRequest & WithDescription(DescriptionT &&value)
CreateFirewallRuleRequest & WithBlockOverrideDomain(BlockOverrideDomainT &&value)
CreateFirewallRuleRequest & WithBlockResponse(FirewallBlockResponse value)
AWS_ROUTE53GLOBALRESOLVER_API CreateFirewallRuleRequest()=default
CreateFirewallRuleRequest & WithAction(FirewallRuleAction value)
CreateFirewallRuleRequest & WithBlockOverrideDnsType(BlockOverrideDnsQueryType value)
CreateFirewallRuleRequest & WithDnsViewId(DnsViewIdT &&value)
CreateFirewallRuleRequest & WithConfidenceThreshold(ConfidenceThreshold value)
CreateFirewallRuleRequest & WithClientToken(ClientTokenT &&value)
CreateFirewallRuleRequest & WithDnsAdvancedProtection(DnsAdvancedProtection value)
AWS_ROUTE53GLOBALRESOLVER_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String