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