All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.securityhub.model.Cell Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS SecurityHub module holds the client classes that are used for communicating with AWS SecurityHub Service

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2017-2022 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;

/**
 * 

* An occurrence of sensitive data detected in a Microsoft Excel workbook, comma-separated value (CSV) file, or * tab-separated value (TSV) file. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Cell implements Serializable, Cloneable, StructuredPojo { /** *

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

*/ private Long column; /** *

* The row number of the row that contains the data. *

*/ private Long row; /** *

* The name of the column that contains the data. *

*/ private String columnName; /** *

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

*/ private String cellReference; /** *

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

* * @param column * 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. */ public void setColumn(Long column) { this.column = column; } /** *

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

* * @return 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. */ public Long getColumn() { return this.column; } /** *

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

* * @param column * 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. * @return Returns a reference to this object so that method calls can be chained together. */ public Cell withColumn(Long column) { setColumn(column); return this; } /** *

* The row number of the row that contains the data. *

* * @param row * The row number of the row that contains the data. */ public void setRow(Long row) { this.row = row; } /** *

* The row number of the row that contains the data. *

* * @return The row number of the row that contains the data. */ public Long getRow() { return this.row; } /** *

* The row number of the row that contains the data. *

* * @param row * The row number of the row that contains the data. * @return Returns a reference to this object so that method calls can be chained together. */ public Cell withRow(Long row) { setRow(row); return this; } /** *

* The name of the column that contains the data. *

* * @param columnName * The name of the column that contains the data. */ public void setColumnName(String columnName) { this.columnName = columnName; } /** *

* The name of the column that contains the data. *

* * @return The name of the column that contains the data. */ public String getColumnName() { return this.columnName; } /** *

* The name of the column that contains the data. *

* * @param columnName * The name of the column that contains the data. * @return Returns a reference to this object so that method calls can be chained together. */ public Cell withColumnName(String columnName) { setColumnName(columnName); return this; } /** *

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

* * @param cellReference * 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. */ public void setCellReference(String cellReference) { this.cellReference = cellReference; } /** *

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

* * @return 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. */ public String getCellReference() { return this.cellReference; } /** *

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

* * @param cellReference * 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. * @return Returns a reference to this object so that method calls can be chained together. */ public Cell withCellReference(String cellReference) { setCellReference(cellReference); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getColumn() != null) sb.append("Column: ").append(getColumn()).append(","); if (getRow() != null) sb.append("Row: ").append(getRow()).append(","); if (getColumnName() != null) sb.append("ColumnName: ").append(getColumnName()).append(","); if (getCellReference() != null) sb.append("CellReference: ").append(getCellReference()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Cell == false) return false; Cell other = (Cell) obj; if (other.getColumn() == null ^ this.getColumn() == null) return false; if (other.getColumn() != null && other.getColumn().equals(this.getColumn()) == false) return false; if (other.getRow() == null ^ this.getRow() == null) return false; if (other.getRow() != null && other.getRow().equals(this.getRow()) == false) return false; if (other.getColumnName() == null ^ this.getColumnName() == null) return false; if (other.getColumnName() != null && other.getColumnName().equals(this.getColumnName()) == false) return false; if (other.getCellReference() == null ^ this.getCellReference() == null) return false; if (other.getCellReference() != null && other.getCellReference().equals(this.getCellReference()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getColumn() == null) ? 0 : getColumn().hashCode()); hashCode = prime * hashCode + ((getRow() == null) ? 0 : getRow().hashCode()); hashCode = prime * hashCode + ((getColumnName() == null) ? 0 : getColumnName().hashCode()); hashCode = prime * hashCode + ((getCellReference() == null) ? 0 : getCellReference().hashCode()); return hashCode; } @Override public Cell clone() { try { return (Cell) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.securityhub.model.transform.CellMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy