Interface ListRealtimeContactAnalysisSegmentsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,ConnectContactLensResponse.Builder,CopyableBuilder<ListRealtimeContactAnalysisSegmentsResponse.Builder,,ListRealtimeContactAnalysisSegmentsResponse> SdkBuilder<ListRealtimeContactAnalysisSegmentsResponse.Builder,,ListRealtimeContactAnalysisSegmentsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListRealtimeContactAnalysisSegmentsResponse
-
Method Summary
Modifier and TypeMethodDescriptionIf there are additional results, this is the token for the next set of results.segments(Collection<RealtimeContactAnalysisSegment> segments) An analyzed transcript or category.segments(Consumer<RealtimeContactAnalysisSegment.Builder>... segments) An analyzed transcript or category.segments(RealtimeContactAnalysisSegment... segments) An analyzed transcript or category.Methods inherited from interface software.amazon.awssdk.services.connectcontactlens.model.ConnectContactLensResponse.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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
segments
ListRealtimeContactAnalysisSegmentsResponse.Builder segments(Collection<RealtimeContactAnalysisSegment> segments) An analyzed transcript or category.
- Parameters:
segments- An analyzed transcript or category.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
segments
ListRealtimeContactAnalysisSegmentsResponse.Builder segments(RealtimeContactAnalysisSegment... segments) An analyzed transcript or category.
- Parameters:
segments- An analyzed transcript or category.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
segments
ListRealtimeContactAnalysisSegmentsResponse.Builder segments(Consumer<RealtimeContactAnalysisSegment.Builder>... segments) An analyzed transcript or category.
This is a convenience method that creates an instance of theRealtimeContactAnalysisSegment.Builderavoiding the need to create one manually viaRealtimeContactAnalysisSegment.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosegments(List<RealtimeContactAnalysisSegment>).- Parameters:
segments- a consumer that will call methods onRealtimeContactAnalysisSegment.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
If there are additional results, this is the token for the next set of results. If response includes
nextTokenthere are two possible scenarios:-
There are more segments so another call is required to get them.
-
There are no more segments at this time, but more may be available later (real-time analysis is in progress) so the client should call the operation again to get new segments.
If response does not include
nextToken, the analysis is completed (successfully or failed) and there are no more segments to retrieve.- Parameters:
nextToken- If there are additional results, this is the token for the next set of results. If response includesnextTokenthere are two possible scenarios:-
There are more segments so another call is required to get them.
-
There are no more segments at this time, but more may be available later (real-time analysis is in progress) so the client should call the operation again to get new segments.
If response does not include
nextToken, the analysis is completed (successfully or failed) and there are no more segments to retrieve.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-