aws_sdk_keyspaces/operation/delete_table/
_delete_table_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteTableInput {
pub keyspace_name: ::std::option::Option<::std::string::String>,
pub table_name: ::std::option::Option<::std::string::String>,
}
impl DeleteTableInput {
pub fn keyspace_name(&self) -> ::std::option::Option<&str> {
self.keyspace_name.as_deref()
}
pub fn table_name(&self) -> ::std::option::Option<&str> {
self.table_name.as_deref()
}
}
impl DeleteTableInput {
pub fn builder() -> crate::operation::delete_table::builders::DeleteTableInputBuilder {
crate::operation::delete_table::builders::DeleteTableInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteTableInputBuilder {
pub(crate) keyspace_name: ::std::option::Option<::std::string::String>,
pub(crate) table_name: ::std::option::Option<::std::string::String>,
}
impl DeleteTableInputBuilder {
pub fn keyspace_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.keyspace_name = ::std::option::Option::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 get_keyspace_name(&self) -> &::std::option::Option<::std::string::String> {
&self.keyspace_name
}
pub fn table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.table_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.table_name = input;
self
}
pub fn get_table_name(&self) -> &::std::option::Option<::std::string::String> {
&self.table_name
}
pub fn build(self) -> ::std::result::Result<crate::operation::delete_table::DeleteTableInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::delete_table::DeleteTableInput {
keyspace_name: self.keyspace_name,
table_name: self.table_name,
})
}
}