Class PiiEntity
- java.lang.Object
-
- software.amazon.awssdk.services.comprehend.model.PiiEntity
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PiiEntity.Builder,PiiEntity>
@Generated("software.amazon.awssdk:codegen") public final class PiiEntity extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PiiEntity.Builder,PiiEntity>
Provides information about a PII entity.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePiiEntity.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegerbeginOffset()The zero-based offset from the beginning of the source text to the first character in the entity.static PiiEntity.Builderbuilder()IntegerendOffset()The zero-based offset from the beginning of the source text to the last character in the entity.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Floatscore()The level of confidence that Amazon Comprehend has in the accuracy of the detection.List<SdkField<?>>sdkFields()static Class<? extends PiiEntity.Builder>serializableBuilderClass()PiiEntity.BuildertoBuilder()StringtoString()Returns a string representation of this object.PiiEntityTypetype()The entity's type.StringtypeAsString()The entity's type.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
score
public final Float score()
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
- Returns:
- The level of confidence that Amazon Comprehend has in the accuracy of the detection.
-
type
public final PiiEntityType type()
The entity's type.
If the service returns an enum value that is not available in the current SDK version,
typewill returnPiiEntityType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The entity's type.
- See Also:
PiiEntityType
-
typeAsString
public final String typeAsString()
The entity's type.
If the service returns an enum value that is not available in the current SDK version,
typewill returnPiiEntityType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The entity's type.
- See Also:
PiiEntityType
-
beginOffset
public final Integer beginOffset()
The zero-based offset from the beginning of the source text to the first character in the entity.
- Returns:
- The zero-based offset from the beginning of the source text to the first character in the entity.
-
endOffset
public final Integer endOffset()
The zero-based offset from the beginning of the source text to the last character in the entity.
- Returns:
- The zero-based offset from the beginning of the source text to the last character in the entity.
-
toBuilder
public PiiEntity.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PiiEntity.Builder,PiiEntity>
-
builder
public static PiiEntity.Builder builder()
-
serializableBuilderClass
public static Class<? extends PiiEntity.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-