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