Interface ListMetricsResponse.Builder

  • Method Details

    • metrics

      A list of metrics.

      Parameters:
      metrics - A list of metrics.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metrics

      ListMetricsResponse.Builder metrics(Metric... metrics)

      A list of metrics.

      Parameters:
      metrics - A list of metrics.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metrics

      A list of metrics.

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

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

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

      ListMetricsResponse.Builder nextToken(String nextToken)

      An opaque pagination token. Pass the value returned in a response back on the next request to retrieve the following page; absent when there are no more results.

      Parameters:
      nextToken - An opaque pagination token. Pass the value returned in a response back on the next request to retrieve the following page; absent when there are no more results.
      Returns:
      Returns a reference to this object so that method calls can be chained together.