@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Record extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the location of an occurrence of sensitive data in an Apache Avro object container, Apache Parquet file, JSON file, or JSON Lines file.
Constructor and Description |
---|
Record() |
Modifier and Type | Method and Description |
---|---|
Record |
clone() |
boolean |
equals(Object obj) |
String |
getJsonPath()
The path, as a JSONPath expression, to the sensitive data.
|
Long |
getRecordIndex()
For an Avro object container or Parquet file, the record index, starting from 0, for the record that contains the
sensitive data.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setJsonPath(String jsonPath)
The path, as a JSONPath expression, to the sensitive data.
|
void |
setRecordIndex(Long recordIndex)
For an Avro object container or Parquet file, the record index, starting from 0, for the record that contains the
sensitive data.
|
String |
toString()
Returns a string representation of this object.
|
Record |
withJsonPath(String jsonPath)
The path, as a JSONPath expression, to the sensitive data.
|
Record |
withRecordIndex(Long recordIndex)
For an Avro object container or Parquet file, the record index, starting from 0, for the record that contains the
sensitive data.
|
public void setJsonPath(String jsonPath)
The path, as a JSONPath expression, to the sensitive data. For an Avro object container or Parquet file, this is the path to the field in the record (recordIndex) that contains the data. For a JSON or JSON Lines file, this is the path to the field or array that contains the data. If the data is a value in an array, the path also indicates which value contains the data.
If Amazon Macie detects sensitive data in the name of any element in the path, Macie omits this field. If the name of an element exceeds 240 characters, Macie truncates the name by removing characters from the beginning of the name. If the resulting full path exceeds 250 characters, Macie also truncates the path, starting with the first element in the path, until the path contains 250 or fewer characters.
jsonPath
- The path, as a JSONPath expression, to the sensitive data. For an Avro object container or Parquet file,
this is the path to the field in the record (recordIndex) that contains the data. For a JSON or JSON Lines
file, this is the path to the field or array that contains the data. If the data is a value in an array,
the path also indicates which value contains the data.
If Amazon Macie detects sensitive data in the name of any element in the path, Macie omits this field. If the name of an element exceeds 240 characters, Macie truncates the name by removing characters from the beginning of the name. If the resulting full path exceeds 250 characters, Macie also truncates the path, starting with the first element in the path, until the path contains 250 or fewer characters.
public String getJsonPath()
The path, as a JSONPath expression, to the sensitive data. For an Avro object container or Parquet file, this is the path to the field in the record (recordIndex) that contains the data. For a JSON or JSON Lines file, this is the path to the field or array that contains the data. If the data is a value in an array, the path also indicates which value contains the data.
If Amazon Macie detects sensitive data in the name of any element in the path, Macie omits this field. If the name of an element exceeds 240 characters, Macie truncates the name by removing characters from the beginning of the name. If the resulting full path exceeds 250 characters, Macie also truncates the path, starting with the first element in the path, until the path contains 250 or fewer characters.
If Amazon Macie detects sensitive data in the name of any element in the path, Macie omits this field. If the name of an element exceeds 240 characters, Macie truncates the name by removing characters from the beginning of the name. If the resulting full path exceeds 250 characters, Macie also truncates the path, starting with the first element in the path, until the path contains 250 or fewer characters.
public Record withJsonPath(String jsonPath)
The path, as a JSONPath expression, to the sensitive data. For an Avro object container or Parquet file, this is the path to the field in the record (recordIndex) that contains the data. For a JSON or JSON Lines file, this is the path to the field or array that contains the data. If the data is a value in an array, the path also indicates which value contains the data.
If Amazon Macie detects sensitive data in the name of any element in the path, Macie omits this field. If the name of an element exceeds 240 characters, Macie truncates the name by removing characters from the beginning of the name. If the resulting full path exceeds 250 characters, Macie also truncates the path, starting with the first element in the path, until the path contains 250 or fewer characters.
jsonPath
- The path, as a JSONPath expression, to the sensitive data. For an Avro object container or Parquet file,
this is the path to the field in the record (recordIndex) that contains the data. For a JSON or JSON Lines
file, this is the path to the field or array that contains the data. If the data is a value in an array,
the path also indicates which value contains the data.
If Amazon Macie detects sensitive data in the name of any element in the path, Macie omits this field. If the name of an element exceeds 240 characters, Macie truncates the name by removing characters from the beginning of the name. If the resulting full path exceeds 250 characters, Macie also truncates the path, starting with the first element in the path, until the path contains 250 or fewer characters.
public void setRecordIndex(Long 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.
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.public Long getRecordIndex()
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.
public Record withRecordIndex(Long 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.
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.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.