Interface ListSessionMetricsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListSessionMetricsResponse.Builder,ListSessionMetricsResponse>,LexModelsV2Response.Builder,SdkBuilder<ListSessionMetricsResponse.Builder,ListSessionMetricsResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- ListSessionMetricsResponse
public static interface ListSessionMetricsResponse.Builder extends LexModelsV2Response.Builder, SdkPojo, CopyableBuilder<ListSessionMetricsResponse.Builder,ListSessionMetricsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListSessionMetricsResponse.BuilderbotId(String botId)The identifier for the bot for which you retrieved session metrics.ListSessionMetricsResponse.BuildernextToken(String nextToken)If the response from the ListSessionMetrics operation contains more results than specified in the maxResults parameter, a token is returned in the response.ListSessionMetricsResponse.Builderresults(Collection<AnalyticsSessionResult> results)The results for the session metrics.ListSessionMetricsResponse.Builderresults(Consumer<AnalyticsSessionResult.Builder>... results)The results for the session metrics.ListSessionMetricsResponse.Builderresults(AnalyticsSessionResult... results)The results for the session metrics.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.lexmodelsv2.model.LexModelsV2Response.Builder
build, responseMetadata, responseMetadata
-
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
-
botId
ListSessionMetricsResponse.Builder botId(String botId)
The identifier for the bot for which you retrieved session metrics.
- Parameters:
botId- The identifier for the bot for which you retrieved session metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
results
ListSessionMetricsResponse.Builder results(Collection<AnalyticsSessionResult> results)
The results for the session metrics.
- Parameters:
results- The results for the session metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
results
ListSessionMetricsResponse.Builder results(AnalyticsSessionResult... results)
The results for the session metrics.
- Parameters:
results- The results for the session metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
results
ListSessionMetricsResponse.Builder results(Consumer<AnalyticsSessionResult.Builder>... results)
The results for the session metrics.
This is a convenience method that creates an instance of theAnalyticsSessionResult.Builderavoiding the need to create one manually viaAnalyticsSessionResult.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#results(List.) - Parameters:
results- a consumer that will call methods onAnalyticsSessionResult.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#results(java.util.Collection)
-
nextToken
ListSessionMetricsResponse.Builder nextToken(String nextToken)
If the response from the ListSessionMetrics operation contains more results than specified in the maxResults parameter, a token is returned in the response.
Use the returned token in the nextToken parameter of a ListSessionMetrics request to return the next page of results. For a complete set of results, call the ListSessionMetrics operation until the nextToken returned in the response is null.
- Parameters:
nextToken- If the response from the ListSessionMetrics operation contains more results than specified in the maxResults parameter, a token is returned in the response.Use the returned token in the nextToken parameter of a ListSessionMetrics request to return the next page of results. For a complete set of results, call the ListSessionMetrics operation until the nextToken returned in the response is null.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-