Skip to main content

aws_sdk_waf/operation/delete_sql_injection_match_set/
_delete_sql_injection_match_set_output.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>The response to a request to delete a <code>SqlInjectionMatchSet</code> from AWS WAF.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct DeleteSqlInjectionMatchSetOutput {
7    /// <p>The <code>ChangeToken</code> that you used to submit the <code>DeleteSqlInjectionMatchSet</code> request. You can also use this value to query the status of the request. For more information, see <code>GetChangeTokenStatus</code>.</p>
8    pub change_token: ::std::option::Option<::std::string::String>,
9    _request_id: Option<String>,
10}
11impl DeleteSqlInjectionMatchSetOutput {
12    /// <p>The <code>ChangeToken</code> that you used to submit the <code>DeleteSqlInjectionMatchSet</code> request. You can also use this value to query the status of the request. For more information, see <code>GetChangeTokenStatus</code>.</p>
13    pub fn change_token(&self) -> ::std::option::Option<&str> {
14        self.change_token.as_deref()
15    }
16}
17impl ::aws_types::request_id::RequestId for DeleteSqlInjectionMatchSetOutput {
18    fn request_id(&self) -> Option<&str> {
19        self._request_id.as_deref()
20    }
21}
22impl DeleteSqlInjectionMatchSetOutput {
23    /// Creates a new builder-style object to manufacture [`DeleteSqlInjectionMatchSetOutput`](crate::operation::delete_sql_injection_match_set::DeleteSqlInjectionMatchSetOutput).
24    pub fn builder() -> crate::operation::delete_sql_injection_match_set::builders::DeleteSqlInjectionMatchSetOutputBuilder {
25        crate::operation::delete_sql_injection_match_set::builders::DeleteSqlInjectionMatchSetOutputBuilder::default()
26    }
27}
28
29/// A builder for [`DeleteSqlInjectionMatchSetOutput`](crate::operation::delete_sql_injection_match_set::DeleteSqlInjectionMatchSetOutput).
30#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
31#[non_exhaustive]
32pub struct DeleteSqlInjectionMatchSetOutputBuilder {
33    pub(crate) change_token: ::std::option::Option<::std::string::String>,
34    _request_id: Option<String>,
35}
36impl DeleteSqlInjectionMatchSetOutputBuilder {
37    /// <p>The <code>ChangeToken</code> that you used to submit the <code>DeleteSqlInjectionMatchSet</code> request. You can also use this value to query the status of the request. For more information, see <code>GetChangeTokenStatus</code>.</p>
38    pub fn change_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
39        self.change_token = ::std::option::Option::Some(input.into());
40        self
41    }
42    /// <p>The <code>ChangeToken</code> that you used to submit the <code>DeleteSqlInjectionMatchSet</code> request. You can also use this value to query the status of the request. For more information, see <code>GetChangeTokenStatus</code>.</p>
43    pub fn set_change_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
44        self.change_token = input;
45        self
46    }
47    /// <p>The <code>ChangeToken</code> that you used to submit the <code>DeleteSqlInjectionMatchSet</code> request. You can also use this value to query the status of the request. For more information, see <code>GetChangeTokenStatus</code>.</p>
48    pub fn get_change_token(&self) -> &::std::option::Option<::std::string::String> {
49        &self.change_token
50    }
51    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
52        self._request_id = Some(request_id.into());
53        self
54    }
55
56    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
57        self._request_id = request_id;
58        self
59    }
60    /// Consumes the builder and constructs a [`DeleteSqlInjectionMatchSetOutput`](crate::operation::delete_sql_injection_match_set::DeleteSqlInjectionMatchSetOutput).
61    pub fn build(self) -> crate::operation::delete_sql_injection_match_set::DeleteSqlInjectionMatchSetOutput {
62        crate::operation::delete_sql_injection_match_set::DeleteSqlInjectionMatchSetOutput {
63            change_token: self.change_token,
64            _request_id: self._request_id,
65        }
66    }
67}