#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteSnapshotInput {
#[doc(hidden)]
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 Into<std::string::String>) -> Self {
self.snapshot_name = 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 build(
self,
) -> Result<
crate::operation::delete_snapshot::DeleteSnapshotInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::delete_snapshot::DeleteSnapshotInput {
snapshot_name: self.snapshot_name,
})
}
}