@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.GuardrailPiiEntityType
public String getType()
The type of PII entity. For example, Social Security Number.
GuardrailPiiEntityType
public 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.GuardrailPiiEntityType
public 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.GuardrailPiiEntityType
public void setAction(String action)
The configured guardrail action when PII entity is detected.
action
- The configured guardrail action when PII entity is detected.GuardrailSensitiveInformationAction
public String getAction()
The configured guardrail action when PII entity is detected.
GuardrailSensitiveInformationAction
public GuardrailPiiEntity withAction(String action)
The configured guardrail action when PII entity is detected.
action
- The configured guardrail action when PII entity is detected.GuardrailSensitiveInformationAction
public GuardrailPiiEntity withAction(GuardrailSensitiveInformationAction action)
The configured guardrail action when PII entity is detected.
action
- The configured guardrail action when PII entity is detected.GuardrailSensitiveInformationAction
public String toString()
toString
in class Object
Object.toString()
public GuardrailPiiEntity clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.