/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

The detected occurrences of sensitive data.

See Also:

AWS * API Reference

*/ class Occurrences { public: AWS_SECURITYHUB_API Occurrences(); AWS_SECURITYHUB_API Occurrences(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Occurrences& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Occurrences 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.

*/ inline const Aws::Vector& GetLineRanges() const{ return m_lineRanges; } /** *

Occurrences 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.

*/ inline bool LineRangesHasBeenSet() const { return m_lineRangesHasBeenSet; } /** *

Occurrences 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.

*/ inline void SetLineRanges(const Aws::Vector& value) { m_lineRangesHasBeenSet = true; m_lineRanges = value; } /** *

Occurrences 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.

*/ inline void SetLineRanges(Aws::Vector&& value) { m_lineRangesHasBeenSet = true; m_lineRanges = std::move(value); } /** *

Occurrences 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.

*/ inline Occurrences& WithLineRanges(const Aws::Vector& value) { SetLineRanges(value); return *this;} /** *

Occurrences 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.

*/ inline Occurrences& WithLineRanges(Aws::Vector&& value) { SetLineRanges(std::move(value)); return *this;} /** *

Occurrences 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.

*/ inline Occurrences& AddLineRanges(const Range& value) { m_lineRangesHasBeenSet = true; m_lineRanges.push_back(value); return *this; } /** *

Occurrences 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.

*/ inline Occurrences& AddLineRanges(Range&& value) { m_lineRangesHasBeenSet = true; m_lineRanges.push_back(std::move(value)); return *this; } /** *

Occurrences of sensitive data detected in a binary text file.

*/ inline const Aws::Vector& GetOffsetRanges() const{ return m_offsetRanges; } /** *

Occurrences of sensitive data detected in a binary text file.

*/ inline bool OffsetRangesHasBeenSet() const { return m_offsetRangesHasBeenSet; } /** *

Occurrences of sensitive data detected in a binary text file.

*/ inline void SetOffsetRanges(const Aws::Vector& value) { m_offsetRangesHasBeenSet = true; m_offsetRanges = value; } /** *

Occurrences of sensitive data detected in a binary text file.

*/ inline void SetOffsetRanges(Aws::Vector&& value) { m_offsetRangesHasBeenSet = true; m_offsetRanges = std::move(value); } /** *

Occurrences of sensitive data detected in a binary text file.

*/ inline Occurrences& WithOffsetRanges(const Aws::Vector& value) { SetOffsetRanges(value); return *this;} /** *

Occurrences of sensitive data detected in a binary text file.

*/ inline Occurrences& WithOffsetRanges(Aws::Vector&& value) { SetOffsetRanges(std::move(value)); return *this;} /** *

Occurrences of sensitive data detected in a binary text file.

*/ inline Occurrences& AddOffsetRanges(const Range& value) { m_offsetRangesHasBeenSet = true; m_offsetRanges.push_back(value); return *this; } /** *

Occurrences of sensitive data detected in a binary text file.

*/ inline Occurrences& AddOffsetRanges(Range&& value) { m_offsetRangesHasBeenSet = true; m_offsetRanges.push_back(std::move(value)); return *this; } /** *

Occurrences of sensitive data in an Adobe Portable Document Format (PDF) * file.

*/ inline const Aws::Vector& GetPages() const{ return m_pages; } /** *

Occurrences of sensitive data in an Adobe Portable Document Format (PDF) * file.

*/ inline bool PagesHasBeenSet() const { return m_pagesHasBeenSet; } /** *

Occurrences of sensitive data in an Adobe Portable Document Format (PDF) * file.

*/ inline void SetPages(const Aws::Vector& value) { m_pagesHasBeenSet = true; m_pages = value; } /** *

Occurrences of sensitive data in an Adobe Portable Document Format (PDF) * file.

*/ inline void SetPages(Aws::Vector&& value) { m_pagesHasBeenSet = true; m_pages = std::move(value); } /** *

Occurrences of sensitive data in an Adobe Portable Document Format (PDF) * file.

*/ inline Occurrences& WithPages(const Aws::Vector& value) { SetPages(value); return *this;} /** *

Occurrences of sensitive data in an Adobe Portable Document Format (PDF) * file.

*/ inline Occurrences& WithPages(Aws::Vector&& value) { SetPages(std::move(value)); return *this;} /** *

Occurrences of sensitive data in an Adobe Portable Document Format (PDF) * file.

*/ inline Occurrences& AddPages(const Page& value) { m_pagesHasBeenSet = true; m_pages.push_back(value); return *this; } /** *

Occurrences of sensitive data in an Adobe Portable Document Format (PDF) * file.

*/ inline Occurrences& AddPages(Page&& value) { m_pagesHasBeenSet = true; m_pages.push_back(std::move(value)); return *this; } /** *

Occurrences of sensitive data in an Apache Avro object container or an Apache * Parquet file.

*/ inline const Aws::Vector& GetRecords() const{ return m_records; } /** *

Occurrences of sensitive data in an Apache Avro object container or an Apache * Parquet file.

*/ inline bool RecordsHasBeenSet() const { return m_recordsHasBeenSet; } /** *

Occurrences of sensitive data in an Apache Avro object container or an Apache * Parquet file.

*/ inline void SetRecords(const Aws::Vector& value) { m_recordsHasBeenSet = true; m_records = value; } /** *

Occurrences of sensitive data in an Apache Avro object container or an Apache * Parquet file.

*/ inline void SetRecords(Aws::Vector&& value) { m_recordsHasBeenSet = true; m_records = std::move(value); } /** *

Occurrences of sensitive data in an Apache Avro object container or an Apache * Parquet file.

*/ inline Occurrences& WithRecords(const Aws::Vector& value) { SetRecords(value); return *this;} /** *

Occurrences of sensitive data in an Apache Avro object container or an Apache * Parquet file.

*/ inline Occurrences& WithRecords(Aws::Vector&& value) { SetRecords(std::move(value)); return *this;} /** *

Occurrences of sensitive data in an Apache Avro object container or an Apache * Parquet file.

*/ inline Occurrences& AddRecords(const Record& value) { m_recordsHasBeenSet = true; m_records.push_back(value); return *this; } /** *

Occurrences of sensitive data in an Apache Avro object container or an Apache * Parquet file.

*/ inline Occurrences& AddRecords(Record&& value) { m_recordsHasBeenSet = true; m_records.push_back(std::move(value)); return *this; } /** *

Occurrences of sensitive data detected in Microsoft Excel workbooks, * comma-separated value (CSV) files, or tab-separated value (TSV) files.

*/ inline const Aws::Vector& GetCells() const{ return m_cells; } /** *

Occurrences of sensitive data detected in Microsoft Excel workbooks, * comma-separated value (CSV) files, or tab-separated value (TSV) files.

*/ inline bool CellsHasBeenSet() const { return m_cellsHasBeenSet; } /** *

Occurrences of sensitive data detected in Microsoft Excel workbooks, * comma-separated value (CSV) files, or tab-separated value (TSV) files.

*/ inline void SetCells(const Aws::Vector& value) { m_cellsHasBeenSet = true; m_cells = value; } /** *

Occurrences of sensitive data detected in Microsoft Excel workbooks, * comma-separated value (CSV) files, or tab-separated value (TSV) files.

*/ inline void SetCells(Aws::Vector&& value) { m_cellsHasBeenSet = true; m_cells = std::move(value); } /** *

Occurrences of sensitive data detected in Microsoft Excel workbooks, * comma-separated value (CSV) files, or tab-separated value (TSV) files.

*/ inline Occurrences& WithCells(const Aws::Vector& value) { SetCells(value); return *this;} /** *

Occurrences of sensitive data detected in Microsoft Excel workbooks, * comma-separated value (CSV) files, or tab-separated value (TSV) files.

*/ inline Occurrences& WithCells(Aws::Vector&& value) { SetCells(std::move(value)); return *this;} /** *

Occurrences of sensitive data detected in Microsoft Excel workbooks, * comma-separated value (CSV) files, or tab-separated value (TSV) files.

*/ inline Occurrences& AddCells(const Cell& value) { m_cellsHasBeenSet = true; m_cells.push_back(value); return *this; } /** *

Occurrences of sensitive data detected in Microsoft Excel workbooks, * comma-separated value (CSV) files, or tab-separated value (TSV) files.

*/ inline Occurrences& AddCells(Cell&& value) { m_cellsHasBeenSet = true; m_cells.push_back(std::move(value)); return *this; } private: Aws::Vector m_lineRanges; bool m_lineRangesHasBeenSet = false; Aws::Vector m_offsetRanges; bool m_offsetRangesHasBeenSet = false; Aws::Vector m_pages; bool m_pagesHasBeenSet = false; Aws::Vector m_records; bool m_recordsHasBeenSet = false; Aws::Vector m_cells; bool m_cellsHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws