@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ToxicityDetectionSettings extends Object implements Serializable, Cloneable, StructuredPojo
Contains ToxicityCategories, which is a required parameter if you want to enable toxicity detection (
ToxicityDetection) in your transcription request.
| Constructor and Description |
|---|
ToxicityDetectionSettings() |
| Modifier and Type | Method and Description |
|---|---|
ToxicityDetectionSettings |
clone() |
boolean |
equals(Object obj) |
List<String> |
getToxicityCategories()
If you include
ToxicityDetection in your transcription request, you must also include
ToxicityCategories. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setToxicityCategories(Collection<String> toxicityCategories)
If you include
ToxicityDetection in your transcription request, you must also include
ToxicityCategories. |
String |
toString()
Returns a string representation of this object.
|
ToxicityDetectionSettings |
withToxicityCategories(Collection<String> toxicityCategories)
If you include
ToxicityDetection in your transcription request, you must also include
ToxicityCategories. |
ToxicityDetectionSettings |
withToxicityCategories(String... toxicityCategories)
If you include
ToxicityDetection in your transcription request, you must also include
ToxicityCategories. |
ToxicityDetectionSettings |
withToxicityCategories(ToxicityCategory... toxicityCategories)
If you include
ToxicityDetection in your transcription request, you must also include
ToxicityCategories. |
public List<String> getToxicityCategories()
If you include ToxicityDetection in your transcription request, you must also include
ToxicityCategories. The only accepted value for this parameter is ALL.
ToxicityDetection in your transcription request, you must also include
ToxicityCategories. The only accepted value for this parameter is ALL.ToxicityCategorypublic void setToxicityCategories(Collection<String> toxicityCategories)
If you include ToxicityDetection in your transcription request, you must also include
ToxicityCategories. The only accepted value for this parameter is ALL.
toxicityCategories - If you include ToxicityDetection in your transcription request, you must also include
ToxicityCategories. The only accepted value for this parameter is ALL.ToxicityCategorypublic ToxicityDetectionSettings withToxicityCategories(String... toxicityCategories)
If you include ToxicityDetection in your transcription request, you must also include
ToxicityCategories. The only accepted value for this parameter is ALL.
NOTE: This method appends the values to the existing list (if any). Use
setToxicityCategories(java.util.Collection) or withToxicityCategories(java.util.Collection) if
you want to override the existing values.
toxicityCategories - If you include ToxicityDetection in your transcription request, you must also include
ToxicityCategories. The only accepted value for this parameter is ALL.ToxicityCategorypublic ToxicityDetectionSettings withToxicityCategories(Collection<String> toxicityCategories)
If you include ToxicityDetection in your transcription request, you must also include
ToxicityCategories. The only accepted value for this parameter is ALL.
toxicityCategories - If you include ToxicityDetection in your transcription request, you must also include
ToxicityCategories. The only accepted value for this parameter is ALL.ToxicityCategorypublic ToxicityDetectionSettings withToxicityCategories(ToxicityCategory... toxicityCategories)
If you include ToxicityDetection in your transcription request, you must also include
ToxicityCategories. The only accepted value for this parameter is ALL.
toxicityCategories - If you include ToxicityDetection in your transcription request, you must also include
ToxicityCategories. The only accepted value for this parameter is ALL.ToxicityCategorypublic String toString()
toString in class ObjectObject.toString()public ToxicityDetectionSettings clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.