#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateTableOutput {
pub table_description: ::std::option::Option<crate::types::TableDescription>,
_request_id: Option<String>,
}
impl UpdateTableOutput {
pub fn table_description(&self) -> ::std::option::Option<&crate::types::TableDescription> {
self.table_description.as_ref()
}
}
impl ::aws_types::request_id::RequestId for UpdateTableOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl UpdateTableOutput {
pub fn builder() -> crate::operation::update_table::builders::UpdateTableOutputBuilder {
crate::operation::update_table::builders::UpdateTableOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateTableOutputBuilder {
pub(crate) table_description: ::std::option::Option<crate::types::TableDescription>,
_request_id: Option<String>,
}
impl UpdateTableOutputBuilder {
pub fn table_description(mut self, input: crate::types::TableDescription) -> Self {
self.table_description = ::std::option::Option::Some(input);
self
}
pub fn set_table_description(mut self, input: ::std::option::Option<crate::types::TableDescription>) -> Self {
self.table_description = input;
self
}
pub fn get_table_description(&self) -> &::std::option::Option<crate::types::TableDescription> {
&self.table_description
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::update_table::UpdateTableOutput {
crate::operation::update_table::UpdateTableOutput {
table_description: self.table_description,
_request_id: self._request_id,
}
}
}