aws-sdk-cloudhsm 0.25.1

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 ModifyLunaClientInput {
    /// <p>The ARN of the client.</p>
    #[doc(hidden)]
    pub client_arn: std::option::Option<std::string::String>,
    /// <p>The new certificate for the client.</p>
    #[doc(hidden)]
    pub certificate: std::option::Option<std::string::String>,
}
impl ModifyLunaClientInput {
    /// <p>The ARN of the client.</p>
    pub fn client_arn(&self) -> std::option::Option<&str> {
        self.client_arn.as_deref()
    }
    /// <p>The new certificate for the client.</p>
    pub fn certificate(&self) -> std::option::Option<&str> {
        self.certificate.as_deref()
    }
}
impl ModifyLunaClientInput {
    /// Creates a new builder-style object to manufacture [`ModifyLunaClientInput`](crate::operation::modify_luna_client::ModifyLunaClientInput).
    pub fn builder() -> crate::operation::modify_luna_client::builders::ModifyLunaClientInputBuilder
    {
        crate::operation::modify_luna_client::builders::ModifyLunaClientInputBuilder::default()
    }
}

/// A builder for [`ModifyLunaClientInput`](crate::operation::modify_luna_client::ModifyLunaClientInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct ModifyLunaClientInputBuilder {
    pub(crate) client_arn: std::option::Option<std::string::String>,
    pub(crate) certificate: std::option::Option<std::string::String>,
}
impl ModifyLunaClientInputBuilder {
    /// <p>The ARN of the client.</p>
    pub fn client_arn(mut self, input: impl Into<std::string::String>) -> Self {
        self.client_arn = Some(input.into());
        self
    }
    /// <p>The ARN of the client.</p>
    pub fn set_client_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.client_arn = input;
        self
    }
    /// <p>The new certificate for the client.</p>
    pub fn certificate(mut self, input: impl Into<std::string::String>) -> Self {
        self.certificate = Some(input.into());
        self
    }
    /// <p>The new certificate for the client.</p>
    pub fn set_certificate(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.certificate = input;
        self
    }
    /// Consumes the builder and constructs a [`ModifyLunaClientInput`](crate::operation::modify_luna_client::ModifyLunaClientInput).
    pub fn build(
        self,
    ) -> Result<
        crate::operation::modify_luna_client::ModifyLunaClientInput,
        aws_smithy_http::operation::error::BuildError,
    > {
        Ok(
            crate::operation::modify_luna_client::ModifyLunaClientInput {
                client_arn: self.client_arn,
                certificate: self.certificate,
            },
        )
    }
}