public Record withRecordIndex(Long recordIndex) {
        setRecordIndex(recordIndex);
        return this;
    }
<p>
For an Avro object container or Parquet file, the record index, starting from 0, for the record that contains the
sensitive data. For a JSON Lines file, the line index, starting from 0, for the line that contains the sensitive
data. This value is always 0 for JSON files.
</p>

@param recordIndex
       For an Avro object container or Parquet file, the record index, starting from 0, for the record that
       contains the sensitive data. For a JSON Lines file, the line index, starting from 0, for the line that
       contains the sensitive data. This value is always 0 for JSON files.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-macie2/src/main/java/com/amazonaws/services/macie2/model/Record.java