Interface BatchDetectEntitiesItemResult.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<BatchDetectEntitiesItemResult.Builder,
,BatchDetectEntitiesItemResult> SdkBuilder<BatchDetectEntitiesItemResult.Builder,
,BatchDetectEntitiesItemResult> SdkPojo
- Enclosing class:
BatchDetectEntitiesItemResult
public static interface BatchDetectEntitiesItemResult.Builder
extends SdkPojo, CopyableBuilder<BatchDetectEntitiesItemResult.Builder,BatchDetectEntitiesItemResult>
-
Method Summary
Modifier and TypeMethodDescriptionentities
(Collection<Entity> entities) One or more Entity objects, one for each entity detected in the document.entities
(Consumer<Entity.Builder>... entities) One or more Entity objects, one for each entity detected in the document.One or more Entity objects, one for each entity detected in the document.The zero-based index of the document in the input list.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
-
Method Details
-
index
The zero-based index of the document in the input list.
- Parameters:
index
- The zero-based index of the document in the input list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entities
One or more Entity objects, one for each entity detected in the document.
- Parameters:
entities
- One or more Entity objects, one for each entity detected in the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entities
One or more Entity objects, one for each entity detected in the document.
- Parameters:
entities
- One or more Entity objects, one for each entity detected in the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entities
One or more Entity objects, one for each entity detected in the document.
This is a convenience method that creates an instance of theEntity.Builder
avoiding the need to create one manually viaEntity.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toentities(List<Entity>)
.- 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:
-