aws_sdk_s3tables/operation/get_table/
_get_table_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct GetTableInput {
6    /// <p>The Amazon Resource Name (ARN) of the table bucket associated with the table.</p>
7    pub table_bucket_arn: ::std::option::Option<::std::string::String>,
8    /// <p>The name of the namespace the table is associated with.</p>
9    pub namespace: ::std::option::Option<::std::string::String>,
10    /// <p>The name of the table.</p>
11    pub name: ::std::option::Option<::std::string::String>,
12    /// <p>The Amazon Resource Name (ARN) of the table.</p>
13    pub table_arn: ::std::option::Option<::std::string::String>,
14}
15impl GetTableInput {
16    /// <p>The Amazon Resource Name (ARN) of the table bucket associated with the table.</p>
17    pub fn table_bucket_arn(&self) -> ::std::option::Option<&str> {
18        self.table_bucket_arn.as_deref()
19    }
20    /// <p>The name of the namespace the table is associated with.</p>
21    pub fn namespace(&self) -> ::std::option::Option<&str> {
22        self.namespace.as_deref()
23    }
24    /// <p>The name of the table.</p>
25    pub fn name(&self) -> ::std::option::Option<&str> {
26        self.name.as_deref()
27    }
28    /// <p>The Amazon Resource Name (ARN) of the table.</p>
29    pub fn table_arn(&self) -> ::std::option::Option<&str> {
30        self.table_arn.as_deref()
31    }
32}
33impl GetTableInput {
34    /// Creates a new builder-style object to manufacture [`GetTableInput`](crate::operation::get_table::GetTableInput).
35    pub fn builder() -> crate::operation::get_table::builders::GetTableInputBuilder {
36        crate::operation::get_table::builders::GetTableInputBuilder::default()
37    }
38}
39
40/// A builder for [`GetTableInput`](crate::operation::get_table::GetTableInput).
41#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
42#[non_exhaustive]
43pub struct GetTableInputBuilder {
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) table_arn: ::std::option::Option<::std::string::String>,
48}
49impl GetTableInputBuilder {
50    /// <p>The Amazon Resource Name (ARN) of the table bucket associated with the table.</p>
51    pub fn table_bucket_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
52        self.table_bucket_arn = ::std::option::Option::Some(input.into());
53        self
54    }
55    /// <p>The Amazon Resource Name (ARN) of the table bucket associated with the table.</p>
56    pub fn set_table_bucket_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
57        self.table_bucket_arn = input;
58        self
59    }
60    /// <p>The Amazon Resource Name (ARN) of the table bucket associated with the table.</p>
61    pub fn get_table_bucket_arn(&self) -> &::std::option::Option<::std::string::String> {
62        &self.table_bucket_arn
63    }
64    /// <p>The name of the namespace the table is associated with.</p>
65    pub fn namespace(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
66        self.namespace = ::std::option::Option::Some(input.into());
67        self
68    }
69    /// <p>The name of the namespace the table is associated with.</p>
70    pub fn set_namespace(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
71        self.namespace = input;
72        self
73    }
74    /// <p>The name of the namespace the table is associated with.</p>
75    pub fn get_namespace(&self) -> &::std::option::Option<::std::string::String> {
76        &self.namespace
77    }
78    /// <p>The name of the table.</p>
79    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
80        self.name = ::std::option::Option::Some(input.into());
81        self
82    }
83    /// <p>The name of the table.</p>
84    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
85        self.name = input;
86        self
87    }
88    /// <p>The name of the table.</p>
89    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
90        &self.name
91    }
92    /// <p>The Amazon Resource Name (ARN) of the table.</p>
93    pub fn table_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
94        self.table_arn = ::std::option::Option::Some(input.into());
95        self
96    }
97    /// <p>The Amazon Resource Name (ARN) of the table.</p>
98    pub fn set_table_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
99        self.table_arn = input;
100        self
101    }
102    /// <p>The Amazon Resource Name (ARN) of the table.</p>
103    pub fn get_table_arn(&self) -> &::std::option::Option<::std::string::String> {
104        &self.table_arn
105    }
106    /// Consumes the builder and constructs a [`GetTableInput`](crate::operation::get_table::GetTableInput).
107    pub fn build(self) -> ::std::result::Result<crate::operation::get_table::GetTableInput, ::aws_smithy_types::error::operation::BuildError> {
108        ::std::result::Result::Ok(crate::operation::get_table::GetTableInput {
109            table_bucket_arn: self.table_bucket_arn,
110            namespace: self.namespace,
111            name: self.name,
112            table_arn: self.table_arn,
113        })
114    }
115}