#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateTableOutput {
#[doc(hidden)]
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_http::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()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
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 = Some(input);
self
}
pub fn set_table_description(
mut self,
input: std::option::Option<crate::types::TableDescription>,
) -> Self {
self.table_description = input;
self
}
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,
}
}
}