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

/// A builder for [`ModifyLunaClientOutput`](crate::operation::modify_luna_client::ModifyLunaClientOutput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct ModifyLunaClientOutputBuilder {
    pub(crate) client_arn: std::option::Option<std::string::String>,
    _request_id: Option<String>,
}
impl ModifyLunaClientOutputBuilder {
    /// <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 [`ModifyLunaClientOutput`](crate::operation::modify_luna_client::ModifyLunaClientOutput).
    pub fn build(self) -> crate::operation::modify_luna_client::ModifyLunaClientOutput {
        crate::operation::modify_luna_client::ModifyLunaClientOutput {
            client_arn: self.client_arn,
            _request_id: self._request_id,
        }
    }
}