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