/* * 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.transcribe.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Makes it possible to redact or flag specified personally identifiable information (PII) in your transcript. If you
* use ContentRedaction
, you must also include the sub-parameters: PiiEntityTypes
,
* RedactionOutput
, and RedactionType
.
*
* Specify the category of information you want to redact; PII
(personally identifiable information) is
* the only valid value. You can use PiiEntityTypes
to choose which types of PII you want to redact.
*
* Specify if you want only a redacted transcript, or if you want a redacted and an unredacted transcript. *
*
* When you choose redacted
Amazon Transcribe creates only a redacted transcript.
*
* When you choose redacted_and_unredacted
Amazon Transcribe creates a redacted and an unredacted
* transcript (as two separate files).
*
* Specify which types of personally identifiable information (PII) you want to redact in your transcript. You can
* include as many types as you'd like, or you can select ALL
.
*
* Specify the category of information you want to redact; PII
(personally identifiable information) is
* the only valid value. You can use PiiEntityTypes
to choose which types of PII you want to redact.
*
PII
(personally identifiable
* information) is the only valid value. You can use PiiEntityTypes
to choose which types of PII
* you want to redact.
* @see RedactionType
*/
public void setRedactionType(String redactionType) {
this.redactionType = redactionType;
}
/**
*
* Specify the category of information you want to redact; PII
(personally identifiable information) is
* the only valid value. You can use PiiEntityTypes
to choose which types of PII you want to redact.
*
PII
(personally identifiable
* information) is the only valid value. You can use PiiEntityTypes
to choose which types of
* PII you want to redact.
* @see RedactionType
*/
public String getRedactionType() {
return this.redactionType;
}
/**
*
* Specify the category of information you want to redact; PII
(personally identifiable information) is
* the only valid value. You can use PiiEntityTypes
to choose which types of PII you want to redact.
*
PII
(personally identifiable
* information) is the only valid value. You can use PiiEntityTypes
to choose which types of PII
* you want to redact.
* @return Returns a reference to this object so that method calls can be chained together.
* @see RedactionType
*/
public ContentRedaction withRedactionType(String redactionType) {
setRedactionType(redactionType);
return this;
}
/**
*
* Specify the category of information you want to redact; PII
(personally identifiable information) is
* the only valid value. You can use PiiEntityTypes
to choose which types of PII you want to redact.
*
PII
(personally identifiable
* information) is the only valid value. You can use PiiEntityTypes
to choose which types of PII
* you want to redact.
* @return Returns a reference to this object so that method calls can be chained together.
* @see RedactionType
*/
public ContentRedaction withRedactionType(RedactionType redactionType) {
this.redactionType = redactionType.toString();
return this;
}
/**
* * Specify if you want only a redacted transcript, or if you want a redacted and an unredacted transcript. *
*
* When you choose redacted
Amazon Transcribe creates only a redacted transcript.
*
* When you choose redacted_and_unredacted
Amazon Transcribe creates a redacted and an unredacted
* transcript (as two separate files).
*
* When you choose redacted
Amazon Transcribe creates only a redacted transcript.
*
* When you choose redacted_and_unredacted
Amazon Transcribe creates a redacted and an
* unredacted transcript (as two separate files).
* @see RedactionOutput
*/
public void setRedactionOutput(String redactionOutput) {
this.redactionOutput = redactionOutput;
}
/**
*
* Specify if you want only a redacted transcript, or if you want a redacted and an unredacted transcript. *
*
* When you choose redacted
Amazon Transcribe creates only a redacted transcript.
*
* When you choose redacted_and_unredacted
Amazon Transcribe creates a redacted and an unredacted
* transcript (as two separate files).
*
* When you choose redacted
Amazon Transcribe creates only a redacted transcript.
*
* When you choose redacted_and_unredacted
Amazon Transcribe creates a redacted and an
* unredacted transcript (as two separate files).
* @see RedactionOutput
*/
public String getRedactionOutput() {
return this.redactionOutput;
}
/**
*
* Specify if you want only a redacted transcript, or if you want a redacted and an unredacted transcript. *
*
* When you choose redacted
Amazon Transcribe creates only a redacted transcript.
*
* When you choose redacted_and_unredacted
Amazon Transcribe creates a redacted and an unredacted
* transcript (as two separate files).
*
* When you choose redacted
Amazon Transcribe creates only a redacted transcript.
*
* When you choose redacted_and_unredacted
Amazon Transcribe creates a redacted and an
* unredacted transcript (as two separate files).
* @return Returns a reference to this object so that method calls can be chained together.
* @see RedactionOutput
*/
public ContentRedaction withRedactionOutput(String redactionOutput) {
setRedactionOutput(redactionOutput);
return this;
}
/**
*
* Specify if you want only a redacted transcript, or if you want a redacted and an unredacted transcript. *
*
* When you choose redacted
Amazon Transcribe creates only a redacted transcript.
*
* When you choose redacted_and_unredacted
Amazon Transcribe creates a redacted and an unredacted
* transcript (as two separate files).
*
* When you choose redacted
Amazon Transcribe creates only a redacted transcript.
*
* When you choose redacted_and_unredacted
Amazon Transcribe creates a redacted and an
* unredacted transcript (as two separate files).
* @return Returns a reference to this object so that method calls can be chained together.
* @see RedactionOutput
*/
public ContentRedaction withRedactionOutput(RedactionOutput redactionOutput) {
this.redactionOutput = redactionOutput.toString();
return this;
}
/**
*
* Specify which types of personally identifiable information (PII) you want to redact in your transcript. You can
* include as many types as you'd like, or you can select ALL
.
*
ALL
.
* @see PiiEntityType
*/
public java.util.List
* Specify which types of personally identifiable information (PII) you want to redact in your transcript. You can
* include as many types as you'd like, or you can select ALL
.
*
ALL
.
* @see PiiEntityType
*/
public void setPiiEntityTypes(java.util.Collection
* Specify which types of personally identifiable information (PII) you want to redact in your transcript. You can
* include as many types as you'd like, or you can select ALL
.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setPiiEntityTypes(java.util.Collection)} or {@link #withPiiEntityTypes(java.util.Collection)} if you want * to override the existing values. *
* * @param piiEntityTypes * Specify which types of personally identifiable information (PII) you want to redact in your transcript. * You can include as many types as you'd like, or you can selectALL
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see PiiEntityType
*/
public ContentRedaction withPiiEntityTypes(String... piiEntityTypes) {
if (this.piiEntityTypes == null) {
setPiiEntityTypes(new java.util.ArrayList
* Specify which types of personally identifiable information (PII) you want to redact in your transcript. You can
* include as many types as you'd like, or you can select ALL
.
*
ALL
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see PiiEntityType
*/
public ContentRedaction withPiiEntityTypes(java.util.Collection
* Specify which types of personally identifiable information (PII) you want to redact in your transcript. You can
* include as many types as you'd like, or you can select ALL
.
*
ALL
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see PiiEntityType
*/
public ContentRedaction withPiiEntityTypes(PiiEntityType... piiEntityTypes) {
java.util.ArrayList