public static interface DetectSentimentResponse.Builder extends ComprehendResponse.Builder, SdkPojo, CopyableBuilder<DetectSentimentResponse.Builder,DetectSentimentResponse>
Modifier and Type | Method and Description |
---|---|
DetectSentimentResponse.Builder |
sentiment(SentimentType sentiment)
The inferred sentiment that Amazon Comprehend has the highest level of confidence in.
|
DetectSentimentResponse.Builder |
sentiment(String sentiment)
The inferred sentiment that Amazon Comprehend has the highest level of confidence in.
|
default DetectSentimentResponse.Builder |
sentimentScore(Consumer<SentimentScore.Builder> sentimentScore)
An object that lists the sentiments, and their corresponding confidence levels.
|
DetectSentimentResponse.Builder |
sentimentScore(SentimentScore sentimentScore)
An object that lists the sentiments, and their corresponding confidence levels.
|
build, responseMetadata, responseMetadata
sdkHttpResponse, sdkHttpResponse
copy
applyMutation, build
DetectSentimentResponse.Builder sentiment(String sentiment)
The inferred sentiment that Amazon Comprehend has the highest level of confidence in.
sentiment
- The inferred sentiment that Amazon Comprehend has the highest level of confidence in.SentimentType
,
SentimentType
DetectSentimentResponse.Builder sentiment(SentimentType sentiment)
The inferred sentiment that Amazon Comprehend has the highest level of confidence in.
sentiment
- The inferred sentiment that Amazon Comprehend has the highest level of confidence in.SentimentType
,
SentimentType
DetectSentimentResponse.Builder sentimentScore(SentimentScore sentimentScore)
An object that lists the sentiments, and their corresponding confidence levels.
sentimentScore
- An object that lists the sentiments, and their corresponding confidence levels.default DetectSentimentResponse.Builder sentimentScore(Consumer<SentimentScore.Builder> sentimentScore)
An object that lists the sentiments, and their corresponding confidence levels.
This is a convenience that creates an instance of theSentimentScore.Builder
avoiding the need to
create one manually via SentimentScore.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to sentimentScore(SentimentScore)
.sentimentScore
- a consumer that will call methods on SentimentScore.Builder
sentimentScore(SentimentScore)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.