#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Table {
pub table_id: ::std::option::Option<::std::string::String>,
pub table_name: ::std::option::Option<::std::string::String>,
}
impl Table {
pub fn table_id(&self) -> ::std::option::Option<&str> {
self.table_id.as_deref()
}
pub fn table_name(&self) -> ::std::option::Option<&str> {
self.table_name.as_deref()
}
}
impl Table {
pub fn builder() -> crate::types::builders::TableBuilder {
crate::types::builders::TableBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct TableBuilder {
pub(crate) table_id: ::std::option::Option<::std::string::String>,
pub(crate) table_name: ::std::option::Option<::std::string::String>,
}
impl TableBuilder {
pub fn table_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.table_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_table_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.table_id = input;
self
}
pub fn get_table_id(&self) -> &::std::option::Option<::std::string::String> {
&self.table_id
}
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) -> crate::types::Table {
crate::types::Table {
table_id: self.table_id,
table_name: self.table_name,
}
}
}