Interface DetectSentimentResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,ComprehendResponse.Builder,CopyableBuilder<DetectSentimentResponse.Builder,,DetectSentimentResponse> SdkBuilder<DetectSentimentResponse.Builder,,DetectSentimentResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
DetectSentimentResponse
@Mutable
@NotThreadSafe
public static interface DetectSentimentResponse.Builder
extends ComprehendResponse.Builder, SdkPojo, CopyableBuilder<DetectSentimentResponse.Builder,DetectSentimentResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe inferred sentiment that Amazon Comprehend has the highest level of confidence in.sentiment(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.sentimentScore(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, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
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:
-
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:
-
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:
-