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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Defines column statistics supported for floating-point number data columns.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DoubleColumnStatisticsData {
    /// <p>The lowest value in the column.</p>
    pub minimum_value: f64,
    /// <p>The highest value in the column.</p>
    pub maximum_value: f64,
    /// <p>The number of null values in the column.</p>
    pub number_of_nulls: i64,
    /// <p>The number of distinct values in a column.</p>
    pub number_of_distinct_values: i64,
}
impl DoubleColumnStatisticsData {
    /// <p>The lowest value in the column.</p>
    pub fn minimum_value(&self) -> f64 {
        self.minimum_value
    }
    /// <p>The highest value in the column.</p>
    pub fn maximum_value(&self) -> f64 {
        self.maximum_value
    }
    /// <p>The number of null values in the column.</p>
    pub fn number_of_nulls(&self) -> i64 {
        self.number_of_nulls
    }
    /// <p>The number of distinct values in a column.</p>
    pub fn number_of_distinct_values(&self) -> i64 {
        self.number_of_distinct_values
    }
}
impl DoubleColumnStatisticsData {
    /// Creates a new builder-style object to manufacture [`DoubleColumnStatisticsData`](crate::types::DoubleColumnStatisticsData).
    pub fn builder() -> crate::types::builders::DoubleColumnStatisticsDataBuilder {
        crate::types::builders::DoubleColumnStatisticsDataBuilder::default()
    }
}

/// A builder for [`DoubleColumnStatisticsData`](crate::types::DoubleColumnStatisticsData).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DoubleColumnStatisticsDataBuilder {
    pub(crate) minimum_value: ::std::option::Option<f64>,
    pub(crate) maximum_value: ::std::option::Option<f64>,
    pub(crate) number_of_nulls: ::std::option::Option<i64>,
    pub(crate) number_of_distinct_values: ::std::option::Option<i64>,
}
impl DoubleColumnStatisticsDataBuilder {
    /// <p>The lowest value in the column.</p>
    pub fn minimum_value(mut self, input: f64) -> Self {
        self.minimum_value = ::std::option::Option::Some(input);
        self
    }
    /// <p>The lowest value in the column.</p>
    pub fn set_minimum_value(mut self, input: ::std::option::Option<f64>) -> Self {
        self.minimum_value = input;
        self
    }
    /// <p>The lowest value in the column.</p>
    pub fn get_minimum_value(&self) -> &::std::option::Option<f64> {
        &self.minimum_value
    }
    /// <p>The highest value in the column.</p>
    pub fn maximum_value(mut self, input: f64) -> Self {
        self.maximum_value = ::std::option::Option::Some(input);
        self
    }
    /// <p>The highest value in the column.</p>
    pub fn set_maximum_value(mut self, input: ::std::option::Option<f64>) -> Self {
        self.maximum_value = input;
        self
    }
    /// <p>The highest value in the column.</p>
    pub fn get_maximum_value(&self) -> &::std::option::Option<f64> {
        &self.maximum_value
    }
    /// <p>The number of null values in the column.</p>
    /// This field is required.
    pub fn number_of_nulls(mut self, input: i64) -> Self {
        self.number_of_nulls = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number of null values in the column.</p>
    pub fn set_number_of_nulls(mut self, input: ::std::option::Option<i64>) -> Self {
        self.number_of_nulls = input;
        self
    }
    /// <p>The number of null values in the column.</p>
    pub fn get_number_of_nulls(&self) -> &::std::option::Option<i64> {
        &self.number_of_nulls
    }
    /// <p>The number of distinct values in a column.</p>
    /// This field is required.
    pub fn number_of_distinct_values(mut self, input: i64) -> Self {
        self.number_of_distinct_values = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number of distinct values in a column.</p>
    pub fn set_number_of_distinct_values(mut self, input: ::std::option::Option<i64>) -> Self {
        self.number_of_distinct_values = input;
        self
    }
    /// <p>The number of distinct values in a column.</p>
    pub fn get_number_of_distinct_values(&self) -> &::std::option::Option<i64> {
        &self.number_of_distinct_values
    }
    /// Consumes the builder and constructs a [`DoubleColumnStatisticsData`](crate::types::DoubleColumnStatisticsData).
    pub fn build(self) -> crate::types::DoubleColumnStatisticsData {
        crate::types::DoubleColumnStatisticsData {
            minimum_value: self.minimum_value.unwrap_or_default(),
            maximum_value: self.maximum_value.unwrap_or_default(),
            number_of_nulls: self.number_of_nulls.unwrap_or_default(),
            number_of_distinct_values: self.number_of_distinct_values.unwrap_or_default(),
        }
    }
}