Interface GetContactMetricsResponse.Builder

  • 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

      GetContactMetricsResponse.Builder metricResults(ContactMetricResult... 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.

      This is a convenience method that creates an instance of the ContactMetricResult.Builder avoiding the need to create one manually via ContactMetricResult.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to metricResults(List<ContactMetricResult>).

      Parameters:
      metricResults - a consumer that will call methods on ContactMetricResult.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.