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.

/// <p>Contains the output of the <code>CreateLunaClient</code> action.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CreateLunaClientOutput {
    /// <p>The ARN of the client.</p>
    #[doc(hidden)]
    pub client_arn: std::option::Option<std::string::String>,
    _request_id: Option<String>,
}
impl CreateLunaClientOutput {
    /// <p>The ARN of the client.</p>
    pub fn client_arn(&self) -> std::option::Option<&str> {
        self.client_arn.as_deref()
    }
}
impl aws_http::request_id::RequestId for CreateLunaClientOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl CreateLunaClientOutput {
    /// Creates a new builder-style object to manufacture [`CreateLunaClientOutput`](crate::operation::create_luna_client::CreateLunaClientOutput).
    pub fn builder() -> crate::operation::create_luna_client::builders::CreateLunaClientOutputBuilder
    {
        crate::operation::create_luna_client::builders::CreateLunaClientOutputBuilder::default()
    }
}

/// A builder for [`CreateLunaClientOutput`](crate::operation::create_luna_client::CreateLunaClientOutput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct CreateLunaClientOutputBuilder {
    pub(crate) client_arn: std::option::Option<std::string::String>,
    _request_id: Option<String>,
}
impl CreateLunaClientOutputBuilder {
    /// <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
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`CreateLunaClientOutput`](crate::operation::create_luna_client::CreateLunaClientOutput).
    pub fn build(self) -> crate::operation::create_luna_client::CreateLunaClientOutput {
        crate::operation::create_luna_client::CreateLunaClientOutput {
            client_arn: self.client_arn,
            _request_id: self._request_id,
        }
    }
}