#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateBackupInput {
pub table_name: ::std::option::Option<::std::string::String>,
pub backup_name: ::std::option::Option<::std::string::String>,
}
impl CreateBackupInput {
pub fn table_name(&self) -> ::std::option::Option<&str> {
self.table_name.as_deref()
}
pub fn backup_name(&self) -> ::std::option::Option<&str> {
self.backup_name.as_deref()
}
}
impl CreateBackupInput {
pub fn builder() -> crate::operation::create_backup::builders::CreateBackupInputBuilder {
crate::operation::create_backup::builders::CreateBackupInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateBackupInputBuilder {
pub(crate) table_name: ::std::option::Option<::std::string::String>,
pub(crate) backup_name: ::std::option::Option<::std::string::String>,
}
impl CreateBackupInputBuilder {
pub fn table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.table_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.table_name = input;
self
}
pub fn get_table_name(&self) -> &::std::option::Option<::std::string::String> {
&self.table_name
}
pub fn backup_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.backup_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_backup_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.backup_name = input;
self
}
pub fn get_backup_name(&self) -> &::std::option::Option<::std::string::String> {
&self.backup_name
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::create_backup::CreateBackupInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::create_backup::CreateBackupInput {
table_name: self.table_name,
backup_name: self.backup_name,
})
}
}