Interface MentionSentiment.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<MentionSentiment.Builder,MentionSentiment>,SdkBuilder<MentionSentiment.Builder,MentionSentiment>,SdkPojo
- Enclosing class:
- MentionSentiment
public static interface MentionSentiment.Builder extends SdkPojo, CopyableBuilder<MentionSentiment.Builder,MentionSentiment>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description MentionSentiment.Buildersentiment(String sentiment)The sentiment of the mention.MentionSentiment.Buildersentiment(SentimentType sentiment)The sentiment of the mention.default MentionSentiment.BuildersentimentScore(Consumer<SentimentScore.Builder> sentimentScore)Sets the value of the SentimentScore property for this object.MentionSentiment.BuildersentimentScore(SentimentScore sentimentScore)Sets the value of the SentimentScore property for this object.-
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
-
sentiment
MentionSentiment.Builder sentiment(String sentiment)
The sentiment of the mention.
- Parameters:
sentiment- The sentiment of the mention.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SentimentType,SentimentType
-
sentiment
MentionSentiment.Builder sentiment(SentimentType sentiment)
The sentiment of the mention.
- Parameters:
sentiment- The sentiment of the mention.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SentimentType,SentimentType
-
sentimentScore
MentionSentiment.Builder sentimentScore(SentimentScore sentimentScore)
Sets the value of the SentimentScore property for this object.- Parameters:
sentimentScore- The new value for the SentimentScore property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sentimentScore
default MentionSentiment.Builder sentimentScore(Consumer<SentimentScore.Builder> sentimentScore)
Sets the value of the SentimentScore property for this object. This is a convenience method that creates an instance of theSentimentScore.Builderavoiding the need to create one manually viaSentimentScore.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosentimentScore(SentimentScore).- Parameters:
sentimentScore- a consumer that will call methods onSentimentScore.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
sentimentScore(SentimentScore)
-
-