aws-sdk-iot 1.112.0

AWS SDK for AWS IoT
Documentation
// 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 DeleteCertificateProviderInput {
    /// <p>The name of the certificate provider.</p>
    pub certificate_provider_name: ::std::option::Option<::std::string::String>,
}
impl DeleteCertificateProviderInput {
    /// <p>The name of the certificate provider.</p>
    pub fn certificate_provider_name(&self) -> ::std::option::Option<&str> {
        self.certificate_provider_name.as_deref()
    }
}
impl DeleteCertificateProviderInput {
    /// Creates a new builder-style object to manufacture [`DeleteCertificateProviderInput`](crate::operation::delete_certificate_provider::DeleteCertificateProviderInput).
    pub fn builder() -> crate::operation::delete_certificate_provider::builders::DeleteCertificateProviderInputBuilder {
        crate::operation::delete_certificate_provider::builders::DeleteCertificateProviderInputBuilder::default()
    }
}

/// A builder for [`DeleteCertificateProviderInput`](crate::operation::delete_certificate_provider::DeleteCertificateProviderInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteCertificateProviderInputBuilder {
    pub(crate) certificate_provider_name: ::std::option::Option<::std::string::String>,
}
impl DeleteCertificateProviderInputBuilder {
    /// <p>The name of the certificate provider.</p>
    /// This field is required.
    pub fn certificate_provider_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.certificate_provider_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the certificate provider.</p>
    pub fn set_certificate_provider_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.certificate_provider_name = input;
        self
    }
    /// <p>The name of the certificate provider.</p>
    pub fn get_certificate_provider_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.certificate_provider_name
    }
    /// Consumes the builder and constructs a [`DeleteCertificateProviderInput`](crate::operation::delete_certificate_provider::DeleteCertificateProviderInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::delete_certificate_provider::DeleteCertificateProviderInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::delete_certificate_provider::DeleteCertificateProviderInput {
            certificate_provider_name: self.certificate_provider_name,
        })
    }
}