@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GuardrailPiiEntity extends Object implements Serializable, Cloneable, StructuredPojo
The PII entity configured for the guardrail.
| Constructor and Description |
|---|
GuardrailPiiEntity() |
| Modifier and Type | Method and Description |
|---|---|
GuardrailPiiEntity |
clone() |
boolean |
equals(Object obj) |
String |
getAction()
The configured guardrail action when PII entity is detected.
|
String |
getType()
The type of PII entity.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setAction(String action)
The configured guardrail action when PII entity is detected.
|
void |
setType(String type)
The type of PII entity.
|
String |
toString()
Returns a string representation of this object.
|
GuardrailPiiEntity |
withAction(GuardrailSensitiveInformationAction action)
The configured guardrail action when PII entity is detected.
|
GuardrailPiiEntity |
withAction(String action)
The configured guardrail action when PII entity is detected.
|
GuardrailPiiEntity |
withType(GuardrailPiiEntityType type)
The type of PII entity.
|
GuardrailPiiEntity |
withType(String type)
The type of PII entity.
|
public void setType(String type)
The type of PII entity. For example, Social Security Number.
type - The type of PII entity. For example, Social Security Number.GuardrailPiiEntityTypepublic String getType()
The type of PII entity. For example, Social Security Number.
GuardrailPiiEntityTypepublic GuardrailPiiEntity withType(String type)
The type of PII entity. For example, Social Security Number.
type - The type of PII entity. For example, Social Security Number.GuardrailPiiEntityTypepublic GuardrailPiiEntity withType(GuardrailPiiEntityType type)
The type of PII entity. For example, Social Security Number.
type - The type of PII entity. For example, Social Security Number.GuardrailPiiEntityTypepublic void setAction(String action)
The configured guardrail action when PII entity is detected.
action - The configured guardrail action when PII entity is detected.GuardrailSensitiveInformationActionpublic String getAction()
The configured guardrail action when PII entity is detected.
GuardrailSensitiveInformationActionpublic GuardrailPiiEntity withAction(String action)
The configured guardrail action when PII entity is detected.
action - The configured guardrail action when PII entity is detected.GuardrailSensitiveInformationActionpublic GuardrailPiiEntity withAction(GuardrailSensitiveInformationAction action)
The configured guardrail action when PII entity is detected.
action - The configured guardrail action when PII entity is detected.GuardrailSensitiveInformationActionpublic String toString()
toString in class ObjectObject.toString()public GuardrailPiiEntity clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.