aws_sdk_dynamodb/operation/delete_table/
_delete_table_output.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>Represents the output of a <code>DeleteTable</code> operation.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct DeleteTableOutput  {
7    /// <p>Represents the properties of a table.</p>
8    pub table_description: ::std::option::Option<crate::types::TableDescription>,
9    _request_id: Option<String>,
10}
11impl  DeleteTableOutput  {
12    /// <p>Represents the properties of a table.</p>
13    pub fn table_description(&self) -> ::std::option::Option<&crate::types::TableDescription> {
14        self.table_description.as_ref()
15    }
16}
17impl ::aws_types::request_id::RequestId for DeleteTableOutput {
18                                    fn request_id(&self) -> Option<&str> {
19                                        self._request_id.as_deref()
20                                    }
21                                }
22impl DeleteTableOutput {
23    /// Creates a new builder-style object to manufacture [`DeleteTableOutput`](crate::operation::delete_table::DeleteTableOutput).
24    pub fn builder() -> crate::operation::delete_table::builders::DeleteTableOutputBuilder {
25        crate::operation::delete_table::builders::DeleteTableOutputBuilder::default()
26    }
27}
28
29/// A builder for [`DeleteTableOutput`](crate::operation::delete_table::DeleteTableOutput).
30#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
31#[non_exhaustive]
32pub struct DeleteTableOutputBuilder {
33    pub(crate) table_description: ::std::option::Option<crate::types::TableDescription>,
34    _request_id: Option<String>,
35}
36impl DeleteTableOutputBuilder {
37    /// <p>Represents the properties of a table.</p>
38    pub fn table_description(mut self, input: crate::types::TableDescription) -> Self {
39        self.table_description = ::std::option::Option::Some(input);
40        self
41    }
42    /// <p>Represents the properties of a table.</p>
43    pub fn set_table_description(mut self, input: ::std::option::Option<crate::types::TableDescription>) -> Self {
44        self.table_description = input; self
45    }
46    /// <p>Represents the properties of a table.</p>
47    pub fn get_table_description(&self) -> &::std::option::Option<crate::types::TableDescription> {
48        &self.table_description
49    }
50    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
51                                        self._request_id = Some(request_id.into());
52                                        self
53                                    }
54    
55                                    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
56                                        self._request_id = request_id;
57                                        self
58                                    }
59    /// Consumes the builder and constructs a [`DeleteTableOutput`](crate::operation::delete_table::DeleteTableOutput).
60    pub fn build(self) -> crate::operation::delete_table::DeleteTableOutput {
61        crate::operation::delete_table::DeleteTableOutput {
62            table_description: self.table_description
63            ,
64            _request_id: self._request_id,
65        }
66    }
67}
68