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>The length of the records in the data set.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct RecordLength {
    /// <p>The minimum record length of a record.</p>
    pub min: i32,
    /// <p>The maximum record length. In case of fixed, both minimum and maximum are the same.</p>
    pub max: i32,
}
impl RecordLength {
    /// <p>The minimum record length of a record.</p>
    pub fn min(&self) -> i32 {
        self.min
    }
    /// <p>The maximum record length. In case of fixed, both minimum and maximum are the same.</p>
    pub fn max(&self) -> i32 {
        self.max
    }
}
impl RecordLength {
    /// Creates a new builder-style object to manufacture [`RecordLength`](crate::types::RecordLength).
    pub fn builder() -> crate::types::builders::RecordLengthBuilder {
        crate::types::builders::RecordLengthBuilder::default()
    }
}

/// A builder for [`RecordLength`](crate::types::RecordLength).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct RecordLengthBuilder {
    pub(crate) min: ::std::option::Option<i32>,
    pub(crate) max: ::std::option::Option<i32>,
}
impl RecordLengthBuilder {
    /// <p>The minimum record length of a record.</p>
    /// This field is required.
    pub fn min(mut self, input: i32) -> Self {
        self.min = ::std::option::Option::Some(input);
        self
    }
    /// <p>The minimum record length of a record.</p>
    pub fn set_min(mut self, input: ::std::option::Option<i32>) -> Self {
        self.min = input;
        self
    }
    /// <p>The minimum record length of a record.</p>
    pub fn get_min(&self) -> &::std::option::Option<i32> {
        &self.min
    }
    /// <p>The maximum record length. In case of fixed, both minimum and maximum are the same.</p>
    /// This field is required.
    pub fn max(mut self, input: i32) -> Self {
        self.max = ::std::option::Option::Some(input);
        self
    }
    /// <p>The maximum record length. In case of fixed, both minimum and maximum are the same.</p>
    pub fn set_max(mut self, input: ::std::option::Option<i32>) -> Self {
        self.max = input;
        self
    }
    /// <p>The maximum record length. In case of fixed, both minimum and maximum are the same.</p>
    pub fn get_max(&self) -> &::std::option::Option<i32> {
        &self.max
    }
    /// Consumes the builder and constructs a [`RecordLength`](crate::types::RecordLength).
    pub fn build(self) -> crate::types::RecordLength {
        crate::types::RecordLength {
            min: self.min.unwrap_or_default(),
            max: self.max.unwrap_or_default(),
        }
    }
}