#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeBackupInput {
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()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeBackupInputBuilder {
pub(crate) backup_arn: ::std::option::Option<::std::string::String>,
}
impl DescribeBackupInputBuilder {
pub fn backup_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.backup_arn = ::std::option::Option::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 get_backup_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.backup_arn
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::describe_backup::DescribeBackupInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::describe_backup::DescribeBackupInput { backup_arn: self.backup_arn })
}
}