Interface DetectPiiEntitiesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,ComprehendResponse.Builder,CopyableBuilder<DetectPiiEntitiesResponse.Builder,,DetectPiiEntitiesResponse> SdkBuilder<DetectPiiEntitiesResponse.Builder,,DetectPiiEntitiesResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
DetectPiiEntitiesResponse
-
Method Summary
Modifier and TypeMethodDescriptionentities(Collection<PiiEntity> entities) A collection of PII entities identified in the input text.entities(Consumer<PiiEntity.Builder>... entities) A collection of PII entities identified in the input text.A collection of PII entities identified in the input text.Methods inherited from interface software.amazon.awssdk.services.comprehend.model.ComprehendResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
entities
A collection of PII entities identified in the input text. For each entity, the response provides the entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the detection.
- Parameters:
entities- A collection of PII entities identified in the input text. For each entity, the response provides the entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the detection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entities
A collection of PII entities identified in the input text. For each entity, the response provides the entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the detection.
- Parameters:
entities- A collection of PII entities identified in the input text. For each entity, the response provides the entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the detection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entities
A collection of PII entities identified in the input text. For each entity, the response provides the entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the detection.
This is a convenience method that creates an instance of thePiiEntity.Builderavoiding the need to create one manually viaPiiEntity.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toentities(List<PiiEntity>).- Parameters:
entities- a consumer that will call methods onPiiEntity.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-