Interface ContactMetricResult.Builder

  • Method Details

    • name

      The name of the metric that was retrieved. This corresponds to the metric name specified in the request, such as POSITION_IN_QUEUE or ESTIMATED_WAIT_TIME.

      Parameters:
      name - The name of the metric that was retrieved. This corresponds to the metric name specified in the request, such as POSITION_IN_QUEUE or ESTIMATED_WAIT_TIME.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • name

      The name of the metric that was retrieved. This corresponds to the metric name specified in the request, such as POSITION_IN_QUEUE or ESTIMATED_WAIT_TIME.

      Parameters:
      name - The name of the metric that was retrieved. This corresponds to the metric name specified in the request, such as POSITION_IN_QUEUE or ESTIMATED_WAIT_TIME.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • value

      The calculated value for the requested metric. This object contains the numeric result based on the contact's current state in the queue.

      Parameters:
      value - The calculated value for the requested metric. This object contains the numeric result based on the contact's current state in the queue.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • value

      The calculated value for the requested metric. This object contains the numeric result based on the contact's current state in the queue.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to value(ContactMetricValue).

      Parameters:
      value - a consumer that will call methods on ContactMetricValue.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: