aws_sdk_dynamodb/operation/update_continuous_backups/
_update_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 UpdateContinuousBackupsInput {
6    /// <p>The name of the table. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.</p>
7    pub table_name: ::std::option::Option<::std::string::String>,
8    /// <p>Represents the settings used to enable point in time recovery.</p>
9    pub point_in_time_recovery_specification: ::std::option::Option<crate::types::PointInTimeRecoverySpecification>,
10}
11impl UpdateContinuousBackupsInput {
12    /// <p>The name of the table. 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    /// <p>Represents the settings used to enable point in time recovery.</p>
17    pub fn point_in_time_recovery_specification(&self) -> ::std::option::Option<&crate::types::PointInTimeRecoverySpecification> {
18        self.point_in_time_recovery_specification.as_ref()
19    }
20}
21impl UpdateContinuousBackupsInput {
22    /// Creates a new builder-style object to manufacture [`UpdateContinuousBackupsInput`](crate::operation::update_continuous_backups::UpdateContinuousBackupsInput).
23    pub fn builder() -> crate::operation::update_continuous_backups::builders::UpdateContinuousBackupsInputBuilder {
24        crate::operation::update_continuous_backups::builders::UpdateContinuousBackupsInputBuilder::default()
25    }
26}
27
28/// A builder for [`UpdateContinuousBackupsInput`](crate::operation::update_continuous_backups::UpdateContinuousBackupsInput).
29#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
30#[non_exhaustive]
31pub struct UpdateContinuousBackupsInputBuilder {
32    pub(crate) table_name: ::std::option::Option<::std::string::String>,
33    pub(crate) point_in_time_recovery_specification: ::std::option::Option<crate::types::PointInTimeRecoverySpecification>,
34}
35impl UpdateContinuousBackupsInputBuilder {
36    /// <p>The name of the table. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.</p>
37    /// This field is required.
38    pub fn table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
39        self.table_name = ::std::option::Option::Some(input.into());
40        self
41    }
42    /// <p>The name of the table. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.</p>
43    pub fn set_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
44        self.table_name = input;
45        self
46    }
47    /// <p>The name of the table. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.</p>
48    pub fn get_table_name(&self) -> &::std::option::Option<::std::string::String> {
49        &self.table_name
50    }
51    /// <p>Represents the settings used to enable point in time recovery.</p>
52    /// This field is required.
53    pub fn point_in_time_recovery_specification(mut self, input: crate::types::PointInTimeRecoverySpecification) -> Self {
54        self.point_in_time_recovery_specification = ::std::option::Option::Some(input);
55        self
56    }
57    /// <p>Represents the settings used to enable point in time recovery.</p>
58    pub fn set_point_in_time_recovery_specification(mut self, input: ::std::option::Option<crate::types::PointInTimeRecoverySpecification>) -> Self {
59        self.point_in_time_recovery_specification = input;
60        self
61    }
62    /// <p>Represents the settings used to enable point in time recovery.</p>
63    pub fn get_point_in_time_recovery_specification(&self) -> &::std::option::Option<crate::types::PointInTimeRecoverySpecification> {
64        &self.point_in_time_recovery_specification
65    }
66    /// Consumes the builder and constructs a [`UpdateContinuousBackupsInput`](crate::operation::update_continuous_backups::UpdateContinuousBackupsInput).
67    pub fn build(
68        self,
69    ) -> ::std::result::Result<
70        crate::operation::update_continuous_backups::UpdateContinuousBackupsInput,
71        ::aws_smithy_types::error::operation::BuildError,
72    > {
73        ::std::result::Result::Ok(crate::operation::update_continuous_backups::UpdateContinuousBackupsInput {
74            table_name: self.table_name,
75            point_in_time_recovery_specification: self.point_in_time_recovery_specification,
76        })
77    }
78}