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

/// <p>An occurrence of sensitive data in an Adobe Portable Document Format (PDF) file.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Page {
    /// <p>The page number of the page that contains the sensitive data.</p>
    pub page_number: ::std::option::Option<i64>,
    /// <p>An occurrence of sensitive data detected in a non-binary text file or a Microsoft Word file. Non-binary text files include files such as HTML, XML, JSON, and TXT files.</p>
    pub line_range: ::std::option::Option<crate::types::Range>,
    /// <p>An occurrence of sensitive data detected in a binary text file.</p>
    pub offset_range: ::std::option::Option<crate::types::Range>,
}
impl Page {
    /// <p>The page number of the page that contains the sensitive data.</p>
    pub fn page_number(&self) -> ::std::option::Option<i64> {
        self.page_number
    }
    /// <p>An occurrence of sensitive data detected in a non-binary text file or a Microsoft Word file. Non-binary text files include files such as HTML, XML, JSON, and TXT files.</p>
    pub fn line_range(&self) -> ::std::option::Option<&crate::types::Range> {
        self.line_range.as_ref()
    }
    /// <p>An occurrence of sensitive data detected in a binary text file.</p>
    pub fn offset_range(&self) -> ::std::option::Option<&crate::types::Range> {
        self.offset_range.as_ref()
    }
}
impl Page {
    /// Creates a new builder-style object to manufacture [`Page`](crate::types::Page).
    pub fn builder() -> crate::types::builders::PageBuilder {
        crate::types::builders::PageBuilder::default()
    }
}

/// A builder for [`Page`](crate::types::Page).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct PageBuilder {
    pub(crate) page_number: ::std::option::Option<i64>,
    pub(crate) line_range: ::std::option::Option<crate::types::Range>,
    pub(crate) offset_range: ::std::option::Option<crate::types::Range>,
}
impl PageBuilder {
    /// <p>The page number of the page that contains the sensitive data.</p>
    pub fn page_number(mut self, input: i64) -> Self {
        self.page_number = ::std::option::Option::Some(input);
        self
    }
    /// <p>The page number of the page that contains the sensitive data.</p>
    pub fn set_page_number(mut self, input: ::std::option::Option<i64>) -> Self {
        self.page_number = input;
        self
    }
    /// <p>The page number of the page that contains the sensitive data.</p>
    pub fn get_page_number(&self) -> &::std::option::Option<i64> {
        &self.page_number
    }
    /// <p>An occurrence of sensitive data detected in a non-binary text file or a Microsoft Word file. Non-binary text files include files such as HTML, XML, JSON, and TXT files.</p>
    pub fn line_range(mut self, input: crate::types::Range) -> Self {
        self.line_range = ::std::option::Option::Some(input);
        self
    }
    /// <p>An occurrence of sensitive data detected in a non-binary text file or a Microsoft Word file. Non-binary text files include files such as HTML, XML, JSON, and TXT files.</p>
    pub fn set_line_range(mut self, input: ::std::option::Option<crate::types::Range>) -> Self {
        self.line_range = input;
        self
    }
    /// <p>An occurrence of sensitive data detected in a non-binary text file or a Microsoft Word file. Non-binary text files include files such as HTML, XML, JSON, and TXT files.</p>
    pub fn get_line_range(&self) -> &::std::option::Option<crate::types::Range> {
        &self.line_range
    }
    /// <p>An occurrence of sensitive data detected in a binary text file.</p>
    pub fn offset_range(mut self, input: crate::types::Range) -> Self {
        self.offset_range = ::std::option::Option::Some(input);
        self
    }
    /// <p>An occurrence of sensitive data detected in a binary text file.</p>
    pub fn set_offset_range(mut self, input: ::std::option::Option<crate::types::Range>) -> Self {
        self.offset_range = input;
        self
    }
    /// <p>An occurrence of sensitive data detected in a binary text file.</p>
    pub fn get_offset_range(&self) -> &::std::option::Option<crate::types::Range> {
        &self.offset_range
    }
    /// Consumes the builder and constructs a [`Page`](crate::types::Page).
    pub fn build(self) -> crate::types::Page {
        crate::types::Page {
            page_number: self.page_number,
            line_range: self.line_range,
            offset_range: self.offset_range,
        }
    }
}