Skip to main content

aws_sdk_wafv2/operation/associate_web_acl/
_associate_web_acl_output.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct AssociateWebAclOutput {
6    _request_id: Option<String>,
7}
8impl ::aws_types::request_id::RequestId for AssociateWebAclOutput {
9    fn request_id(&self) -> Option<&str> {
10        self._request_id.as_deref()
11    }
12}
13impl AssociateWebAclOutput {
14    /// Creates a new builder-style object to manufacture [`AssociateWebAclOutput`](crate::operation::associate_web_acl::AssociateWebAclOutput).
15    pub fn builder() -> crate::operation::associate_web_acl::builders::AssociateWebAclOutputBuilder {
16        crate::operation::associate_web_acl::builders::AssociateWebAclOutputBuilder::default()
17    }
18}
19
20/// A builder for [`AssociateWebAclOutput`](crate::operation::associate_web_acl::AssociateWebAclOutput).
21#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
22#[non_exhaustive]
23pub struct AssociateWebAclOutputBuilder {
24    _request_id: Option<String>,
25}
26impl AssociateWebAclOutputBuilder {
27    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
28        self._request_id = Some(request_id.into());
29        self
30    }
31
32    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
33        self._request_id = request_id;
34        self
35    }
36    /// Consumes the builder and constructs a [`AssociateWebAclOutput`](crate::operation::associate_web_acl::AssociateWebAclOutput).
37    pub fn build(self) -> crate::operation::associate_web_acl::AssociateWebAclOutput {
38        crate::operation::associate_web_acl::AssociateWebAclOutput {
39            _request_id: self._request_id,
40        }
41    }
42}