aws_sdk_s3tables/operation/delete_table/
_delete_table_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct DeleteTableInput {
6 pub table_bucket_arn: ::std::option::Option<::std::string::String>,
8 pub namespace: ::std::option::Option<::std::string::String>,
10 pub name: ::std::option::Option<::std::string::String>,
12 pub version_token: ::std::option::Option<::std::string::String>,
14}
15impl DeleteTableInput {
16 pub fn table_bucket_arn(&self) -> ::std::option::Option<&str> {
18 self.table_bucket_arn.as_deref()
19 }
20 pub fn namespace(&self) -> ::std::option::Option<&str> {
22 self.namespace.as_deref()
23 }
24 pub fn name(&self) -> ::std::option::Option<&str> {
26 self.name.as_deref()
27 }
28 pub fn version_token(&self) -> ::std::option::Option<&str> {
30 self.version_token.as_deref()
31 }
32}
33impl DeleteTableInput {
34 pub fn builder() -> crate::operation::delete_table::builders::DeleteTableInputBuilder {
36 crate::operation::delete_table::builders::DeleteTableInputBuilder::default()
37 }
38}
39
40#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
42#[non_exhaustive]
43pub struct DeleteTableInputBuilder {
44 pub(crate) table_bucket_arn: ::std::option::Option<::std::string::String>,
45 pub(crate) namespace: ::std::option::Option<::std::string::String>,
46 pub(crate) name: ::std::option::Option<::std::string::String>,
47 pub(crate) version_token: ::std::option::Option<::std::string::String>,
48}
49impl DeleteTableInputBuilder {
50 pub fn table_bucket_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
53 self.table_bucket_arn = ::std::option::Option::Some(input.into());
54 self
55 }
56 pub fn set_table_bucket_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
58 self.table_bucket_arn = input;
59 self
60 }
61 pub fn get_table_bucket_arn(&self) -> &::std::option::Option<::std::string::String> {
63 &self.table_bucket_arn
64 }
65 pub fn namespace(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
68 self.namespace = ::std::option::Option::Some(input.into());
69 self
70 }
71 pub fn set_namespace(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
73 self.namespace = input;
74 self
75 }
76 pub fn get_namespace(&self) -> &::std::option::Option<::std::string::String> {
78 &self.namespace
79 }
80 pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
83 self.name = ::std::option::Option::Some(input.into());
84 self
85 }
86 pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
88 self.name = input;
89 self
90 }
91 pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
93 &self.name
94 }
95 pub fn version_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
97 self.version_token = ::std::option::Option::Some(input.into());
98 self
99 }
100 pub fn set_version_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
102 self.version_token = input;
103 self
104 }
105 pub fn get_version_token(&self) -> &::std::option::Option<::std::string::String> {
107 &self.version_token
108 }
109 pub fn build(self) -> ::std::result::Result<crate::operation::delete_table::DeleteTableInput, ::aws_smithy_types::error::operation::BuildError> {
111 ::std::result::Result::Ok(crate::operation::delete_table::DeleteTableInput {
112 table_bucket_arn: self.table_bucket_arn,
113 namespace: self.namespace,
114 name: self.name,
115 version_token: self.version_token,
116 })
117 }
118}