#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteDbSnapshotInput {
pub db_snapshot_identifier: ::std::option::Option<::std::string::String>,
}
impl DeleteDbSnapshotInput {
pub fn db_snapshot_identifier(&self) -> ::std::option::Option<&str> {
self.db_snapshot_identifier.as_deref()
}
}
impl DeleteDbSnapshotInput {
pub fn builder() -> crate::operation::delete_db_snapshot::builders::DeleteDbSnapshotInputBuilder {
crate::operation::delete_db_snapshot::builders::DeleteDbSnapshotInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteDbSnapshotInputBuilder {
pub(crate) db_snapshot_identifier: ::std::option::Option<::std::string::String>,
}
impl DeleteDbSnapshotInputBuilder {
pub fn db_snapshot_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.db_snapshot_identifier = ::std::option::Option::Some(input.into());
self
}
pub fn set_db_snapshot_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.db_snapshot_identifier = input;
self
}
pub fn get_db_snapshot_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.db_snapshot_identifier
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::delete_db_snapshot::DeleteDbSnapshotInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::delete_db_snapshot::DeleteDbSnapshotInput {
db_snapshot_identifier: self.db_snapshot_identifier,
})
}
}