// 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 DeleteServiceLinkedConfigurationRecorderInput {
    /// <p>The service principal of the Amazon Web Services service for the service-linked configuration recorder that you want to delete.</p>
    pub service_principal: ::std::option::Option<::std::string::String>,
}
impl DeleteServiceLinkedConfigurationRecorderInput {
    /// <p>The service principal of the Amazon Web Services service for the service-linked configuration recorder that you want to delete.</p>
    pub fn service_principal(&self) -> ::std::option::Option<&str> {
        self.service_principal.as_deref()
    }
}
impl DeleteServiceLinkedConfigurationRecorderInput {
    /// Creates a new builder-style object to manufacture [`DeleteServiceLinkedConfigurationRecorderInput`](crate::operation::delete_service_linked_configuration_recorder::DeleteServiceLinkedConfigurationRecorderInput).
    pub fn builder() -> crate::operation::delete_service_linked_configuration_recorder::builders::DeleteServiceLinkedConfigurationRecorderInputBuilder
    {
        crate::operation::delete_service_linked_configuration_recorder::builders::DeleteServiceLinkedConfigurationRecorderInputBuilder::default()
    }
}

/// A builder for [`DeleteServiceLinkedConfigurationRecorderInput`](crate::operation::delete_service_linked_configuration_recorder::DeleteServiceLinkedConfigurationRecorderInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteServiceLinkedConfigurationRecorderInputBuilder {
    pub(crate) service_principal: ::std::option::Option<::std::string::String>,
}
impl DeleteServiceLinkedConfigurationRecorderInputBuilder {
    /// <p>The service principal of the Amazon Web Services service for the service-linked configuration recorder that you want to delete.</p>
    /// This field is required.
    pub fn service_principal(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.service_principal = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The service principal of the Amazon Web Services service for the service-linked configuration recorder that you want to delete.</p>
    pub fn set_service_principal(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.service_principal = input;
        self
    }
    /// <p>The service principal of the Amazon Web Services service for the service-linked configuration recorder that you want to delete.</p>
    pub fn get_service_principal(&self) -> &::std::option::Option<::std::string::String> {
        &self.service_principal
    }
    /// Consumes the builder and constructs a [`DeleteServiceLinkedConfigurationRecorderInput`](crate::operation::delete_service_linked_configuration_recorder::DeleteServiceLinkedConfigurationRecorderInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::delete_service_linked_configuration_recorder::DeleteServiceLinkedConfigurationRecorderInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(
            crate::operation::delete_service_linked_configuration_recorder::DeleteServiceLinkedConfigurationRecorderInput {
                service_principal: self.service_principal,
            },
        )
    }
}
