Interface SearchMetricsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,ConnectResponse.Builder,CopyableBuilder<SearchMetricsResponse.Builder,,SearchMetricsResponse> SdkBuilder<SearchMetricsResponse.Builder,,SearchMetricsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
SearchMetricsResponse
@Mutable
@NotThreadSafe
public static interface SearchMetricsResponse.Builder
extends ConnectResponse.Builder, SdkPojo, CopyableBuilder<SearchMetricsResponse.Builder,SearchMetricsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionapproximateTotalCount(Long approximateTotalCount) The approximate total number of metrics that matched your search criteria.metrics(Collection<MetricDefinition> metrics) The metrics that matched the search criteria.metrics(Consumer<MetricDefinition.Builder>... metrics) The metrics that matched the search criteria.metrics(MetricDefinition... metrics) The metrics that matched the search criteria.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, 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, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
metrics
The metrics that matched the search criteria.
- Parameters:
metrics- The metrics that matched the search criteria.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metrics
The metrics that matched the search criteria.
- Parameters:
metrics- The metrics that matched the search criteria.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metrics
The metrics that matched the search criteria.
This is a convenience method that creates an instance of theMetricDefinition.Builderavoiding the need to create one manually viaMetricDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometrics(List<MetricDefinition>).- Parameters:
metrics- a consumer that will call methods onMetricDefinition.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.
- Parameters:
nextToken- If there are additional results, this is the token for the next set of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
approximateTotalCount
The approximate total number of metrics that matched your search criteria.
- Parameters:
approximateTotalCount- The approximate total number of metrics that matched your search criteria.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-