Interface DetectTargetedSentimentResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,ComprehendResponse.Builder
,CopyableBuilder<DetectTargetedSentimentResponse.Builder,
,DetectTargetedSentimentResponse> SdkBuilder<DetectTargetedSentimentResponse.Builder,
,DetectTargetedSentimentResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
DetectTargetedSentimentResponse
public static interface DetectTargetedSentimentResponse.Builder
extends ComprehendResponse.Builder, SdkPojo, CopyableBuilder<DetectTargetedSentimentResponse.Builder,DetectTargetedSentimentResponse>
-
Method Summary
Modifier and TypeMethodDescriptionentities
(Collection<TargetedSentimentEntity> entities) Targeted sentiment analysis for each of the entities identified in the input text.entities
(Consumer<TargetedSentimentEntity.Builder>... entities) Targeted sentiment analysis for each of the entities identified in the input text.entities
(TargetedSentimentEntity... entities) Targeted sentiment analysis for each of the entities identified in the input text.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 Details
-
entities
Targeted sentiment analysis for each of the entities identified in the input text.
- Parameters:
entities
- Targeted sentiment analysis for each of the entities identified in the input text.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entities
Targeted sentiment analysis for each of the entities identified in the input text.
- Parameters:
entities
- Targeted sentiment analysis for each of the entities identified in the input text.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entities
DetectTargetedSentimentResponse.Builder entities(Consumer<TargetedSentimentEntity.Builder>... entities) Targeted sentiment analysis for each of the entities identified in the input text.
This is a convenience method that creates an instance of theTargetedSentimentEntity.Builder
avoiding the need to create one manually viaTargetedSentimentEntity.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toentities(List<TargetedSentimentEntity>)
.- Parameters:
entities
- a consumer that will call methods onTargetedSentimentEntity.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-