@Generated(value="software.amazon.awssdk:codegen") public final class PiiEntity extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PiiEntity.Builder,PiiEntity>
Provides information about a PII entity.
| Modifier and Type | Class and Description |
|---|---|
static interface |
PiiEntity.Builder |
| Modifier and Type | Method and Description |
|---|---|
Integer |
beginOffset()
A character offset in the input text that shows where the PII entity begins (the first character is at position
0).
|
static PiiEntity.Builder |
builder() |
Integer |
endOffset()
A character offset in the input text that shows where the PII entity ends.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Float |
score()
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PiiEntity.Builder> |
serializableBuilderClass() |
PiiEntity.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
PiiEntityType |
type()
The entity's type.
|
String |
typeAsString()
The entity's type.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Float score()
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
public final PiiEntityType type()
The entity's type.
If the service returns an enum value that is not available in the current SDK version, type will return
PiiEntityType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
PiiEntityTypepublic final String typeAsString()
The entity's type.
If the service returns an enum value that is not available in the current SDK version, type will return
PiiEntityType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
PiiEntityTypepublic final Integer beginOffset()
A character offset in the input text that shows where the PII entity begins (the first character is at position 0). The offset returns the position of each UTF-8 code point in the string. A code point is the abstract character from a particular graphical representation. For example, a multi-byte UTF-8 character maps to a single code point.
public final Integer endOffset()
A character offset in the input text that shows where the PII entity ends. The offset returns the position of each UTF-8 code point in the string. A code point is the abstract character from a particular graphical representation. For example, a multi-byte UTF-8 character maps to a single code point.
public PiiEntity.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PiiEntity.Builder,PiiEntity>public static PiiEntity.Builder builder()
public static Class<? extends PiiEntity.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.