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
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, 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.Builder
avoiding the need to create one manually viaTargetedSentimentMention.builder()
.When the
Consumer
completes,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:
-