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, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods 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.Builder
avoiding the need to create one manually viaPiiEntity.builder()
.When the
Consumer
completes,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:
-