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

/// <p>Defines column statistics supported for character sequence data values.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct StringColumnStatisticsData {
    /// <p>The size of the longest string in the column.</p>
    pub maximum_length: i64,
    /// <p>The average string length in the column.</p>
    pub average_length: 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 StringColumnStatisticsData {
    /// <p>The size of the longest string in the column.</p>
    pub fn maximum_length(&self) -> i64 {
        self.maximum_length
    }
    /// <p>The average string length in the column.</p>
    pub fn average_length(&self) -> f64 {
        self.average_length
    }
    /// <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 StringColumnStatisticsData {
    /// Creates a new builder-style object to manufacture [`StringColumnStatisticsData`](crate::types::StringColumnStatisticsData).
    pub fn builder() -> crate::types::builders::StringColumnStatisticsDataBuilder {
        crate::types::builders::StringColumnStatisticsDataBuilder::default()
    }
}

/// A builder for [`StringColumnStatisticsData`](crate::types::StringColumnStatisticsData).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct StringColumnStatisticsDataBuilder {
    pub(crate) maximum_length: ::std::option::Option<i64>,
    pub(crate) average_length: ::std::option::Option<f64>,
    pub(crate) number_of_nulls: ::std::option::Option<i64>,
    pub(crate) number_of_distinct_values: ::std::option::Option<i64>,
}
impl StringColumnStatisticsDataBuilder {
    /// <p>The size of the longest string in the column.</p>
    /// This field is required.
    pub fn maximum_length(mut self, input: i64) -> Self {
        self.maximum_length = ::std::option::Option::Some(input);
        self
    }
    /// <p>The size of the longest string in the column.</p>
    pub fn set_maximum_length(mut self, input: ::std::option::Option<i64>) -> Self {
        self.maximum_length = input;
        self
    }
    /// <p>The size of the longest string in the column.</p>
    pub fn get_maximum_length(&self) -> &::std::option::Option<i64> {
        &self.maximum_length
    }
    /// <p>The average string length in the column.</p>
    /// This field is required.
    pub fn average_length(mut self, input: f64) -> Self {
        self.average_length = ::std::option::Option::Some(input);
        self
    }
    /// <p>The average string length in the column.</p>
    pub fn set_average_length(mut self, input: ::std::option::Option<f64>) -> Self {
        self.average_length = input;
        self
    }
    /// <p>The average string length in the column.</p>
    pub fn get_average_length(&self) -> &::std::option::Option<f64> {
        &self.average_length
    }
    /// <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 [`StringColumnStatisticsData`](crate::types::StringColumnStatisticsData).
    pub fn build(self) -> crate::types::StringColumnStatisticsData {
        crate::types::StringColumnStatisticsData {
            maximum_length: self.maximum_length.unwrap_or_default(),
            average_length: self.average_length.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(),
        }
    }
}