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