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