/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.securityhub.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The detected occurrences of sensitive data. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Occurrences implements Serializable, Cloneable, StructuredPojo { /** ** 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. *
*/ private java.util.List* Occurrences of sensitive data detected in a binary text file. *
*/ private java.util.List* Occurrences of sensitive data in an Adobe Portable Document Format (PDF) file. *
*/ private java.util.List* Occurrences of sensitive data in an Apache Avro object container or an Apache Parquet file. *
*/ private java.util.List* Occurrences of sensitive data detected in Microsoft Excel workbooks, comma-separated value (CSV) files, or * tab-separated value (TSV) files. *
*/ private java.util.List* 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. *
* * @return 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. */ public java.util.List* 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. *
* * @param 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. */ public void setLineRanges(java.util.Collection* 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. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setLineRanges(java.util.Collection)} or {@link #withLineRanges(java.util.Collection)} if you want to * override the existing values. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public Occurrences withLineRanges(Range... lineRanges) { if (this.lineRanges == null) { setLineRanges(new java.util.ArrayList* 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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public Occurrences withLineRanges(java.util.Collection* Occurrences of sensitive data detected in a binary text file. *
* * @return Occurrences of sensitive data detected in a binary text file. */ public java.util.List* Occurrences of sensitive data detected in a binary text file. *
* * @param offsetRanges * Occurrences of sensitive data detected in a binary text file. */ public void setOffsetRanges(java.util.Collection* Occurrences of sensitive data detected in a binary text file. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setOffsetRanges(java.util.Collection)} or {@link #withOffsetRanges(java.util.Collection)} if you want to * override the existing values. *
* * @param offsetRanges * Occurrences of sensitive data detected in a binary text file. * @return Returns a reference to this object so that method calls can be chained together. */ public Occurrences withOffsetRanges(Range... offsetRanges) { if (this.offsetRanges == null) { setOffsetRanges(new java.util.ArrayList* Occurrences of sensitive data detected in a binary text file. *
* * @param offsetRanges * Occurrences of sensitive data detected in a binary text file. * @return Returns a reference to this object so that method calls can be chained together. */ public Occurrences withOffsetRanges(java.util.Collection* Occurrences of sensitive data in an Adobe Portable Document Format (PDF) file. *
* * @return Occurrences of sensitive data in an Adobe Portable Document Format (PDF) file. */ public java.util.List* Occurrences of sensitive data in an Adobe Portable Document Format (PDF) file. *
* * @param pages * Occurrences of sensitive data in an Adobe Portable Document Format (PDF) file. */ public void setPages(java.util.Collection* Occurrences of sensitive data in an Adobe Portable Document Format (PDF) file. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setPages(java.util.Collection)} or {@link #withPages(java.util.Collection)} if you want to override the * existing values. *
* * @param pages * Occurrences of sensitive data in an Adobe Portable Document Format (PDF) file. * @return Returns a reference to this object so that method calls can be chained together. */ public Occurrences withPages(Page... pages) { if (this.pages == null) { setPages(new java.util.ArrayList* Occurrences of sensitive data in an Adobe Portable Document Format (PDF) file. *
* * @param pages * Occurrences of sensitive data in an Adobe Portable Document Format (PDF) file. * @return Returns a reference to this object so that method calls can be chained together. */ public Occurrences withPages(java.util.Collection* Occurrences of sensitive data in an Apache Avro object container or an Apache Parquet file. *
* * @return Occurrences of sensitive data in an Apache Avro object container or an Apache Parquet file. */ public java.util.List* Occurrences of sensitive data in an Apache Avro object container or an Apache Parquet file. *
* * @param records * Occurrences of sensitive data in an Apache Avro object container or an Apache Parquet file. */ public void setRecords(java.util.Collection* Occurrences of sensitive data in an Apache Avro object container or an Apache Parquet file. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setRecords(java.util.Collection)} or {@link #withRecords(java.util.Collection)} if you want to override * the existing values. *
* * @param records * Occurrences of sensitive data in an Apache Avro object container or an Apache Parquet file. * @return Returns a reference to this object so that method calls can be chained together. */ public Occurrences withRecords(Record... records) { if (this.records == null) { setRecords(new java.util.ArrayList* Occurrences of sensitive data in an Apache Avro object container or an Apache Parquet file. *
* * @param records * Occurrences of sensitive data in an Apache Avro object container or an Apache Parquet file. * @return Returns a reference to this object so that method calls can be chained together. */ public Occurrences withRecords(java.util.Collection* Occurrences of sensitive data detected in Microsoft Excel workbooks, comma-separated value (CSV) files, or * tab-separated value (TSV) files. *
* * @return Occurrences of sensitive data detected in Microsoft Excel workbooks, comma-separated value (CSV) files, * or tab-separated value (TSV) files. */ public java.util.List* Occurrences of sensitive data detected in Microsoft Excel workbooks, comma-separated value (CSV) files, or * tab-separated value (TSV) files. *
* * @param cells * Occurrences of sensitive data detected in Microsoft Excel workbooks, comma-separated value (CSV) files, or * tab-separated value (TSV) files. */ public void setCells(java.util.Collection* Occurrences of sensitive data detected in Microsoft Excel workbooks, comma-separated value (CSV) files, or * tab-separated value (TSV) files. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setCells(java.util.Collection)} or {@link #withCells(java.util.Collection)} if you want to override the * existing values. *
* * @param cells * Occurrences of sensitive data detected in Microsoft Excel workbooks, comma-separated value (CSV) files, or * tab-separated value (TSV) files. * @return Returns a reference to this object so that method calls can be chained together. */ public Occurrences withCells(Cell... cells) { if (this.cells == null) { setCells(new java.util.ArrayList* Occurrences of sensitive data detected in Microsoft Excel workbooks, comma-separated value (CSV) files, or * tab-separated value (TSV) files. *
* * @param cells * Occurrences of sensitive data detected in Microsoft Excel workbooks, comma-separated value (CSV) files, or * tab-separated value (TSV) files. * @return Returns a reference to this object so that method calls can be chained together. */ public Occurrences withCells(java.util.Collection