Interface TargetedSentimentEntity.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TargetedSentimentEntity.Builder,,TargetedSentimentEntity> SdkBuilder<TargetedSentimentEntity.Builder,,TargetedSentimentEntity> SdkPojo
- Enclosing class:
TargetedSentimentEntity
-
Method Summary
Modifier and TypeMethodDescriptiondescriptiveMentionIndex(Integer... descriptiveMentionIndex) One or more index into the Mentions array that provides the best name for the entity group.descriptiveMentionIndex(Collection<Integer> descriptiveMentionIndex) One or more index into the Mentions array that provides the best name for the entity group.mentions(Collection<TargetedSentimentMention> mentions) An array of mentions of the entity in the document.mentions(Consumer<TargetedSentimentMention.Builder>... mentions) An array of mentions of the entity in the document.mentions(TargetedSentimentMention... mentions) An array of mentions of the entity in the document.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
descriptiveMentionIndex
TargetedSentimentEntity.Builder descriptiveMentionIndex(Collection<Integer> descriptiveMentionIndex) One or more index into the Mentions array that provides the best name for the entity group.
- Parameters:
descriptiveMentionIndex- One or more index into the Mentions array that provides the best name for the entity group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
descriptiveMentionIndex
One or more index into the Mentions array that provides the best name for the entity group.
- Parameters:
descriptiveMentionIndex- One or more index into the Mentions array that provides the best name for the entity group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mentions
An array of mentions of the entity in the document. The array represents a co-reference group. See Co-reference group for an example.
- Parameters:
mentions- An array of mentions of the entity in the document. The array represents a co-reference group. See Co-reference group for an example.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mentions
An array of mentions of the entity in the document. The array represents a co-reference group. See Co-reference group for an example.
- Parameters:
mentions- An array of mentions of the entity in the document. The array represents a co-reference group. See Co-reference group for an example.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mentions
An array of mentions of the entity in the document. The array represents a co-reference group. See Co-reference group for an example.
This is a convenience method that creates an instance of theTargetedSentimentMention.Builderavoiding the need to create one manually viaTargetedSentimentMention.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomentions(List<TargetedSentimentMention>).- Parameters:
mentions- a consumer that will call methods onTargetedSentimentMention.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-