aws_sdk_route53resolver/operation/update_firewall_rule/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::update_firewall_rule::_update_firewall_rule_output::UpdateFirewallRuleOutputBuilder;
3
4pub use crate::operation::update_firewall_rule::_update_firewall_rule_input::UpdateFirewallRuleInputBuilder;
5
6impl crate::operation::update_firewall_rule::builders::UpdateFirewallRuleInputBuilder {
7    /// Sends a request with this input using the given client.
8    pub async fn send_with(
9        self,
10        client: &crate::Client,
11    ) -> ::std::result::Result<
12        crate::operation::update_firewall_rule::UpdateFirewallRuleOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::update_firewall_rule::UpdateFirewallRuleError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.update_firewall_rule();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `UpdateFirewallRule`.
24///
25/// <p>Updates the specified firewall rule.</p>
26#[derive(::std::clone::Clone, ::std::fmt::Debug)]
27pub struct UpdateFirewallRuleFluentBuilder {
28    handle: ::std::sync::Arc<crate::client::Handle>,
29    inner: crate::operation::update_firewall_rule::builders::UpdateFirewallRuleInputBuilder,
30    config_override: ::std::option::Option<crate::config::Builder>,
31}
32impl
33    crate::client::customize::internal::CustomizableSend<
34        crate::operation::update_firewall_rule::UpdateFirewallRuleOutput,
35        crate::operation::update_firewall_rule::UpdateFirewallRuleError,
36    > for UpdateFirewallRuleFluentBuilder
37{
38    fn send(
39        self,
40        config_override: crate::config::Builder,
41    ) -> crate::client::customize::internal::BoxFuture<
42        crate::client::customize::internal::SendResult<
43            crate::operation::update_firewall_rule::UpdateFirewallRuleOutput,
44            crate::operation::update_firewall_rule::UpdateFirewallRuleError,
45        >,
46    > {
47        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
48    }
49}
50impl UpdateFirewallRuleFluentBuilder {
51    /// Creates a new `UpdateFirewallRuleFluentBuilder`.
52    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
53        Self {
54            handle,
55            inner: ::std::default::Default::default(),
56            config_override: ::std::option::Option::None,
57        }
58    }
59    /// Access the UpdateFirewallRule as a reference.
60    pub fn as_input(&self) -> &crate::operation::update_firewall_rule::builders::UpdateFirewallRuleInputBuilder {
61        &self.inner
62    }
63    /// Sends the request and returns the response.
64    ///
65    /// If an error occurs, an `SdkError` will be returned with additional details that
66    /// can be matched against.
67    ///
68    /// By default, any retryable failures will be retried twice. Retry behavior
69    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
70    /// set when configuring the client.
71    pub async fn send(
72        self,
73    ) -> ::std::result::Result<
74        crate::operation::update_firewall_rule::UpdateFirewallRuleOutput,
75        ::aws_smithy_runtime_api::client::result::SdkError<
76            crate::operation::update_firewall_rule::UpdateFirewallRuleError,
77            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
78        >,
79    > {
80        let input = self
81            .inner
82            .build()
83            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
84        let runtime_plugins = crate::operation::update_firewall_rule::UpdateFirewallRule::operation_runtime_plugins(
85            self.handle.runtime_plugins.clone(),
86            &self.handle.conf,
87            self.config_override,
88        );
89        crate::operation::update_firewall_rule::UpdateFirewallRule::orchestrate(&runtime_plugins, input).await
90    }
91
92    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
93    pub fn customize(
94        self,
95    ) -> crate::client::customize::CustomizableOperation<
96        crate::operation::update_firewall_rule::UpdateFirewallRuleOutput,
97        crate::operation::update_firewall_rule::UpdateFirewallRuleError,
98        Self,
99    > {
100        crate::client::customize::CustomizableOperation::new(self)
101    }
102    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
103        self.set_config_override(::std::option::Option::Some(config_override.into()));
104        self
105    }
106
107    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
108        self.config_override = config_override;
109        self
110    }
111    /// <p>The unique identifier of the firewall rule group for the rule.</p>
112    pub fn firewall_rule_group_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
113        self.inner = self.inner.firewall_rule_group_id(input.into());
114        self
115    }
116    /// <p>The unique identifier of the firewall rule group for the rule.</p>
117    pub fn set_firewall_rule_group_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
118        self.inner = self.inner.set_firewall_rule_group_id(input);
119        self
120    }
121    /// <p>The unique identifier of the firewall rule group for the rule.</p>
122    pub fn get_firewall_rule_group_id(&self) -> &::std::option::Option<::std::string::String> {
123        self.inner.get_firewall_rule_group_id()
124    }
125    /// <p>The ID of the domain list to use in the rule.</p>
126    pub fn firewall_domain_list_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
127        self.inner = self.inner.firewall_domain_list_id(input.into());
128        self
129    }
130    /// <p>The ID of the domain list to use in the rule.</p>
131    pub fn set_firewall_domain_list_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
132        self.inner = self.inner.set_firewall_domain_list_id(input);
133        self
134    }
135    /// <p>The ID of the domain list to use in the rule.</p>
136    pub fn get_firewall_domain_list_id(&self) -> &::std::option::Option<::std::string::String> {
137        self.inner.get_firewall_domain_list_id()
138    }
139    /// <p>The DNS Firewall Advanced rule ID.</p>
140    pub fn firewall_threat_protection_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
141        self.inner = self.inner.firewall_threat_protection_id(input.into());
142        self
143    }
144    /// <p>The DNS Firewall Advanced rule ID.</p>
145    pub fn set_firewall_threat_protection_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
146        self.inner = self.inner.set_firewall_threat_protection_id(input);
147        self
148    }
149    /// <p>The DNS Firewall Advanced rule ID.</p>
150    pub fn get_firewall_threat_protection_id(&self) -> &::std::option::Option<::std::string::String> {
151        self.inner.get_firewall_threat_protection_id()
152    }
153    /// <p>The setting that determines the processing order of the rule in the rule group. DNS Firewall processes the rules in a rule group by order of priority, starting from the lowest setting.</p>
154    /// <p>You must specify a unique priority for each rule in a rule group. To make it easier to insert rules later, leave space between the numbers, for example, use 100, 200, and so on. You can change the priority setting for the rules in a rule group at any time.</p>
155    pub fn priority(mut self, input: i32) -> Self {
156        self.inner = self.inner.priority(input);
157        self
158    }
159    /// <p>The setting that determines the processing order of the rule in the rule group. DNS Firewall processes the rules in a rule group by order of priority, starting from the lowest setting.</p>
160    /// <p>You must specify a unique priority for each rule in a rule group. To make it easier to insert rules later, leave space between the numbers, for example, use 100, 200, and so on. You can change the priority setting for the rules in a rule group at any time.</p>
161    pub fn set_priority(mut self, input: ::std::option::Option<i32>) -> Self {
162        self.inner = self.inner.set_priority(input);
163        self
164    }
165    /// <p>The setting that determines the processing order of the rule in the rule group. DNS Firewall processes the rules in a rule group by order of priority, starting from the lowest setting.</p>
166    /// <p>You must specify a unique priority for each rule in a rule group. To make it easier to insert rules later, leave space between the numbers, for example, use 100, 200, and so on. You can change the priority setting for the rules in a rule group at any time.</p>
167    pub fn get_priority(&self) -> &::std::option::Option<i32> {
168        self.inner.get_priority()
169    }
170    /// <p>The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list, or a threat in a DNS Firewall Advanced rule:</p>
171    /// <ul>
172    /// <li>
173    /// <p><code>ALLOW</code> - Permit the request to go through. Not available for DNS Firewall Advanced rules.</p></li>
174    /// <li>
175    /// <p><code>ALERT</code> - Permit the request to go through but send an alert to the logs.</p></li>
176    /// <li>
177    /// <p><code>BLOCK</code> - Disallow the request. This option requires additional details in the rule's <code>BlockResponse</code>.</p></li>
178    /// </ul>
179    pub fn action(mut self, input: crate::types::Action) -> Self {
180        self.inner = self.inner.action(input);
181        self
182    }
183    /// <p>The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list, or a threat in a DNS Firewall Advanced rule:</p>
184    /// <ul>
185    /// <li>
186    /// <p><code>ALLOW</code> - Permit the request to go through. Not available for DNS Firewall Advanced rules.</p></li>
187    /// <li>
188    /// <p><code>ALERT</code> - Permit the request to go through but send an alert to the logs.</p></li>
189    /// <li>
190    /// <p><code>BLOCK</code> - Disallow the request. This option requires additional details in the rule's <code>BlockResponse</code>.</p></li>
191    /// </ul>
192    pub fn set_action(mut self, input: ::std::option::Option<crate::types::Action>) -> Self {
193        self.inner = self.inner.set_action(input);
194        self
195    }
196    /// <p>The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list, or a threat in a DNS Firewall Advanced rule:</p>
197    /// <ul>
198    /// <li>
199    /// <p><code>ALLOW</code> - Permit the request to go through. Not available for DNS Firewall Advanced rules.</p></li>
200    /// <li>
201    /// <p><code>ALERT</code> - Permit the request to go through but send an alert to the logs.</p></li>
202    /// <li>
203    /// <p><code>BLOCK</code> - Disallow the request. This option requires additional details in the rule's <code>BlockResponse</code>.</p></li>
204    /// </ul>
205    pub fn get_action(&self) -> &::std::option::Option<crate::types::Action> {
206        self.inner.get_action()
207    }
208    /// <p>The way that you want DNS Firewall to block the request. Used for the rule action setting <code>BLOCK</code>.</p>
209    /// <ul>
210    /// <li>
211    /// <p><code>NODATA</code> - Respond indicating that the query was successful, but no response is available for it.</p></li>
212    /// <li>
213    /// <p><code>NXDOMAIN</code> - Respond indicating that the domain name that's in the query doesn't exist.</p></li>
214    /// <li>
215    /// <p><code>OVERRIDE</code> - Provide a custom override in the response. This option requires custom handling details in the rule's <code>BlockOverride*</code> settings.</p></li>
216    /// </ul>
217    pub fn block_response(mut self, input: crate::types::BlockResponse) -> Self {
218        self.inner = self.inner.block_response(input);
219        self
220    }
221    /// <p>The way that you want DNS Firewall to block the request. Used for the rule action setting <code>BLOCK</code>.</p>
222    /// <ul>
223    /// <li>
224    /// <p><code>NODATA</code> - Respond indicating that the query was successful, but no response is available for it.</p></li>
225    /// <li>
226    /// <p><code>NXDOMAIN</code> - Respond indicating that the domain name that's in the query doesn't exist.</p></li>
227    /// <li>
228    /// <p><code>OVERRIDE</code> - Provide a custom override in the response. This option requires custom handling details in the rule's <code>BlockOverride*</code> settings.</p></li>
229    /// </ul>
230    pub fn set_block_response(mut self, input: ::std::option::Option<crate::types::BlockResponse>) -> Self {
231        self.inner = self.inner.set_block_response(input);
232        self
233    }
234    /// <p>The way that you want DNS Firewall to block the request. Used for the rule action setting <code>BLOCK</code>.</p>
235    /// <ul>
236    /// <li>
237    /// <p><code>NODATA</code> - Respond indicating that the query was successful, but no response is available for it.</p></li>
238    /// <li>
239    /// <p><code>NXDOMAIN</code> - Respond indicating that the domain name that's in the query doesn't exist.</p></li>
240    /// <li>
241    /// <p><code>OVERRIDE</code> - Provide a custom override in the response. This option requires custom handling details in the rule's <code>BlockOverride*</code> settings.</p></li>
242    /// </ul>
243    pub fn get_block_response(&self) -> &::std::option::Option<crate::types::BlockResponse> {
244        self.inner.get_block_response()
245    }
246    /// <p>The custom DNS record to send back in response to the query. Used for the rule action <code>BLOCK</code> with a <code>BlockResponse</code> setting of <code>OVERRIDE</code>.</p>
247    pub fn block_override_domain(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
248        self.inner = self.inner.block_override_domain(input.into());
249        self
250    }
251    /// <p>The custom DNS record to send back in response to the query. Used for the rule action <code>BLOCK</code> with a <code>BlockResponse</code> setting of <code>OVERRIDE</code>.</p>
252    pub fn set_block_override_domain(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
253        self.inner = self.inner.set_block_override_domain(input);
254        self
255    }
256    /// <p>The custom DNS record to send back in response to the query. Used for the rule action <code>BLOCK</code> with a <code>BlockResponse</code> setting of <code>OVERRIDE</code>.</p>
257    pub fn get_block_override_domain(&self) -> &::std::option::Option<::std::string::String> {
258        self.inner.get_block_override_domain()
259    }
260    /// <p>The DNS record's type. This determines the format of the record value that you provided in <code>BlockOverrideDomain</code>. Used for the rule action <code>BLOCK</code> with a <code>BlockResponse</code> setting of <code>OVERRIDE</code>.</p>
261    pub fn block_override_dns_type(mut self, input: crate::types::BlockOverrideDnsType) -> Self {
262        self.inner = self.inner.block_override_dns_type(input);
263        self
264    }
265    /// <p>The DNS record's type. This determines the format of the record value that you provided in <code>BlockOverrideDomain</code>. Used for the rule action <code>BLOCK</code> with a <code>BlockResponse</code> setting of <code>OVERRIDE</code>.</p>
266    pub fn set_block_override_dns_type(mut self, input: ::std::option::Option<crate::types::BlockOverrideDnsType>) -> Self {
267        self.inner = self.inner.set_block_override_dns_type(input);
268        self
269    }
270    /// <p>The DNS record's type. This determines the format of the record value that you provided in <code>BlockOverrideDomain</code>. Used for the rule action <code>BLOCK</code> with a <code>BlockResponse</code> setting of <code>OVERRIDE</code>.</p>
271    pub fn get_block_override_dns_type(&self) -> &::std::option::Option<crate::types::BlockOverrideDnsType> {
272        self.inner.get_block_override_dns_type()
273    }
274    /// <p>The recommended amount of time, in seconds, for the DNS resolver or web browser to cache the provided override record. Used for the rule action <code>BLOCK</code> with a <code>BlockResponse</code> setting of <code>OVERRIDE</code>.</p>
275    pub fn block_override_ttl(mut self, input: i32) -> Self {
276        self.inner = self.inner.block_override_ttl(input);
277        self
278    }
279    /// <p>The recommended amount of time, in seconds, for the DNS resolver or web browser to cache the provided override record. Used for the rule action <code>BLOCK</code> with a <code>BlockResponse</code> setting of <code>OVERRIDE</code>.</p>
280    pub fn set_block_override_ttl(mut self, input: ::std::option::Option<i32>) -> Self {
281        self.inner = self.inner.set_block_override_ttl(input);
282        self
283    }
284    /// <p>The recommended amount of time, in seconds, for the DNS resolver or web browser to cache the provided override record. Used for the rule action <code>BLOCK</code> with a <code>BlockResponse</code> setting of <code>OVERRIDE</code>.</p>
285    pub fn get_block_override_ttl(&self) -> &::std::option::Option<i32> {
286        self.inner.get_block_override_ttl()
287    }
288    /// <p>The name of the rule.</p>
289    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
290        self.inner = self.inner.name(input.into());
291        self
292    }
293    /// <p>The name of the rule.</p>
294    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
295        self.inner = self.inner.set_name(input);
296        self
297    }
298    /// <p>The name of the rule.</p>
299    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
300        self.inner.get_name()
301    }
302    /// <p>How you want the the rule to evaluate DNS redirection in the DNS redirection chain, such as CNAME or DNAME.</p>
303    /// <p><code>INSPECT_REDIRECTION_DOMAIN</code>: (Default) inspects all domains in the redirection chain. The individual domains in the redirection chain must be added to the domain list.</p>
304    /// <p><code>TRUST_REDIRECTION_DOMAIN</code>: Inspects only the first domain in the redirection chain. You don't need to add the subsequent domains in the domain in the redirection list to the domain list.</p>
305    pub fn firewall_domain_redirection_action(mut self, input: crate::types::FirewallDomainRedirectionAction) -> Self {
306        self.inner = self.inner.firewall_domain_redirection_action(input);
307        self
308    }
309    /// <p>How you want the the rule to evaluate DNS redirection in the DNS redirection chain, such as CNAME or DNAME.</p>
310    /// <p><code>INSPECT_REDIRECTION_DOMAIN</code>: (Default) inspects all domains in the redirection chain. The individual domains in the redirection chain must be added to the domain list.</p>
311    /// <p><code>TRUST_REDIRECTION_DOMAIN</code>: Inspects only the first domain in the redirection chain. You don't need to add the subsequent domains in the domain in the redirection list to the domain list.</p>
312    pub fn set_firewall_domain_redirection_action(mut self, input: ::std::option::Option<crate::types::FirewallDomainRedirectionAction>) -> Self {
313        self.inner = self.inner.set_firewall_domain_redirection_action(input);
314        self
315    }
316    /// <p>How you want the the rule to evaluate DNS redirection in the DNS redirection chain, such as CNAME or DNAME.</p>
317    /// <p><code>INSPECT_REDIRECTION_DOMAIN</code>: (Default) inspects all domains in the redirection chain. The individual domains in the redirection chain must be added to the domain list.</p>
318    /// <p><code>TRUST_REDIRECTION_DOMAIN</code>: Inspects only the first domain in the redirection chain. You don't need to add the subsequent domains in the domain in the redirection list to the domain list.</p>
319    pub fn get_firewall_domain_redirection_action(&self) -> &::std::option::Option<crate::types::FirewallDomainRedirectionAction> {
320        self.inner.get_firewall_domain_redirection_action()
321    }
322    /// <p>The DNS query type you want the rule to evaluate. Allowed values are;</p>
323    /// <ul>
324    /// <li>
325    /// <p>A: Returns an IPv4 address.</p></li>
326    /// <li>
327    /// <p>AAAA: Returns an Ipv6 address.</p></li>
328    /// <li>
329    /// <p>CAA: Restricts CAs that can create SSL/TLS certifications for the domain.</p></li>
330    /// <li>
331    /// <p>CNAME: Returns another domain name.</p></li>
332    /// <li>
333    /// <p>DS: Record that identifies the DNSSEC signing key of a delegated zone.</p></li>
334    /// <li>
335    /// <p>MX: Specifies mail servers.</p></li>
336    /// <li>
337    /// <p>NAPTR: Regular-expression-based rewriting of domain names.</p></li>
338    /// <li>
339    /// <p>NS: Authoritative name servers.</p></li>
340    /// <li>
341    /// <p>PTR: Maps an IP address to a domain name.</p></li>
342    /// <li>
343    /// <p>SOA: Start of authority record for the zone.</p></li>
344    /// <li>
345    /// <p>SPF: Lists the servers authorized to send emails from a domain.</p></li>
346    /// <li>
347    /// <p>SRV: Application specific values that identify servers.</p></li>
348    /// <li>
349    /// <p>TXT: Verifies email senders and application-specific values.</p></li>
350    /// <li>
351    /// <p>A query type you define by using the DNS type ID, for example 28 for AAAA. The values must be defined as TYPENUMBER, where the NUMBER can be 1-65334, for example, TYPE28. For more information, see <a href="https://en.wikipedia.org/wiki/List_of_DNS_record_types">List of DNS record types</a>.</p><note>
352    /// <p>If you set up a firewall BLOCK rule with action NXDOMAIN on query type equals AAAA, this action will not be applied to synthetic IPv6 addresses generated when DNS64 is enabled.</p>
353    /// </note></li>
354    /// </ul>
355    pub fn qtype(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
356        self.inner = self.inner.qtype(input.into());
357        self
358    }
359    /// <p>The DNS query type you want the rule to evaluate. Allowed values are;</p>
360    /// <ul>
361    /// <li>
362    /// <p>A: Returns an IPv4 address.</p></li>
363    /// <li>
364    /// <p>AAAA: Returns an Ipv6 address.</p></li>
365    /// <li>
366    /// <p>CAA: Restricts CAs that can create SSL/TLS certifications for the domain.</p></li>
367    /// <li>
368    /// <p>CNAME: Returns another domain name.</p></li>
369    /// <li>
370    /// <p>DS: Record that identifies the DNSSEC signing key of a delegated zone.</p></li>
371    /// <li>
372    /// <p>MX: Specifies mail servers.</p></li>
373    /// <li>
374    /// <p>NAPTR: Regular-expression-based rewriting of domain names.</p></li>
375    /// <li>
376    /// <p>NS: Authoritative name servers.</p></li>
377    /// <li>
378    /// <p>PTR: Maps an IP address to a domain name.</p></li>
379    /// <li>
380    /// <p>SOA: Start of authority record for the zone.</p></li>
381    /// <li>
382    /// <p>SPF: Lists the servers authorized to send emails from a domain.</p></li>
383    /// <li>
384    /// <p>SRV: Application specific values that identify servers.</p></li>
385    /// <li>
386    /// <p>TXT: Verifies email senders and application-specific values.</p></li>
387    /// <li>
388    /// <p>A query type you define by using the DNS type ID, for example 28 for AAAA. The values must be defined as TYPENUMBER, where the NUMBER can be 1-65334, for example, TYPE28. For more information, see <a href="https://en.wikipedia.org/wiki/List_of_DNS_record_types">List of DNS record types</a>.</p><note>
389    /// <p>If you set up a firewall BLOCK rule with action NXDOMAIN on query type equals AAAA, this action will not be applied to synthetic IPv6 addresses generated when DNS64 is enabled.</p>
390    /// </note></li>
391    /// </ul>
392    pub fn set_qtype(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
393        self.inner = self.inner.set_qtype(input);
394        self
395    }
396    /// <p>The DNS query type you want the rule to evaluate. Allowed values are;</p>
397    /// <ul>
398    /// <li>
399    /// <p>A: Returns an IPv4 address.</p></li>
400    /// <li>
401    /// <p>AAAA: Returns an Ipv6 address.</p></li>
402    /// <li>
403    /// <p>CAA: Restricts CAs that can create SSL/TLS certifications for the domain.</p></li>
404    /// <li>
405    /// <p>CNAME: Returns another domain name.</p></li>
406    /// <li>
407    /// <p>DS: Record that identifies the DNSSEC signing key of a delegated zone.</p></li>
408    /// <li>
409    /// <p>MX: Specifies mail servers.</p></li>
410    /// <li>
411    /// <p>NAPTR: Regular-expression-based rewriting of domain names.</p></li>
412    /// <li>
413    /// <p>NS: Authoritative name servers.</p></li>
414    /// <li>
415    /// <p>PTR: Maps an IP address to a domain name.</p></li>
416    /// <li>
417    /// <p>SOA: Start of authority record for the zone.</p></li>
418    /// <li>
419    /// <p>SPF: Lists the servers authorized to send emails from a domain.</p></li>
420    /// <li>
421    /// <p>SRV: Application specific values that identify servers.</p></li>
422    /// <li>
423    /// <p>TXT: Verifies email senders and application-specific values.</p></li>
424    /// <li>
425    /// <p>A query type you define by using the DNS type ID, for example 28 for AAAA. The values must be defined as TYPENUMBER, where the NUMBER can be 1-65334, for example, TYPE28. For more information, see <a href="https://en.wikipedia.org/wiki/List_of_DNS_record_types">List of DNS record types</a>.</p><note>
426    /// <p>If you set up a firewall BLOCK rule with action NXDOMAIN on query type equals AAAA, this action will not be applied to synthetic IPv6 addresses generated when DNS64 is enabled.</p>
427    /// </note></li>
428    /// </ul>
429    pub fn get_qtype(&self) -> &::std::option::Option<::std::string::String> {
430        self.inner.get_qtype()
431    }
432    /// <p>The type of the DNS Firewall Advanced rule. Valid values are:</p>
433    /// <ul>
434    /// <li>
435    /// <p><code>DGA</code>: Domain generation algorithms detection. DGAs are used by attackers to generate a large number of domains to to launch malware attacks.</p></li>
436    /// <li>
437    /// <p><code>DNS_TUNNELING</code>: DNS tunneling detection. DNS tunneling is used by attackers to exfiltrate data from the client by using the DNS tunnel without making a network connection to the client.</p></li>
438    /// </ul>
439    pub fn dns_threat_protection(mut self, input: crate::types::DnsThreatProtection) -> Self {
440        self.inner = self.inner.dns_threat_protection(input);
441        self
442    }
443    /// <p>The type of the DNS Firewall Advanced rule. Valid values are:</p>
444    /// <ul>
445    /// <li>
446    /// <p><code>DGA</code>: Domain generation algorithms detection. DGAs are used by attackers to generate a large number of domains to to launch malware attacks.</p></li>
447    /// <li>
448    /// <p><code>DNS_TUNNELING</code>: DNS tunneling detection. DNS tunneling is used by attackers to exfiltrate data from the client by using the DNS tunnel without making a network connection to the client.</p></li>
449    /// </ul>
450    pub fn set_dns_threat_protection(mut self, input: ::std::option::Option<crate::types::DnsThreatProtection>) -> Self {
451        self.inner = self.inner.set_dns_threat_protection(input);
452        self
453    }
454    /// <p>The type of the DNS Firewall Advanced rule. Valid values are:</p>
455    /// <ul>
456    /// <li>
457    /// <p><code>DGA</code>: Domain generation algorithms detection. DGAs are used by attackers to generate a large number of domains to to launch malware attacks.</p></li>
458    /// <li>
459    /// <p><code>DNS_TUNNELING</code>: DNS tunneling detection. DNS tunneling is used by attackers to exfiltrate data from the client by using the DNS tunnel without making a network connection to the client.</p></li>
460    /// </ul>
461    pub fn get_dns_threat_protection(&self) -> &::std::option::Option<crate::types::DnsThreatProtection> {
462        self.inner.get_dns_threat_protection()
463    }
464    /// <p>The confidence threshold for DNS Firewall Advanced. You must provide this value when you create a DNS Firewall Advanced rule. The confidence level values mean:</p>
465    /// <ul>
466    /// <li>
467    /// <p><code>LOW</code>: Provides the highest detection rate for threats, but also increases false positives.</p></li>
468    /// <li>
469    /// <p><code>MEDIUM</code>: Provides a balance between detecting threats and false positives.</p></li>
470    /// <li>
471    /// <p><code>HIGH</code>: Detects only the most well corroborated threats with a low rate of false positives.</p></li>
472    /// </ul>
473    pub fn confidence_threshold(mut self, input: crate::types::ConfidenceThreshold) -> Self {
474        self.inner = self.inner.confidence_threshold(input);
475        self
476    }
477    /// <p>The confidence threshold for DNS Firewall Advanced. You must provide this value when you create a DNS Firewall Advanced rule. The confidence level values mean:</p>
478    /// <ul>
479    /// <li>
480    /// <p><code>LOW</code>: Provides the highest detection rate for threats, but also increases false positives.</p></li>
481    /// <li>
482    /// <p><code>MEDIUM</code>: Provides a balance between detecting threats and false positives.</p></li>
483    /// <li>
484    /// <p><code>HIGH</code>: Detects only the most well corroborated threats with a low rate of false positives.</p></li>
485    /// </ul>
486    pub fn set_confidence_threshold(mut self, input: ::std::option::Option<crate::types::ConfidenceThreshold>) -> Self {
487        self.inner = self.inner.set_confidence_threshold(input);
488        self
489    }
490    /// <p>The confidence threshold for DNS Firewall Advanced. You must provide this value when you create a DNS Firewall Advanced rule. The confidence level values mean:</p>
491    /// <ul>
492    /// <li>
493    /// <p><code>LOW</code>: Provides the highest detection rate for threats, but also increases false positives.</p></li>
494    /// <li>
495    /// <p><code>MEDIUM</code>: Provides a balance between detecting threats and false positives.</p></li>
496    /// <li>
497    /// <p><code>HIGH</code>: Detects only the most well corroborated threats with a low rate of false positives.</p></li>
498    /// </ul>
499    pub fn get_confidence_threshold(&self) -> &::std::option::Option<crate::types::ConfidenceThreshold> {
500        self.inner.get_confidence_threshold()
501    }
502}