#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeregisterVolumeInput {
#[doc(hidden)]
pub volume_id: std::option::Option<std::string::String>,
}
impl DeregisterVolumeInput {
pub fn volume_id(&self) -> std::option::Option<&str> {
self.volume_id.as_deref()
}
}
impl DeregisterVolumeInput {
pub fn builder() -> crate::operation::deregister_volume::builders::DeregisterVolumeInputBuilder
{
crate::operation::deregister_volume::builders::DeregisterVolumeInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DeregisterVolumeInputBuilder {
pub(crate) volume_id: std::option::Option<std::string::String>,
}
impl DeregisterVolumeInputBuilder {
pub fn volume_id(mut self, input: impl Into<std::string::String>) -> Self {
self.volume_id = Some(input.into());
self
}
pub fn set_volume_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.volume_id = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::deregister_volume::DeregisterVolumeInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::deregister_volume::DeregisterVolumeInput {
volume_id: self.volume_id,
})
}
}