@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()
The zero-based offset from the beginning of the source text to the first character in the entity.
|
static PiiEntity.Builder |
builder() |
Integer |
endOffset()
The zero-based offset from the beginning of the source text to the last character in the entity.
|
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()
The zero-based offset from the beginning of the source text to the first character in the entity.
public final Integer endOffset()
The zero-based offset from the beginning of the source text to the last character in the entity.
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 © 2023. All rights reserved.