Interface SummaryMetricQuery.Builder

  • Method Details

    • queryId

      The id of the summary metric query.

      Parameters:
      queryId - The id of the summary metric query.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricName

      SummaryMetricQuery.Builder metricName(String metricName)

      The name of the metric.

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

      SummaryMetricQuery.Builder metricName(MetricName metricName)

      The name of the metric.

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

      The dimensions of the summary metric.

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

      SummaryMetricQuery.Builder dimensions(Dimension... dimensions)

      The dimensions of the summary metric.

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

      The dimensions of the summary metric.

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

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

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

      SummaryMetricQuery.Builder aggregationPeriod(String aggregationPeriod)

      The aggregation period of the summary metric.

      Parameters:
      aggregationPeriod - The aggregation period of the summary metric.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • aggregationPeriod

      SummaryMetricQuery.Builder aggregationPeriod(AggregationPeriod aggregationPeriod)

      The aggregation period of the summary metric.

      Parameters:
      aggregationPeriod - The aggregation period of the summary metric.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • startTimestamp

      SummaryMetricQuery.Builder startTimestamp(Instant startTimestamp)

      The start timestamp for the summary metric query.

      Parameters:
      startTimestamp - The start timestamp for the summary metric query.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • endTimestamp

      SummaryMetricQuery.Builder endTimestamp(Instant endTimestamp)

      The end timestamp for the summary metric query.

      Parameters:
      endTimestamp - The end timestamp for the summary metric query.
      Returns:
      Returns a reference to this object so that method calls can be chained together.