Interface GetContactMetricsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,ConnectResponse.Builder
,CopyableBuilder<GetContactMetricsResponse.Builder,
,GetContactMetricsResponse> SdkBuilder<GetContactMetricsResponse.Builder,
,GetContactMetricsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetContactMetricsResponse
-
Method Summary
Modifier and TypeMethodDescriptionThe ARN of the contact for which metrics were retrieved.The unique identifier of the contact for which metrics were retrieved.metricResults
(Collection<ContactMetricResult> metricResults) A list of metric results containing the calculated values for each requested metric.metricResults
(Consumer<ContactMetricResult.Builder>... metricResults) A list of metric results containing the calculated values for each requested metric.metricResults
(ContactMetricResult... metricResults) A list of metric results containing the calculated values for each requested metric.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, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
metricResults
A list of metric results containing the calculated values for each requested metric. Each result includes the metric name and its corresponding calculated value.
- Parameters:
metricResults
- A list of metric results containing the calculated values for each requested metric. Each result includes the metric name and its corresponding calculated value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricResults
A list of metric results containing the calculated values for each requested metric. Each result includes the metric name and its corresponding calculated value.
- Parameters:
metricResults
- A list of metric results containing the calculated values for each requested metric. Each result includes the metric name and its corresponding calculated value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricResults
GetContactMetricsResponse.Builder metricResults(Consumer<ContactMetricResult.Builder>... metricResults) A list of metric results containing the calculated values for each requested metric. Each result includes the metric name and its corresponding calculated value.
This is a convenience method that creates an instance of theContactMetricResult.Builder
avoiding the need to create one manually viaContactMetricResult.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometricResults(List<ContactMetricResult>)
.- Parameters:
metricResults
- a consumer that will call methods onContactMetricResult.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
id
The unique identifier of the contact for which metrics were retrieved.
- Parameters:
id
- The unique identifier of the contact for which metrics were retrieved.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
The ARN of the contact for which metrics were retrieved.
- Parameters:
arn
- The ARN of the contact for which metrics were retrieved.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-