aws_sdk_dynamodb/operation/describe_import/
_describe_import_output.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 DescribeImportOutput {
6    /// <p>Represents the properties of the table created for the import, and parameters of the import. The import parameters include import status, how many items were processed, and how many errors were encountered.</p>
7    pub import_table_description: ::std::option::Option<crate::types::ImportTableDescription>,
8    _request_id: Option<String>,
9}
10impl DescribeImportOutput {
11    /// <p>Represents the properties of the table created for the import, and parameters of the import. The import parameters include import status, how many items were processed, and how many errors were encountered.</p>
12    pub fn import_table_description(&self) -> ::std::option::Option<&crate::types::ImportTableDescription> {
13        self.import_table_description.as_ref()
14    }
15}
16impl ::aws_types::request_id::RequestId for DescribeImportOutput {
17    fn request_id(&self) -> Option<&str> {
18        self._request_id.as_deref()
19    }
20}
21impl DescribeImportOutput {
22    /// Creates a new builder-style object to manufacture [`DescribeImportOutput`](crate::operation::describe_import::DescribeImportOutput).
23    pub fn builder() -> crate::operation::describe_import::builders::DescribeImportOutputBuilder {
24        crate::operation::describe_import::builders::DescribeImportOutputBuilder::default()
25    }
26}
27
28/// A builder for [`DescribeImportOutput`](crate::operation::describe_import::DescribeImportOutput).
29#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
30#[non_exhaustive]
31pub struct DescribeImportOutputBuilder {
32    pub(crate) import_table_description: ::std::option::Option<crate::types::ImportTableDescription>,
33    _request_id: Option<String>,
34}
35impl DescribeImportOutputBuilder {
36    /// <p>Represents the properties of the table created for the import, and parameters of the import. The import parameters include import status, how many items were processed, and how many errors were encountered.</p>
37    /// This field is required.
38    pub fn import_table_description(mut self, input: crate::types::ImportTableDescription) -> Self {
39        self.import_table_description = ::std::option::Option::Some(input);
40        self
41    }
42    /// <p>Represents the properties of the table created for the import, and parameters of the import. The import parameters include import status, how many items were processed, and how many errors were encountered.</p>
43    pub fn set_import_table_description(mut self, input: ::std::option::Option<crate::types::ImportTableDescription>) -> Self {
44        self.import_table_description = input;
45        self
46    }
47    /// <p>Represents the properties of the table created for the import, and parameters of the import. The import parameters include import status, how many items were processed, and how many errors were encountered.</p>
48    pub fn get_import_table_description(&self) -> &::std::option::Option<crate::types::ImportTableDescription> {
49        &self.import_table_description
50    }
51    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
52        self._request_id = Some(request_id.into());
53        self
54    }
55
56    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
57        self._request_id = request_id;
58        self
59    }
60    /// Consumes the builder and constructs a [`DescribeImportOutput`](crate::operation::describe_import::DescribeImportOutput).
61    pub fn build(self) -> crate::operation::describe_import::DescribeImportOutput {
62        crate::operation::describe_import::DescribeImportOutput {
63            import_table_description: self.import_table_description,
64            _request_id: self._request_id,
65        }
66    }
67}