Interface TargetedSentimentEntity.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<TargetedSentimentEntity.Builder,TargetedSentimentEntity>,SdkBuilder<TargetedSentimentEntity.Builder,TargetedSentimentEntity>,SdkPojo
- Enclosing class:
- TargetedSentimentEntity
public static interface TargetedSentimentEntity.Builder extends SdkPojo, CopyableBuilder<TargetedSentimentEntity.Builder,TargetedSentimentEntity>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TargetedSentimentEntity.BuilderdescriptiveMentionIndex(Integer... descriptiveMentionIndex)One or more index into the Mentions array that provides the best name for the entity group.TargetedSentimentEntity.BuilderdescriptiveMentionIndex(Collection<Integer> descriptiveMentionIndex)One or more index into the Mentions array that provides the best name for the entity group.TargetedSentimentEntity.Buildermentions(Collection<TargetedSentimentMention> mentions)An array of mentions of the entity in the document.TargetedSentimentEntity.Buildermentions(Consumer<TargetedSentimentMention.Builder>... mentions)An array of mentions of the entity in the document.TargetedSentimentEntity.Buildermentions(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, sdkFields
-
-
-
-
Method Detail
-
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
TargetedSentimentEntity.Builder descriptiveMentionIndex(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.
-
mentions
TargetedSentimentEntity.Builder mentions(Collection<TargetedSentimentMention> 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
TargetedSentimentEntity.Builder mentions(TargetedSentimentMention... 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
TargetedSentimentEntity.Builder mentions(Consumer<TargetedSentimentMention.Builder>... 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 to#mentions(List.) - 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:
#mentions(java.util.Collection)
-
-