Interface TargetedSentimentMention.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<TargetedSentimentMention.Builder,TargetedSentimentMention>,SdkBuilder<TargetedSentimentMention.Builder,TargetedSentimentMention>,SdkPojo
- Enclosing class:
- TargetedSentimentMention
public static interface TargetedSentimentMention.Builder extends SdkPojo, CopyableBuilder<TargetedSentimentMention.Builder,TargetedSentimentMention>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description TargetedSentimentMention.BuilderbeginOffset(Integer beginOffset)The offset into the document text where the mention begins.TargetedSentimentMention.BuilderendOffset(Integer endOffset)The offset into the document text where the mention ends.TargetedSentimentMention.BuildergroupScore(Float groupScore)The confidence that all the entities mentioned in the group relate to the same entity.default TargetedSentimentMention.BuildermentionSentiment(Consumer<MentionSentiment.Builder> mentionSentiment)Contains the sentiment and sentiment score for the mention.TargetedSentimentMention.BuildermentionSentiment(MentionSentiment mentionSentiment)Contains the sentiment and sentiment score for the mention.TargetedSentimentMention.Builderscore(Float score)Model confidence that the entity is relevant.TargetedSentimentMention.Buildertext(String text)The text in the document that identifies the entity.TargetedSentimentMention.Buildertype(String type)The type of the entity.TargetedSentimentMention.Buildertype(TargetedSentimentEntityType type)The type of the entity.-
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
-
score
TargetedSentimentMention.Builder score(Float score)
Model confidence that the entity is relevant. Value range is zero to one, where one is highest confidence.
- Parameters:
score- Model confidence that the entity is relevant. Value range is zero to one, where one is highest confidence.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupScore
TargetedSentimentMention.Builder groupScore(Float groupScore)
The confidence that all the entities mentioned in the group relate to the same entity.
- Parameters:
groupScore- The confidence that all the entities mentioned in the group relate to the same entity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
text
TargetedSentimentMention.Builder text(String text)
The text in the document that identifies the entity.
- Parameters:
text- The text in the document that identifies the entity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
TargetedSentimentMention.Builder type(String type)
The type of the entity. Amazon Comprehend supports a variety of entity types.
- Parameters:
type- The type of the entity. Amazon Comprehend supports a variety of entity types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TargetedSentimentEntityType,TargetedSentimentEntityType
-
type
TargetedSentimentMention.Builder type(TargetedSentimentEntityType type)
The type of the entity. Amazon Comprehend supports a variety of entity types.
- Parameters:
type- The type of the entity. Amazon Comprehend supports a variety of entity types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TargetedSentimentEntityType,TargetedSentimentEntityType
-
mentionSentiment
TargetedSentimentMention.Builder mentionSentiment(MentionSentiment mentionSentiment)
Contains the sentiment and sentiment score for the mention.
- Parameters:
mentionSentiment- Contains the sentiment and sentiment score for the mention.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mentionSentiment
default TargetedSentimentMention.Builder mentionSentiment(Consumer<MentionSentiment.Builder> mentionSentiment)
Contains the sentiment and sentiment score for the mention.
This is a convenience method that creates an instance of theMentionSentiment.Builderavoiding the need to create one manually viaMentionSentiment.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomentionSentiment(MentionSentiment).- Parameters:
mentionSentiment- a consumer that will call methods onMentionSentiment.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
mentionSentiment(MentionSentiment)
-
beginOffset
TargetedSentimentMention.Builder beginOffset(Integer beginOffset)
The offset into the document text where the mention begins.
- Parameters:
beginOffset- The offset into the document text where the mention begins.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endOffset
TargetedSentimentMention.Builder endOffset(Integer endOffset)
The offset into the document text where the mention ends.
- Parameters:
endOffset- The offset into the document text where the mention ends.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-