Interface GetSavingsPlansUtilizationRequest.Builder

  • Method Details

    • timePeriod

      The time period that you want the usage and costs for. The Start date must be within 13 months. The End date must be after the Start date, and before the current date. Future dates can't be used as an End date.

      Parameters:
      timePeriod - The time period that you want the usage and costs for. The Start date must be within 13 months. The End date must be after the Start date, and before the current date. Future dates can't be used as an End date.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • timePeriod

      The time period that you want the usage and costs for. The Start date must be within 13 months. The End date must be after the Start date, and before the current date. Future dates can't be used as an End date.

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

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

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

      The granularity of the Amazon Web Services utillization data for your Savings Plans.

      The GetSavingsPlansUtilization operation supports only DAILY and MONTHLY granularities.

      Parameters:
      granularity - The granularity of the Amazon Web Services utillization data for your Savings Plans.

      The GetSavingsPlansUtilization operation supports only DAILY and MONTHLY granularities.

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

      The granularity of the Amazon Web Services utillization data for your Savings Plans.

      The GetSavingsPlansUtilization operation supports only DAILY and MONTHLY granularities.

      Parameters:
      granularity - The granularity of the Amazon Web Services utillization data for your Savings Plans.

      The GetSavingsPlansUtilization operation supports only DAILY and MONTHLY granularities.

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

      Filters Savings Plans utilization coverage data for active Savings Plans dimensions. You can filter data with the following dimensions:

      • LINKED_ACCOUNT

      • SAVINGS_PLAN_ARN

      • SAVINGS_PLANS_TYPE

      • REGION

      • PAYMENT_OPTION

      • INSTANCE_TYPE_FAMILY

      GetSavingsPlansUtilization uses the same Expression object as the other operations, but only AND is supported among each dimension.

      Parameters:
      filter - Filters Savings Plans utilization coverage data for active Savings Plans dimensions. You can filter data with the following dimensions:

      • LINKED_ACCOUNT

      • SAVINGS_PLAN_ARN

      • SAVINGS_PLANS_TYPE

      • REGION

      • PAYMENT_OPTION

      • INSTANCE_TYPE_FAMILY

      GetSavingsPlansUtilization uses the same Expression object as the other operations, but only AND is supported among each dimension.

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

      Filters Savings Plans utilization coverage data for active Savings Plans dimensions. You can filter data with the following dimensions:

      • LINKED_ACCOUNT

      • SAVINGS_PLAN_ARN

      • SAVINGS_PLANS_TYPE

      • REGION

      • PAYMENT_OPTION

      • INSTANCE_TYPE_FAMILY

      GetSavingsPlansUtilization uses the same Expression object as the other operations, but only AND is supported among each dimension.

      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:
    • sortBy

      The value that you want to sort the data by.

      The following values are supported for Key:

      • UtilizationPercentage

      • TotalCommitment

      • UsedCommitment

      • UnusedCommitment

      • NetSavings

      The supported values for SortOrder are ASCENDING and DESCENDING.

      Parameters:
      sortBy - The value that you want to sort the data by.

      The following values are supported for Key:

      • UtilizationPercentage

      • TotalCommitment

      • UsedCommitment

      • UnusedCommitment

      • NetSavings

      The supported values for SortOrder are ASCENDING and DESCENDING.

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

      The value that you want to sort the data by.

      The following values are supported for Key:

      • UtilizationPercentage

      • TotalCommitment

      • UsedCommitment

      • UnusedCommitment

      • NetSavings

      The supported values for SortOrder are ASCENDING and DESCENDING.

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

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

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

      GetSavingsPlansUtilizationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.