aws-sdk-cloudhsm 1.94.0

AWS SDK for Amazon CloudHSM
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 DeleteLunaClientInput {
    /// <p>The ARN of the client to delete.</p>
    pub client_arn: ::std::option::Option<::std::string::String>,
}
impl DeleteLunaClientInput {
    /// <p>The ARN of the client to delete.</p>
    pub fn client_arn(&self) -> ::std::option::Option<&str> {
        self.client_arn.as_deref()
    }
}
impl DeleteLunaClientInput {
    /// Creates a new builder-style object to manufacture [`DeleteLunaClientInput`](crate::operation::delete_luna_client::DeleteLunaClientInput).
    pub fn builder() -> crate::operation::delete_luna_client::builders::DeleteLunaClientInputBuilder {
        crate::operation::delete_luna_client::builders::DeleteLunaClientInputBuilder::default()
    }
}

/// A builder for [`DeleteLunaClientInput`](crate::operation::delete_luna_client::DeleteLunaClientInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteLunaClientInputBuilder {
    pub(crate) client_arn: ::std::option::Option<::std::string::String>,
}
impl DeleteLunaClientInputBuilder {
    /// <p>The ARN of the client to delete.</p>
    /// This field is required.
    pub fn client_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.client_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ARN of the client to delete.</p>
    pub fn set_client_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.client_arn = input;
        self
    }
    /// <p>The ARN of the client to delete.</p>
    pub fn get_client_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.client_arn
    }
    /// Consumes the builder and constructs a [`DeleteLunaClientInput`](crate::operation::delete_luna_client::DeleteLunaClientInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::delete_luna_client::DeleteLunaClientInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::delete_luna_client::DeleteLunaClientInput { client_arn: self.client_arn })
    }
}