Interface MetricV2.Builder

All Superinterfaces:
Buildable, CopyableBuilder<MetricV2.Builder,MetricV2>, SdkBuilder<MetricV2.Builder,MetricV2>, SdkPojo
Enclosing class:
MetricV2

@Mutable @NotThreadSafe public static interface MetricV2.Builder extends SdkPojo, CopyableBuilder<MetricV2.Builder,MetricV2>
  • Method Details

    • name

      The name of the metric.

      Parameters:
      name - The name of the metric.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • threshold

      MetricV2.Builder threshold(Collection<ThresholdV2> threshold)

      Contains information about the threshold for service level metrics.

      Parameters:
      threshold - Contains information about the threshold for service level metrics.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • threshold

      MetricV2.Builder threshold(ThresholdV2... threshold)

      Contains information about the threshold for service level metrics.

      Parameters:
      threshold - Contains information about the threshold for service level metrics.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • threshold

      MetricV2.Builder threshold(Consumer<ThresholdV2.Builder>... threshold)

      Contains information about the threshold for service level metrics.

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

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

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

      MetricV2.Builder metricId(String metricId)

      Historical metrics or custom metrics can be referenced via this field. This field is a valid Amazon Connect Arn or a UUID

      Parameters:
      metricId - Historical metrics or custom metrics can be referenced via this field. This field is a valid Amazon Connect Arn or a UUID
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricFilters

      MetricV2.Builder metricFilters(Collection<MetricFilterV2> metricFilters)

      Contains the filters to be used when returning data.

      Parameters:
      metricFilters - Contains the filters to be used when returning data.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricFilters

      MetricV2.Builder metricFilters(MetricFilterV2... metricFilters)

      Contains the filters to be used when returning data.

      Parameters:
      metricFilters - Contains the filters to be used when returning data.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricFilters

      MetricV2.Builder metricFilters(Consumer<MetricFilterV2.Builder>... metricFilters)

      Contains the filters to be used when returning data.

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

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

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