Interface GetUsageTotalsResponse.Builder

  • Method Details

    • timeRange

      GetUsageTotalsResponse.Builder timeRange(String timeRange)

      The inclusive time period that the usage data applies to. Possible values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days.

      Parameters:
      timeRange - The inclusive time period that the usage data applies to. Possible values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • timeRange

      The inclusive time period that the usage data applies to. Possible values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days.

      Parameters:
      timeRange - The inclusive time period that the usage data applies to. Possible values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • usageTotals

      An array of objects that contains the results of the query. Each object contains the data for a specific usage metric.

      Parameters:
      usageTotals - An array of objects that contains the results of the query. Each object contains the data for a specific usage metric.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • usageTotals

      GetUsageTotalsResponse.Builder usageTotals(UsageTotal... usageTotals)

      An array of objects that contains the results of the query. Each object contains the data for a specific usage metric.

      Parameters:
      usageTotals - An array of objects that contains the results of the query. Each object contains the data for a specific usage metric.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • usageTotals

      An array of objects that contains the results of the query. Each object contains the data for a specific usage metric.

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

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

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