Interface DetectPhiResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,ComprehendMedicalResponse.Builder,CopyableBuilder<DetectPhiResponse.Builder,DetectPhiResponse>,SdkBuilder<DetectPhiResponse.Builder,DetectPhiResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- DetectPhiResponse
public static interface DetectPhiResponse.Builder extends ComprehendMedicalResponse.Builder, SdkPojo, CopyableBuilder<DetectPhiResponse.Builder,DetectPhiResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DetectPhiResponse.Builderentities(Collection<Entity> entities)The collection of PHI entities extracted from the input text and their associated information.DetectPhiResponse.Builderentities(Consumer<Entity.Builder>... entities)The collection of PHI entities extracted from the input text and their associated information.DetectPhiResponse.Builderentities(Entity... entities)The collection of PHI entities extracted from the input text and their associated information.DetectPhiResponse.BuildermodelVersion(String modelVersion)The version of the model used to analyze the documents.DetectPhiResponse.BuilderpaginationToken(String paginationToken)If the result of the previous request toDetectPHIwas truncated, include thePaginationTokento fetch the next page of PHI entities.-
Methods inherited from interface software.amazon.awssdk.services.comprehendmedical.model.ComprehendMedicalResponse.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
DetectPhiResponse.Builder entities(Collection<Entity> entities)
The collection of PHI entities extracted from the input text and their associated information. For each entity, the response provides the entity text, the entity category, where the entity text begins and ends, and the level of confidence that Amazon Comprehend Medical has in its detection.
- Parameters:
entities- The collection of PHI entities extracted from the input text and their associated information. For each entity, the response provides the entity text, the entity category, where the entity text begins and ends, and the level of confidence that Amazon Comprehend Medical has in its detection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entities
DetectPhiResponse.Builder entities(Entity... entities)
The collection of PHI entities extracted from the input text and their associated information. For each entity, the response provides the entity text, the entity category, where the entity text begins and ends, and the level of confidence that Amazon Comprehend Medical has in its detection.
- Parameters:
entities- The collection of PHI entities extracted from the input text and their associated information. For each entity, the response provides the entity text, the entity category, where the entity text begins and ends, and the level of confidence that Amazon Comprehend Medical has in its detection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entities
DetectPhiResponse.Builder entities(Consumer<Entity.Builder>... entities)
The collection of PHI entities extracted from the input text and their associated information. For each entity, the response provides the entity text, the entity category, where the entity text begins and ends, and the level of confidence that Amazon Comprehend Medical has in its detection.
This is a convenience method that creates an instance of theEntity.Builderavoiding the need to create one manually viaEntity.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 onEntity.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#entities(java.util.Collection)
-
paginationToken
DetectPhiResponse.Builder paginationToken(String paginationToken)
If the result of the previous request to
DetectPHIwas truncated, include thePaginationTokento fetch the next page of PHI entities.- Parameters:
paginationToken- If the result of the previous request toDetectPHIwas truncated, include thePaginationTokento fetch the next page of PHI entities.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelVersion
DetectPhiResponse.Builder modelVersion(String modelVersion)
The version of the model used to analyze the documents. The version number looks like X.X.X. You can use this information to track the model used for a particular batch of documents.
- Parameters:
modelVersion- The version of the model used to analyze the documents. The version number looks like X.X.X. You can use this information to track the model used for a particular batch of documents.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-