1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Identifies a specific data set to import from an external location.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DataSetImportItem {
    /// <p>The data set.</p>
    pub data_set: ::std::option::Option<crate::types::DataSet>,
    /// <p>The location of the data set.</p>
    pub external_location: ::std::option::Option<crate::types::ExternalLocation>,
}
impl DataSetImportItem {
    /// <p>The data set.</p>
    pub fn data_set(&self) -> ::std::option::Option<&crate::types::DataSet> {
        self.data_set.as_ref()
    }
    /// <p>The location of the data set.</p>
    pub fn external_location(&self) -> ::std::option::Option<&crate::types::ExternalLocation> {
        self.external_location.as_ref()
    }
}
impl DataSetImportItem {
    /// Creates a new builder-style object to manufacture [`DataSetImportItem`](crate::types::DataSetImportItem).
    pub fn builder() -> crate::types::builders::DataSetImportItemBuilder {
        crate::types::builders::DataSetImportItemBuilder::default()
    }
}

/// A builder for [`DataSetImportItem`](crate::types::DataSetImportItem).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct DataSetImportItemBuilder {
    pub(crate) data_set: ::std::option::Option<crate::types::DataSet>,
    pub(crate) external_location: ::std::option::Option<crate::types::ExternalLocation>,
}
impl DataSetImportItemBuilder {
    /// <p>The data set.</p>
    /// This field is required.
    pub fn data_set(mut self, input: crate::types::DataSet) -> Self {
        self.data_set = ::std::option::Option::Some(input);
        self
    }
    /// <p>The data set.</p>
    pub fn set_data_set(mut self, input: ::std::option::Option<crate::types::DataSet>) -> Self {
        self.data_set = input;
        self
    }
    /// <p>The data set.</p>
    pub fn get_data_set(&self) -> &::std::option::Option<crate::types::DataSet> {
        &self.data_set
    }
    /// <p>The location of the data set.</p>
    /// This field is required.
    pub fn external_location(mut self, input: crate::types::ExternalLocation) -> Self {
        self.external_location = ::std::option::Option::Some(input);
        self
    }
    /// <p>The location of the data set.</p>
    pub fn set_external_location(mut self, input: ::std::option::Option<crate::types::ExternalLocation>) -> Self {
        self.external_location = input;
        self
    }
    /// <p>The location of the data set.</p>
    pub fn get_external_location(&self) -> &::std::option::Option<crate::types::ExternalLocation> {
        &self.external_location
    }
    /// Consumes the builder and constructs a [`DataSetImportItem`](crate::types::DataSetImportItem).
    pub fn build(self) -> crate::types::DataSetImportItem {
        crate::types::DataSetImportItem {
            data_set: self.data_set,
            external_location: self.external_location,
        }
    }
}