Interface DetectEntitiesV2Response.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,ComprehendMedicalResponse.Builder,CopyableBuilder<DetectEntitiesV2Response.Builder,DetectEntitiesV2Response>,SdkBuilder<DetectEntitiesV2Response.Builder,DetectEntitiesV2Response>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- DetectEntitiesV2Response
public static interface DetectEntitiesV2Response.Builder extends ComprehendMedicalResponse.Builder, SdkPojo, CopyableBuilder<DetectEntitiesV2Response.Builder,DetectEntitiesV2Response>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DetectEntitiesV2Response.Builderentities(Collection<Entity> entities)The collection of medical entities extracted from the input text and their associated information.DetectEntitiesV2Response.Builderentities(Consumer<Entity.Builder>... entities)The collection of medical entities extracted from the input text and their associated information.DetectEntitiesV2Response.Builderentities(Entity... entities)The collection of medical entities extracted from the input text and their associated information.DetectEntitiesV2Response.BuildermodelVersion(String modelVersion)The version of the model used to analyze the documents.DetectEntitiesV2Response.BuilderpaginationToken(String paginationToken)If the result to theDetectEntitiesV2operation was truncated, include thePaginationTokento fetch the next page of entities.DetectEntitiesV2Response.BuilderunmappedAttributes(Collection<UnmappedAttribute> unmappedAttributes)Attributes extracted from the input text that couldn't be related to an entity.DetectEntitiesV2Response.BuilderunmappedAttributes(Consumer<UnmappedAttribute.Builder>... unmappedAttributes)Attributes extracted from the input text that couldn't be related to an entity.DetectEntitiesV2Response.BuilderunmappedAttributes(UnmappedAttribute... unmappedAttributes)Attributes extracted from the input text that couldn't be related to an entity.-
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
DetectEntitiesV2Response.Builder entities(Collection<Entity> entities)
The collection of medical 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 in the detection and analysis. Attributes and traits of the entity are also returned.
- Parameters:
entities- The collection of medical 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 in the detection and analysis. Attributes and traits of the entity are also returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entities
DetectEntitiesV2Response.Builder entities(Entity... entities)
The collection of medical 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 in the detection and analysis. Attributes and traits of the entity are also returned.
- Parameters:
entities- The collection of medical 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 in the detection and analysis. Attributes and traits of the entity are also returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entities
DetectEntitiesV2Response.Builder entities(Consumer<Entity.Builder>... entities)
The collection of medical 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 in the detection and analysis. Attributes and traits of the entity are also returned.
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)
-
unmappedAttributes
DetectEntitiesV2Response.Builder unmappedAttributes(Collection<UnmappedAttribute> unmappedAttributes)
Attributes extracted from the input text that couldn't be related to an entity.
- Parameters:
unmappedAttributes- Attributes extracted from the input text that couldn't be related to an entity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
unmappedAttributes
DetectEntitiesV2Response.Builder unmappedAttributes(UnmappedAttribute... unmappedAttributes)
Attributes extracted from the input text that couldn't be related to an entity.
- Parameters:
unmappedAttributes- Attributes extracted from the input text that couldn't be related to an entity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
unmappedAttributes
DetectEntitiesV2Response.Builder unmappedAttributes(Consumer<UnmappedAttribute.Builder>... unmappedAttributes)
Attributes extracted from the input text that couldn't be related to an entity.
This is a convenience method that creates an instance of theUnmappedAttribute.Builderavoiding the need to create one manually viaUnmappedAttribute.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#unmappedAttributes(List.) - Parameters:
unmappedAttributes- a consumer that will call methods onUnmappedAttribute.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#unmappedAttributes(java.util.Collection)
-
paginationToken
DetectEntitiesV2Response.Builder paginationToken(String paginationToken)
If the result to the
DetectEntitiesV2operation was truncated, include thePaginationTokento fetch the next page of entities.- Parameters:
paginationToken- If the result to theDetectEntitiesV2operation was truncated, include thePaginationTokento fetch the next page of entities.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelVersion
DetectEntitiesV2Response.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.
-
-