Interface GetCostAndUsageComparisonsResponse.Builder

  • Method Details

    • costAndUsageComparisons

      GetCostAndUsageComparisonsResponse.Builder costAndUsageComparisons(Collection<CostAndUsageComparison> costAndUsageComparisons)

      An array of comparison results showing cost and usage metrics between BaselineTimePeriod and ComparisonTimePeriod.

      Parameters:
      costAndUsageComparisons - An array of comparison results showing cost and usage metrics between BaselineTimePeriod and ComparisonTimePeriod.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • costAndUsageComparisons

      GetCostAndUsageComparisonsResponse.Builder costAndUsageComparisons(CostAndUsageComparison... costAndUsageComparisons)

      An array of comparison results showing cost and usage metrics between BaselineTimePeriod and ComparisonTimePeriod.

      Parameters:
      costAndUsageComparisons - An array of comparison results showing cost and usage metrics between BaselineTimePeriod and ComparisonTimePeriod.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • costAndUsageComparisons

      GetCostAndUsageComparisonsResponse.Builder costAndUsageComparisons(Consumer<CostAndUsageComparison.Builder>... costAndUsageComparisons)

      An array of comparison results showing cost and usage metrics between BaselineTimePeriod and ComparisonTimePeriod.

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

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

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

      A summary of the total cost and usage, comparing amounts between BaselineTimePeriod and ComparisonTimePeriod and their differences. This total represents the aggregate total across all paginated results, if the response spans multiple pages.

      Parameters:
      totalCostAndUsage - A summary of the total cost and usage, comparing amounts between BaselineTimePeriod and ComparisonTimePeriod and their differences. This total represents the aggregate total across all paginated results, if the response spans multiple pages.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • nextPageToken

      GetCostAndUsageComparisonsResponse.Builder nextPageToken(String nextPageToken)

      The token to retrieve the next set of paginated results.

      Parameters:
      nextPageToken - The token to retrieve the next set of paginated results.
      Returns:
      Returns a reference to this object so that method calls can be chained together.