aws-sdk-cloudhsm 1.100.0

AWS SDK for Amazon CloudHSM
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Contains the inputs for the <code>DescribeHapg</code> action.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeHapgInput {
    /// <p>The ARN of the high-availability partition group to describe.</p>
    pub hapg_arn: ::std::option::Option<::std::string::String>,
}
impl DescribeHapgInput {
    /// <p>The ARN of the high-availability partition group to describe.</p>
    pub fn hapg_arn(&self) -> ::std::option::Option<&str> {
        self.hapg_arn.as_deref()
    }
}
impl DescribeHapgInput {
    /// Creates a new builder-style object to manufacture [`DescribeHapgInput`](crate::operation::describe_hapg::DescribeHapgInput).
    pub fn builder() -> crate::operation::describe_hapg::builders::DescribeHapgInputBuilder {
        crate::operation::describe_hapg::builders::DescribeHapgInputBuilder::default()
    }
}

/// A builder for [`DescribeHapgInput`](crate::operation::describe_hapg::DescribeHapgInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeHapgInputBuilder {
    pub(crate) hapg_arn: ::std::option::Option<::std::string::String>,
}
impl DescribeHapgInputBuilder {
    /// <p>The ARN of the high-availability partition group to describe.</p>
    /// This field is required.
    pub fn hapg_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.hapg_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ARN of the high-availability partition group to describe.</p>
    pub fn set_hapg_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.hapg_arn = input;
        self
    }
    /// <p>The ARN of the high-availability partition group to describe.</p>
    pub fn get_hapg_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.hapg_arn
    }
    /// Consumes the builder and constructs a [`DescribeHapgInput`](crate::operation::describe_hapg::DescribeHapgInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::describe_hapg::DescribeHapgInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::describe_hapg::DescribeHapgInput { hapg_arn: self.hapg_arn })
    }
}