Interface GetCurrentMetricDataResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,ConnectResponse.Builder,CopyableBuilder<GetCurrentMetricDataResponse.Builder,GetCurrentMetricDataResponse>,SdkBuilder<GetCurrentMetricDataResponse.Builder,GetCurrentMetricDataResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetCurrentMetricDataResponse
public static interface GetCurrentMetricDataResponse.Builder extends ConnectResponse.Builder, SdkPojo, CopyableBuilder<GetCurrentMetricDataResponse.Builder,GetCurrentMetricDataResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GetCurrentMetricDataResponse.BuilderapproximateTotalCount(Long approximateTotalCount)The total count of the result, regardless of the current page size.GetCurrentMetricDataResponse.BuilderdataSnapshotTime(Instant dataSnapshotTime)The time at which the metrics were retrieved and cached for pagination.GetCurrentMetricDataResponse.BuildermetricResults(Collection<CurrentMetricResult> metricResults)Information about the real-time metrics.GetCurrentMetricDataResponse.BuildermetricResults(Consumer<CurrentMetricResult.Builder>... metricResults)Information about the real-time metrics.GetCurrentMetricDataResponse.BuildermetricResults(CurrentMetricResult... metricResults)Information about the real-time metrics.GetCurrentMetricDataResponse.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
GetCurrentMetricDataResponse.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
GetCurrentMetricDataResponse.Builder metricResults(Collection<CurrentMetricResult> metricResults)
Information about the real-time metrics.
- Parameters:
metricResults- Information about the real-time metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricResults
GetCurrentMetricDataResponse.Builder metricResults(CurrentMetricResult... metricResults)
Information about the real-time metrics.
- Parameters:
metricResults- Information about the real-time metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricResults
GetCurrentMetricDataResponse.Builder metricResults(Consumer<CurrentMetricResult.Builder>... metricResults)
Information about the real-time metrics.
This is a convenience method that creates an instance of theCurrentMetricResult.Builderavoiding the need to create one manually viaCurrentMetricResult.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 onCurrentMetricResult.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#metricResults(java.util.Collection)
-
dataSnapshotTime
GetCurrentMetricDataResponse.Builder dataSnapshotTime(Instant dataSnapshotTime)
The time at which the metrics were retrieved and cached for pagination.
- Parameters:
dataSnapshotTime- The time at which the metrics were retrieved and cached for pagination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
approximateTotalCount
GetCurrentMetricDataResponse.Builder approximateTotalCount(Long approximateTotalCount)
The total count of the result, regardless of the current page size.
- Parameters:
approximateTotalCount- The total count of the result, regardless of the current page size.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-