aws-sdk-securityhub 1.110.0

AWS SDK for AWS SecurityHub
Documentation
// 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,
        }
    }
}