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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Specifies a transform that locates records in the dataset that have missing values and adds a new field with a value determined by imputation. The input data set is used to train the machine learning model that determines what the missing value should be.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct FillMissingValues {
    /// <p>The name of the transform node.</p>
    pub name: ::std::option::Option<::std::string::String>,
    /// <p>The data inputs identified by their node names.</p>
    pub inputs: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    /// <p>A JSON path to a variable in the data structure for the dataset that is imputed.</p>
    pub imputed_path: ::std::option::Option<::std::string::String>,
    /// <p>A JSON path to a variable in the data structure for the dataset that is filled.</p>
    pub filled_path: ::std::option::Option<::std::string::String>,
}
impl FillMissingValues {
    /// <p>The name of the transform node.</p>
    pub fn name(&self) -> ::std::option::Option<&str> {
        self.name.as_deref()
    }
    /// <p>The data inputs identified by their node names.</p>
    pub fn inputs(&self) -> ::std::option::Option<&[::std::string::String]> {
        self.inputs.as_deref()
    }
    /// <p>A JSON path to a variable in the data structure for the dataset that is imputed.</p>
    pub fn imputed_path(&self) -> ::std::option::Option<&str> {
        self.imputed_path.as_deref()
    }
    /// <p>A JSON path to a variable in the data structure for the dataset that is filled.</p>
    pub fn filled_path(&self) -> ::std::option::Option<&str> {
        self.filled_path.as_deref()
    }
}
impl FillMissingValues {
    /// Creates a new builder-style object to manufacture [`FillMissingValues`](crate::types::FillMissingValues).
    pub fn builder() -> crate::types::builders::FillMissingValuesBuilder {
        crate::types::builders::FillMissingValuesBuilder::default()
    }
}

/// A builder for [`FillMissingValues`](crate::types::FillMissingValues).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct FillMissingValuesBuilder {
    pub(crate) name: ::std::option::Option<::std::string::String>,
    pub(crate) inputs: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    pub(crate) imputed_path: ::std::option::Option<::std::string::String>,
    pub(crate) filled_path: ::std::option::Option<::std::string::String>,
}
impl FillMissingValuesBuilder {
    /// <p>The name of the transform node.</p>
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the transform node.</p>
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.name = input;
        self
    }
    /// <p>The name of the transform node.</p>
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.name
    }
    /// Appends an item to `inputs`.
    ///
    /// To override the contents of this collection use [`set_inputs`](Self::set_inputs).
    ///
    /// <p>The data inputs identified by their node names.</p>
    pub fn inputs(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.inputs.unwrap_or_default();
        v.push(input.into());
        self.inputs = ::std::option::Option::Some(v);
        self
    }
    /// <p>The data inputs identified by their node names.</p>
    pub fn set_inputs(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.inputs = input;
        self
    }
    /// <p>The data inputs identified by their node names.</p>
    pub fn get_inputs(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.inputs
    }
    /// <p>A JSON path to a variable in the data structure for the dataset that is imputed.</p>
    pub fn imputed_path(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.imputed_path = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A JSON path to a variable in the data structure for the dataset that is imputed.</p>
    pub fn set_imputed_path(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.imputed_path = input;
        self
    }
    /// <p>A JSON path to a variable in the data structure for the dataset that is imputed.</p>
    pub fn get_imputed_path(&self) -> &::std::option::Option<::std::string::String> {
        &self.imputed_path
    }
    /// <p>A JSON path to a variable in the data structure for the dataset that is filled.</p>
    pub fn filled_path(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.filled_path = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A JSON path to a variable in the data structure for the dataset that is filled.</p>
    pub fn set_filled_path(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.filled_path = input;
        self
    }
    /// <p>A JSON path to a variable in the data structure for the dataset that is filled.</p>
    pub fn get_filled_path(&self) -> &::std::option::Option<::std::string::String> {
        &self.filled_path
    }
    /// Consumes the builder and constructs a [`FillMissingValues`](crate::types::FillMissingValues).
    pub fn build(self) -> crate::types::FillMissingValues {
        crate::types::FillMissingValues {
            name: self.name,
            inputs: self.inputs,
            imputed_path: self.imputed_path,
            filled_path: self.filled_path,
        }
    }
}