aws-sdk-iotmanagedintegrations 1.42.0

AWS SDK for Managed integrations for AWS IoT Device Management
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 DeleteProvisioningProfileInput {
    /// <p>The name of the provisioning template.</p>
    pub identifier: ::std::option::Option<::std::string::String>,
}
impl DeleteProvisioningProfileInput {
    /// <p>The name of the provisioning template.</p>
    pub fn identifier(&self) -> ::std::option::Option<&str> {
        self.identifier.as_deref()
    }
}
impl DeleteProvisioningProfileInput {
    /// Creates a new builder-style object to manufacture [`DeleteProvisioningProfileInput`](crate::operation::delete_provisioning_profile::DeleteProvisioningProfileInput).
    pub fn builder() -> crate::operation::delete_provisioning_profile::builders::DeleteProvisioningProfileInputBuilder {
        crate::operation::delete_provisioning_profile::builders::DeleteProvisioningProfileInputBuilder::default()
    }
}

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