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