// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DisassociateResourceTypesOutput {
    /// <p>Records configuration changes to the resource types in scope.</p>
    /// <p>For more information about the configuration recorder, see <a href="https://docs.aws.amazon.com/config/latest/developerguide/stop-start-recorder.html"> <b>Working with the Configuration Recorder</b> </a> in the <i>Config Developer Guide</i>.</p>
    pub configuration_recorder: ::std::option::Option<crate::types::ConfigurationRecorder>,
    _request_id: Option<String>,
}
impl DisassociateResourceTypesOutput {
    /// <p>Records configuration changes to the resource types in scope.</p>
    /// <p>For more information about the configuration recorder, see <a href="https://docs.aws.amazon.com/config/latest/developerguide/stop-start-recorder.html"> <b>Working with the Configuration Recorder</b> </a> in the <i>Config Developer Guide</i>.</p>
    pub fn configuration_recorder(&self) -> ::std::option::Option<&crate::types::ConfigurationRecorder> {
        self.configuration_recorder.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for DisassociateResourceTypesOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl DisassociateResourceTypesOutput {
    /// Creates a new builder-style object to manufacture [`DisassociateResourceTypesOutput`](crate::operation::disassociate_resource_types::DisassociateResourceTypesOutput).
    pub fn builder() -> crate::operation::disassociate_resource_types::builders::DisassociateResourceTypesOutputBuilder {
        crate::operation::disassociate_resource_types::builders::DisassociateResourceTypesOutputBuilder::default()
    }
}

/// A builder for [`DisassociateResourceTypesOutput`](crate::operation::disassociate_resource_types::DisassociateResourceTypesOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DisassociateResourceTypesOutputBuilder {
    pub(crate) configuration_recorder: ::std::option::Option<crate::types::ConfigurationRecorder>,
    _request_id: Option<String>,
}
impl DisassociateResourceTypesOutputBuilder {
    /// <p>Records configuration changes to the resource types in scope.</p>
    /// <p>For more information about the configuration recorder, see <a href="https://docs.aws.amazon.com/config/latest/developerguide/stop-start-recorder.html"> <b>Working with the Configuration Recorder</b> </a> in the <i>Config Developer Guide</i>.</p>
    /// This field is required.
    pub fn configuration_recorder(mut self, input: crate::types::ConfigurationRecorder) -> Self {
        self.configuration_recorder = ::std::option::Option::Some(input);
        self
    }
    /// <p>Records configuration changes to the resource types in scope.</p>
    /// <p>For more information about the configuration recorder, see <a href="https://docs.aws.amazon.com/config/latest/developerguide/stop-start-recorder.html"> <b>Working with the Configuration Recorder</b> </a> in the <i>Config Developer Guide</i>.</p>
    pub fn set_configuration_recorder(mut self, input: ::std::option::Option<crate::types::ConfigurationRecorder>) -> Self {
        self.configuration_recorder = input;
        self
    }
    /// <p>Records configuration changes to the resource types in scope.</p>
    /// <p>For more information about the configuration recorder, see <a href="https://docs.aws.amazon.com/config/latest/developerguide/stop-start-recorder.html"> <b>Working with the Configuration Recorder</b> </a> in the <i>Config Developer Guide</i>.</p>
    pub fn get_configuration_recorder(&self) -> &::std::option::Option<crate::types::ConfigurationRecorder> {
        &self.configuration_recorder
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`DisassociateResourceTypesOutput`](crate::operation::disassociate_resource_types::DisassociateResourceTypesOutput).
    pub fn build(self) -> crate::operation::disassociate_resource_types::DisassociateResourceTypesOutput {
        crate::operation::disassociate_resource_types::DisassociateResourceTypesOutput {
            configuration_recorder: self.configuration_recorder,
            _request_id: self._request_id,
        }
    }
}
