/* * 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.glue.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Specifies a transform that identifies, removes or masks PII data. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PIIDetection implements Serializable, Cloneable, StructuredPojo { /** ** The name of the transform node. *
*/ private String name; /** ** The node ID inputs to the transform. *
*/ private java.util.List* Indicates the type of PIIDetection transform. *
*/ private String piiType; /** ** Indicates the types of entities the PIIDetection transform will identify as PII data. *
** PII type entities include: PERSON_NAME, DATE, USA_SNN, EMAIL, USA_ITIN, USA_PASSPORT_NUMBER, PHONE_NUMBER, * BANK_ACCOUNT, IP_ADDRESS, MAC_ADDRESS, USA_CPT_CODE, USA_HCPCS_CODE, USA_NATIONAL_DRUG_CODE, * USA_MEDICARE_BENEFICIARY_IDENTIFIER, * USA_HEALTH_INSURANCE_CLAIM_NUMBER,CREDIT_CARD,USA_NATIONAL_PROVIDER_IDENTIFIER,USA_DEA_NUMBER,USA_DRIVING_LICENSE *
*/ private java.util.List* Indicates the output column name that will contain any entity type detected in that row. *
*/ private String outputColumnName; /** ** Indicates the fraction of the data to sample when scanning for PII entities. *
*/ private Double sampleFraction; /** ** Indicates the fraction of the data that must be met in order for a column to be identified as PII data. *
*/ private Double thresholdFraction; /** ** Indicates the value that will replace the detected entity. *
*/ private String maskValue; /** ** The name of the transform node. *
* * @param name * The name of the transform node. */ public void setName(String name) { this.name = name; } /** ** The name of the transform node. *
* * @return The name of the transform node. */ public String getName() { return this.name; } /** ** The name of the transform node. *
* * @param name * The name of the transform node. * @return Returns a reference to this object so that method calls can be chained together. */ public PIIDetection withName(String name) { setName(name); return this; } /** ** The node ID inputs to the transform. *
* * @return The node ID inputs to the transform. */ public java.util.List* The node ID inputs to the transform. *
* * @param inputs * The node ID inputs to the transform. */ public void setInputs(java.util.Collection* The node ID inputs to the transform. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setInputs(java.util.Collection)} or {@link #withInputs(java.util.Collection)} if you want to override the * existing values. *
* * @param inputs * The node ID inputs to the transform. * @return Returns a reference to this object so that method calls can be chained together. */ public PIIDetection withInputs(String... inputs) { if (this.inputs == null) { setInputs(new java.util.ArrayList* The node ID inputs to the transform. *
* * @param inputs * The node ID inputs to the transform. * @return Returns a reference to this object so that method calls can be chained together. */ public PIIDetection withInputs(java.util.Collection* Indicates the type of PIIDetection transform. *
* * @param piiType * Indicates the type of PIIDetection transform. * @see PiiType */ public void setPiiType(String piiType) { this.piiType = piiType; } /** ** Indicates the type of PIIDetection transform. *
* * @return Indicates the type of PIIDetection transform. * @see PiiType */ public String getPiiType() { return this.piiType; } /** ** Indicates the type of PIIDetection transform. *
* * @param piiType * Indicates the type of PIIDetection transform. * @return Returns a reference to this object so that method calls can be chained together. * @see PiiType */ public PIIDetection withPiiType(String piiType) { setPiiType(piiType); return this; } /** ** Indicates the type of PIIDetection transform. *
* * @param piiType * Indicates the type of PIIDetection transform. * @return Returns a reference to this object so that method calls can be chained together. * @see PiiType */ public PIIDetection withPiiType(PiiType piiType) { this.piiType = piiType.toString(); return this; } /** ** Indicates the types of entities the PIIDetection transform will identify as PII data. *
** PII type entities include: PERSON_NAME, DATE, USA_SNN, EMAIL, USA_ITIN, USA_PASSPORT_NUMBER, PHONE_NUMBER, * BANK_ACCOUNT, IP_ADDRESS, MAC_ADDRESS, USA_CPT_CODE, USA_HCPCS_CODE, USA_NATIONAL_DRUG_CODE, * USA_MEDICARE_BENEFICIARY_IDENTIFIER, * USA_HEALTH_INSURANCE_CLAIM_NUMBER,CREDIT_CARD,USA_NATIONAL_PROVIDER_IDENTIFIER,USA_DEA_NUMBER,USA_DRIVING_LICENSE *
* * @return Indicates the types of entities the PIIDetection transform will identify as PII data. *
* PII type entities include: PERSON_NAME, DATE, USA_SNN, EMAIL, USA_ITIN, USA_PASSPORT_NUMBER,
* PHONE_NUMBER, BANK_ACCOUNT, IP_ADDRESS, MAC_ADDRESS, USA_CPT_CODE, USA_HCPCS_CODE,
* USA_NATIONAL_DRUG_CODE, USA_MEDICARE_BENEFICIARY_IDENTIFIER,
* USA_HEALTH_INSURANCE_CLAIM_NUMBER,CREDIT_CARD
* ,USA_NATIONAL_PROVIDER_IDENTIFIER,USA_DEA_NUMBER,USA_DRIVING_LICENSE
*/
public java.util.List
* Indicates the types of entities the PIIDetection transform will identify as PII data.
*
* PII type entities include: PERSON_NAME, DATE, USA_SNN, EMAIL, USA_ITIN, USA_PASSPORT_NUMBER, PHONE_NUMBER,
* BANK_ACCOUNT, IP_ADDRESS, MAC_ADDRESS, USA_CPT_CODE, USA_HCPCS_CODE, USA_NATIONAL_DRUG_CODE,
* USA_MEDICARE_BENEFICIARY_IDENTIFIER,
* USA_HEALTH_INSURANCE_CLAIM_NUMBER,CREDIT_CARD,USA_NATIONAL_PROVIDER_IDENTIFIER,USA_DEA_NUMBER,USA_DRIVING_LICENSE
*
* PII type entities include: PERSON_NAME, DATE, USA_SNN, EMAIL, USA_ITIN, USA_PASSPORT_NUMBER, PHONE_NUMBER,
* BANK_ACCOUNT, IP_ADDRESS, MAC_ADDRESS, USA_CPT_CODE, USA_HCPCS_CODE, USA_NATIONAL_DRUG_CODE,
* USA_MEDICARE_BENEFICIARY_IDENTIFIER,
* USA_HEALTH_INSURANCE_CLAIM_NUMBER,CREDIT_CARD,USA_NATIONAL_PROVIDER_IDENTIFIER
* ,USA_DEA_NUMBER,USA_DRIVING_LICENSE
*/
public void setEntityTypesToDetect(java.util.Collection
* Indicates the types of entities the PIIDetection transform will identify as PII data.
*
* PII type entities include: PERSON_NAME, DATE, USA_SNN, EMAIL, USA_ITIN, USA_PASSPORT_NUMBER, PHONE_NUMBER,
* BANK_ACCOUNT, IP_ADDRESS, MAC_ADDRESS, USA_CPT_CODE, USA_HCPCS_CODE, USA_NATIONAL_DRUG_CODE,
* USA_MEDICARE_BENEFICIARY_IDENTIFIER,
* USA_HEALTH_INSURANCE_CLAIM_NUMBER,CREDIT_CARD,USA_NATIONAL_PROVIDER_IDENTIFIER,USA_DEA_NUMBER,USA_DRIVING_LICENSE
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setEntityTypesToDetect(java.util.Collection)} or {@link #withEntityTypesToDetect(java.util.Collection)}
* if you want to override the existing values.
*
* PII type entities include: PERSON_NAME, DATE, USA_SNN, EMAIL, USA_ITIN, USA_PASSPORT_NUMBER, PHONE_NUMBER,
* BANK_ACCOUNT, IP_ADDRESS, MAC_ADDRESS, USA_CPT_CODE, USA_HCPCS_CODE, USA_NATIONAL_DRUG_CODE,
* USA_MEDICARE_BENEFICIARY_IDENTIFIER,
* USA_HEALTH_INSURANCE_CLAIM_NUMBER,CREDIT_CARD,USA_NATIONAL_PROVIDER_IDENTIFIER
* ,USA_DEA_NUMBER,USA_DRIVING_LICENSE
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PIIDetection withEntityTypesToDetect(String... entityTypesToDetect) {
if (this.entityTypesToDetect == null) {
setEntityTypesToDetect(new java.util.ArrayList
* Indicates the types of entities the PIIDetection transform will identify as PII data.
*
* PII type entities include: PERSON_NAME, DATE, USA_SNN, EMAIL, USA_ITIN, USA_PASSPORT_NUMBER, PHONE_NUMBER,
* BANK_ACCOUNT, IP_ADDRESS, MAC_ADDRESS, USA_CPT_CODE, USA_HCPCS_CODE, USA_NATIONAL_DRUG_CODE,
* USA_MEDICARE_BENEFICIARY_IDENTIFIER,
* USA_HEALTH_INSURANCE_CLAIM_NUMBER,CREDIT_CARD,USA_NATIONAL_PROVIDER_IDENTIFIER,USA_DEA_NUMBER,USA_DRIVING_LICENSE
*
* PII type entities include: PERSON_NAME, DATE, USA_SNN, EMAIL, USA_ITIN, USA_PASSPORT_NUMBER, PHONE_NUMBER,
* BANK_ACCOUNT, IP_ADDRESS, MAC_ADDRESS, USA_CPT_CODE, USA_HCPCS_CODE, USA_NATIONAL_DRUG_CODE,
* USA_MEDICARE_BENEFICIARY_IDENTIFIER,
* USA_HEALTH_INSURANCE_CLAIM_NUMBER,CREDIT_CARD,USA_NATIONAL_PROVIDER_IDENTIFIER
* ,USA_DEA_NUMBER,USA_DRIVING_LICENSE
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PIIDetection withEntityTypesToDetect(java.util.Collection
* Indicates the output column name that will contain any entity type detected in that row.
*
* Indicates the output column name that will contain any entity type detected in that row.
*
* Indicates the output column name that will contain any entity type detected in that row.
*
* Indicates the fraction of the data to sample when scanning for PII entities.
*
* Indicates the fraction of the data to sample when scanning for PII entities.
*
* Indicates the fraction of the data to sample when scanning for PII entities.
*
* Indicates the fraction of the data that must be met in order for a column to be identified as PII data.
*
* Indicates the fraction of the data that must be met in order for a column to be identified as PII data.
*
* Indicates the fraction of the data that must be met in order for a column to be identified as PII data.
*
* Indicates the value that will replace the detected entity.
*
* Indicates the value that will replace the detected entity.
*
* Indicates the value that will replace the detected entity.
*