Interface DetectSentimentResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,ComprehendResponse.Builder,CopyableBuilder<DetectSentimentResponse.Builder,DetectSentimentResponse>,SdkBuilder<DetectSentimentResponse.Builder,DetectSentimentResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- DetectSentimentResponse
public static interface DetectSentimentResponse.Builder extends ComprehendResponse.Builder, SdkPojo, CopyableBuilder<DetectSentimentResponse.Builder,DetectSentimentResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description DetectSentimentResponse.Buildersentiment(String sentiment)The inferred sentiment that Amazon Comprehend has the highest level of confidence in.DetectSentimentResponse.Buildersentiment(SentimentType sentiment)The inferred sentiment that Amazon Comprehend has the highest level of confidence in.default DetectSentimentResponse.BuildersentimentScore(Consumer<SentimentScore.Builder> sentimentScore)An object that lists the sentiments, and their corresponding confidence levels.DetectSentimentResponse.BuildersentimentScore(SentimentScore sentimentScore)An object that lists the sentiments, and their corresponding confidence levels.-
Methods inherited from interface software.amazon.awssdk.services.comprehend.model.ComprehendResponse.Builder
build, responseMetadata, responseMetadata
-
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
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
sentiment
DetectSentimentResponse.Builder sentiment(String sentiment)
The inferred sentiment that Amazon Comprehend has the highest level of confidence in.
- Parameters:
sentiment- The inferred sentiment that Amazon Comprehend has the highest level of confidence in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SentimentType,SentimentType
-
sentiment
DetectSentimentResponse.Builder sentiment(SentimentType sentiment)
The inferred sentiment that Amazon Comprehend has the highest level of confidence in.
- Parameters:
sentiment- The inferred sentiment that Amazon Comprehend has the highest level of confidence in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SentimentType,SentimentType
-
sentimentScore
DetectSentimentResponse.Builder sentimentScore(SentimentScore sentimentScore)
An object that lists the sentiments, and their corresponding confidence levels.
- Parameters:
sentimentScore- An object that lists the sentiments, and their corresponding confidence levels.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sentimentScore
default DetectSentimentResponse.Builder sentimentScore(Consumer<SentimentScore.Builder> sentimentScore)
An object that lists the sentiments, and their corresponding confidence levels.
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)
-
-