Interface GetUsageTotalsResponse.Builder

    • Method Detail

      • 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, TimeRange
      • timeRange

        GetUsageTotalsResponse.Builder timeRange​(TimeRange 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, TimeRange
      • usageTotals

        GetUsageTotalsResponse.Builder usageTotals​(Collection<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

        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

        GetUsageTotalsResponse.Builder usageTotals​(Consumer<UsageTotal.Builder>... 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).

        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:
        #usageTotals(java.util.Collection)