Interface SavingsPlansCoverageQuery.Builder

  • Method Details

    • timeRange

      Sets the value of the TimeRange property for this object.
      Parameters:
      timeRange - The new value for the TimeRange property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • timeRange

      Sets the value of the TimeRange property for this object. This is a convenience method that creates an instance of the DateTimeRange.Builder avoiding the need to create one manually via DateTimeRange.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to timeRange(DateTimeRange).

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

      SavingsPlansCoverageQuery.Builder metricsWithStrings(Collection<String> metrics)

      The coverage metrics to include in the results.

      Valid value for SavingsPlansCoverageQuery metrics is SpendCoveredBySavingsPlans.

      Parameters:
      metrics - The coverage metrics to include in the results.

      Valid value for SavingsPlansCoverageQuery metrics is SpendCoveredBySavingsPlans.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricsWithStrings

      SavingsPlansCoverageQuery.Builder metricsWithStrings(String... metrics)

      The coverage metrics to include in the results.

      Valid value for SavingsPlansCoverageQuery metrics is SpendCoveredBySavingsPlans.

      Parameters:
      metrics - The coverage metrics to include in the results.

      Valid value for SavingsPlansCoverageQuery metrics is SpendCoveredBySavingsPlans.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metrics

      The coverage metrics to include in the results.

      Valid value for SavingsPlansCoverageQuery metrics is SpendCoveredBySavingsPlans.

      Parameters:
      metrics - The coverage metrics to include in the results.

      Valid value for SavingsPlansCoverageQuery metrics is SpendCoveredBySavingsPlans.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metrics

      The coverage metrics to include in the results.

      Valid value for SavingsPlansCoverageQuery metrics is SpendCoveredBySavingsPlans.

      Parameters:
      metrics - The coverage metrics to include in the results.

      Valid value for SavingsPlansCoverageQuery metrics is SpendCoveredBySavingsPlans.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • granularity

      SavingsPlansCoverageQuery.Builder granularity(String granularity)

      The time granularity of the retrieved data: HOURLY, DAILY, or MONTHLY.

      Parameters:
      granularity - The time granularity of the retrieved data: HOURLY, DAILY, or MONTHLY.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • granularity

      The time granularity of the retrieved data: HOURLY, DAILY, or MONTHLY.

      Parameters:
      granularity - The time granularity of the retrieved data: HOURLY, DAILY, or MONTHLY.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • groupBy

      Specifies how to group the Savings Plans coverage data, such as by service or instance family.

      Parameters:
      groupBy - Specifies how to group the Savings Plans coverage data, such as by service or instance family.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • groupBy

      Specifies how to group the Savings Plans coverage data, such as by service or instance family.

      Parameters:
      groupBy - Specifies how to group the Savings Plans coverage data, such as by service or instance family.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • groupBy

      Specifies how to group the Savings Plans coverage data, such as by service or instance family.

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

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

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

      Sets the value of the Filter property for this object.
      Parameters:
      filter - The new value for the Filter property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • filter

      Sets the value of the Filter property for this object. This is a convenience method that creates an instance of the Expression.Builder avoiding the need to create one manually via Expression.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to filter(Expression).

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