Interface GetMetricDataResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,ConnectResponse.Builder,CopyableBuilder<GetMetricDataResponse.Builder,GetMetricDataResponse>,SdkBuilder<GetMetricDataResponse.Builder,GetMetricDataResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetMetricDataResponse
public static interface GetMetricDataResponse.Builder extends ConnectResponse.Builder, SdkPojo, CopyableBuilder<GetMetricDataResponse.Builder,GetMetricDataResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GetMetricDataResponse.BuildermetricResults(Collection<HistoricalMetricResult> metricResults)Information about the historical metrics.GetMetricDataResponse.BuildermetricResults(Consumer<HistoricalMetricResult.Builder>... metricResults)Information about the historical metrics.GetMetricDataResponse.BuildermetricResults(HistoricalMetricResult... metricResults)Information about the historical metrics.GetMetricDataResponse.BuildernextToken(String nextToken)If there are additional results, this is the token for the next set of results.-
Methods inherited from interface software.amazon.awssdk.services.connect.model.ConnectResponse.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 Detail
-
nextToken
GetMetricDataResponse.Builder nextToken(String nextToken)
If there are additional results, this is the token for the next set of results.
The token expires after 5 minutes from the time it is created. Subsequent requests that use the token must use the same request parameters as the request that generated the token.
- Parameters:
nextToken- If there are additional results, this is the token for the next set of results.The token expires after 5 minutes from the time it is created. Subsequent requests that use the token must use the same request parameters as the request that generated the token.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricResults
GetMetricDataResponse.Builder metricResults(Collection<HistoricalMetricResult> metricResults)
Information about the historical metrics.
If no grouping is specified, a summary of metric data is returned.
- Parameters:
metricResults- Information about the historical metrics.If no grouping is specified, a summary of metric data is returned.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricResults
GetMetricDataResponse.Builder metricResults(HistoricalMetricResult... metricResults)
Information about the historical metrics.
If no grouping is specified, a summary of metric data is returned.
- Parameters:
metricResults- Information about the historical metrics.If no grouping is specified, a summary of metric data is returned.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricResults
GetMetricDataResponse.Builder metricResults(Consumer<HistoricalMetricResult.Builder>... metricResults)
Information about the historical metrics.
If no grouping is specified, a summary of metric data is returned.
This is a convenience method that creates an instance of theHistoricalMetricResult.Builderavoiding the need to create one manually viaHistoricalMetricResult.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#metricResults(List.) - Parameters:
metricResults- a consumer that will call methods onHistoricalMetricResult.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#metricResults(java.util.Collection)
-
-