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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>An occurrence of sensitive data detected in a Microsoft Excel workbook, comma-separated value (CSV) file, or tab-separated value (TSV) file.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Cell {
/// <p>The column number of the column that contains the data. For a Microsoft Excel workbook, the column number corresponds to the alphabetical column identifiers. For example, a value of 1 for Column corresponds to the A column in the workbook.</p>
pub column: ::std::option::Option<i64>,
/// <p>The row number of the row that contains the data.</p>
pub row: ::std::option::Option<i64>,
/// <p>The name of the column that contains the data.</p>
pub column_name: ::std::option::Option<::std::string::String>,
/// <p>For a Microsoft Excel workbook, provides the location of the cell, as an absolute cell reference, that contains the data. For example, Sheet2!C5 for cell C5 on Sheet2.</p>
pub cell_reference: ::std::option::Option<::std::string::String>,
}
impl Cell {
/// <p>The column number of the column that contains the data. For a Microsoft Excel workbook, the column number corresponds to the alphabetical column identifiers. For example, a value of 1 for Column corresponds to the A column in the workbook.</p>
pub fn column(&self) -> ::std::option::Option<i64> {
self.column
}
/// <p>The row number of the row that contains the data.</p>
pub fn row(&self) -> ::std::option::Option<i64> {
self.row
}
/// <p>The name of the column that contains the data.</p>
pub fn column_name(&self) -> ::std::option::Option<&str> {
self.column_name.as_deref()
}
/// <p>For a Microsoft Excel workbook, provides the location of the cell, as an absolute cell reference, that contains the data. For example, Sheet2!C5 for cell C5 on Sheet2.</p>
pub fn cell_reference(&self) -> ::std::option::Option<&str> {
self.cell_reference.as_deref()
}
}
impl Cell {
/// Creates a new builder-style object to manufacture [`Cell`](crate::types::Cell).
pub fn builder() -> crate::types::builders::CellBuilder {
crate::types::builders::CellBuilder::default()
}
}
/// A builder for [`Cell`](crate::types::Cell).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CellBuilder {
pub(crate) column: ::std::option::Option<i64>,
pub(crate) row: ::std::option::Option<i64>,
pub(crate) column_name: ::std::option::Option<::std::string::String>,
pub(crate) cell_reference: ::std::option::Option<::std::string::String>,
}
impl CellBuilder {
/// <p>The column number of the column that contains the data. For a Microsoft Excel workbook, the column number corresponds to the alphabetical column identifiers. For example, a value of 1 for Column corresponds to the A column in the workbook.</p>
pub fn column(mut self, input: i64) -> Self {
self.column = ::std::option::Option::Some(input);
self
}
/// <p>The column number of the column that contains the data. For a Microsoft Excel workbook, the column number corresponds to the alphabetical column identifiers. For example, a value of 1 for Column corresponds to the A column in the workbook.</p>
pub fn set_column(mut self, input: ::std::option::Option<i64>) -> Self {
self.column = input;
self
}
/// <p>The column number of the column that contains the data. For a Microsoft Excel workbook, the column number corresponds to the alphabetical column identifiers. For example, a value of 1 for Column corresponds to the A column in the workbook.</p>
pub fn get_column(&self) -> &::std::option::Option<i64> {
&self.column
}
/// <p>The row number of the row that contains the data.</p>
pub fn row(mut self, input: i64) -> Self {
self.row = ::std::option::Option::Some(input);
self
}
/// <p>The row number of the row that contains the data.</p>
pub fn set_row(mut self, input: ::std::option::Option<i64>) -> Self {
self.row = input;
self
}
/// <p>The row number of the row that contains the data.</p>
pub fn get_row(&self) -> &::std::option::Option<i64> {
&self.row
}
/// <p>The name of the column that contains the data.</p>
pub fn column_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.column_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the column that contains the data.</p>
pub fn set_column_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.column_name = input;
self
}
/// <p>The name of the column that contains the data.</p>
pub fn get_column_name(&self) -> &::std::option::Option<::std::string::String> {
&self.column_name
}
/// <p>For a Microsoft Excel workbook, provides the location of the cell, as an absolute cell reference, that contains the data. For example, Sheet2!C5 for cell C5 on Sheet2.</p>
pub fn cell_reference(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.cell_reference = ::std::option::Option::Some(input.into());
self
}
/// <p>For a Microsoft Excel workbook, provides the location of the cell, as an absolute cell reference, that contains the data. For example, Sheet2!C5 for cell C5 on Sheet2.</p>
pub fn set_cell_reference(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.cell_reference = input;
self
}
/// <p>For a Microsoft Excel workbook, provides the location of the cell, as an absolute cell reference, that contains the data. For example, Sheet2!C5 for cell C5 on Sheet2.</p>
pub fn get_cell_reference(&self) -> &::std::option::Option<::std::string::String> {
&self.cell_reference
}
/// Consumes the builder and constructs a [`Cell`](crate::types::Cell).
pub fn build(self) -> crate::types::Cell {
crate::types::Cell {
column: self.column,
row: self.row,
column_name: self.column_name,
cell_reference: self.cell_reference,
}
}
}