Interface GetMetricUsageResponse.Builder

  • Method Details

    • usage

      One entry per metric in this page, carrying its usage over the window. A metric with no events in the window is returned with usage = 0.

      Parameters:
      usage - One entry per metric in this page, carrying its usage over the window. A metric with no events in the window is returned with usage = 0.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • usage

      One entry per metric in this page, carrying its usage over the window. A metric with no events in the window is returned with usage = 0.

      Parameters:
      usage - One entry per metric in this page, carrying its usage over the window. A metric with no events in the window is returned with usage = 0.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • usage

      One entry per metric in this page, carrying its usage over the window. A metric with no events in the window is returned with usage = 0.

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

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

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

      GetMetricUsageResponse.Builder nextToken(String nextToken)

      Opaque continuation token. Present when more metrics remain; pass it back (with the same window) to read the next page. Absent on the last page.

      Parameters:
      nextToken - Opaque continuation token. Present when more metrics remain; pass it back (with the same window) to read the next page. Absent on the last page.
      Returns:
      Returns a reference to this object so that method calls can be chained together.