#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DescribeKeyInput {
#[doc(hidden)]
pub key_name: std::option::Option<std::string::String>,
}
impl DescribeKeyInput {
pub fn key_name(&self) -> std::option::Option<&str> {
self.key_name.as_deref()
}
}
impl DescribeKeyInput {
pub fn builder() -> crate::operation::describe_key::builders::DescribeKeyInputBuilder {
crate::operation::describe_key::builders::DescribeKeyInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DescribeKeyInputBuilder {
pub(crate) key_name: std::option::Option<std::string::String>,
}
impl DescribeKeyInputBuilder {
pub fn key_name(mut self, input: impl Into<std::string::String>) -> Self {
self.key_name = Some(input.into());
self
}
pub fn set_key_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.key_name = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::describe_key::DescribeKeyInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::describe_key::DescribeKeyInput {
key_name: self.key_name,
})
}
}