Interface CalculationComponent.Builder

  • Method Details

    • alias

      The alias used to reference this component in the calculation expression.

      Parameters:
      alias - The alias used to reference this component in the calculation expression.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricName

      CalculationComponent.Builder metricName(String metricName)

      The name of an AWS-managed metric used in this calculation component (for example, CONTACTS_HANDLED). Mutually exclusive with MetricId.

      Parameters:
      metricName - The name of an AWS-managed metric used in this calculation component (for example, CONTACTS_HANDLED). Mutually exclusive with MetricId.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricId

      The ARN of an AWS-managed metric used in this calculation component. Mutually exclusive with MetricName.

      Parameters:
      metricId - The ARN of an AWS-managed metric used in this calculation component. Mutually exclusive with MetricName.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricFilters

      CalculationComponent.Builder metricFilters(Collection<MetricFilter> metricFilters)

      The filters applied to the calculation component.

      Parameters:
      metricFilters - The filters applied to the calculation component.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricFilters

      CalculationComponent.Builder metricFilters(MetricFilter... metricFilters)

      The filters applied to the calculation component.

      Parameters:
      metricFilters - The filters applied to the calculation component.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricFilters

      The filters applied to the calculation component.

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

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

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