aws_sdk_dynamodb/operation/describe_continuous_backups/_describe_continuous_backups_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 DescribeContinuousBackupsInput {
6 /// <p>Name of the table for which the customer wants to check the continuous backups and point in time recovery settings.</p>
7 /// <p>You can also provide the Amazon Resource Name (ARN) of the table in this parameter.</p>
8 pub table_name: ::std::option::Option<::std::string::String>,
9}
10impl DescribeContinuousBackupsInput {
11 /// <p>Name of the table for which the customer wants to check the continuous backups and point in time recovery settings.</p>
12 /// <p>You can also provide the Amazon Resource Name (ARN) of the table in this parameter.</p>
13 pub fn table_name(&self) -> ::std::option::Option<&str> {
14 self.table_name.as_deref()
15 }
16}
17impl DescribeContinuousBackupsInput {
18 /// Creates a new builder-style object to manufacture [`DescribeContinuousBackupsInput`](crate::operation::describe_continuous_backups::DescribeContinuousBackupsInput).
19 pub fn builder() -> crate::operation::describe_continuous_backups::builders::DescribeContinuousBackupsInputBuilder {
20 crate::operation::describe_continuous_backups::builders::DescribeContinuousBackupsInputBuilder::default()
21 }
22}
23
24/// A builder for [`DescribeContinuousBackupsInput`](crate::operation::describe_continuous_backups::DescribeContinuousBackupsInput).
25#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
26#[non_exhaustive]
27pub struct DescribeContinuousBackupsInputBuilder {
28 pub(crate) table_name: ::std::option::Option<::std::string::String>,
29}
30impl DescribeContinuousBackupsInputBuilder {
31 /// <p>Name of the table for which the customer wants to check the continuous backups and point in time recovery settings.</p>
32 /// <p>You can also provide the Amazon Resource Name (ARN) of the table in this parameter.</p>
33 /// This field is required.
34 pub fn table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
35 self.table_name = ::std::option::Option::Some(input.into());
36 self
37 }
38 /// <p>Name of the table for which the customer wants to check the continuous backups and point in time recovery settings.</p>
39 /// <p>You can also provide the Amazon Resource Name (ARN) of the table in this parameter.</p>
40 pub fn set_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
41 self.table_name = input;
42 self
43 }
44 /// <p>Name of the table for which the customer wants to check the continuous backups and point in time recovery settings.</p>
45 /// <p>You can also provide the Amazon Resource Name (ARN) of the table in this parameter.</p>
46 pub fn get_table_name(&self) -> &::std::option::Option<::std::string::String> {
47 &self.table_name
48 }
49 /// Consumes the builder and constructs a [`DescribeContinuousBackupsInput`](crate::operation::describe_continuous_backups::DescribeContinuousBackupsInput).
50 pub fn build(
51 self,
52 ) -> ::std::result::Result<
53 crate::operation::describe_continuous_backups::DescribeContinuousBackupsInput,
54 ::aws_smithy_types::error::operation::BuildError,
55 > {
56 ::std::result::Result::Ok(crate::operation::describe_continuous_backups::DescribeContinuousBackupsInput { table_name: self.table_name })
57 }
58}