Interface DetectPiiEntitiesResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,ComprehendResponse.Builder,CopyableBuilder<DetectPiiEntitiesResponse.Builder,DetectPiiEntitiesResponse>,SdkBuilder<DetectPiiEntitiesResponse.Builder,DetectPiiEntitiesResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- DetectPiiEntitiesResponse
public static interface DetectPiiEntitiesResponse.Builder extends ComprehendResponse.Builder, SdkPojo, CopyableBuilder<DetectPiiEntitiesResponse.Builder,DetectPiiEntitiesResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DetectPiiEntitiesResponse.Builderentities(Collection<PiiEntity> entities)A collection of PII entities identified in the input text.DetectPiiEntitiesResponse.Builderentities(Consumer<PiiEntity.Builder>... entities)A collection of PII entities identified in the input text.DetectPiiEntitiesResponse.Builderentities(PiiEntity... entities)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 Detail
-
entities
DetectPiiEntitiesResponse.Builder entities(Collection<PiiEntity> 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
DetectPiiEntitiesResponse.Builder entities(PiiEntity... 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
DetectPiiEntitiesResponse.Builder entities(Consumer<PiiEntity.Builder>... 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 to#entities(List.) - 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:
#entities(java.util.Collection)
-
-