Interface SpendGroup.Builder

  • Method Details

    • keys

      The values that identify the row, one for each entry in GroupDefinitions, in the same order. When you group by the budget's SpendAttributions key, the value is the ID of the principal. The list is empty for the total spend of a budget without BudgetLimitDimensions.

      Parameters:
      keys - The values that identify the row, one for each entry in GroupDefinitions, in the same order. When you group by the budget's SpendAttributions key, the value is the ID of the principal. The list is empty for the total spend of a budget without BudgetLimitDimensions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • keys

      SpendGroup.Builder keys(String... keys)

      The values that identify the row, one for each entry in GroupDefinitions, in the same order. When you group by the budget's SpendAttributions key, the value is the ID of the principal. The list is empty for the total spend of a budget without BudgetLimitDimensions.

      Parameters:
      keys - The values that identify the row, one for each entry in GroupDefinitions, in the same order. When you group by the budget's SpendAttributions key, the value is the ID of the principal. The list is empty for the total spend of a budget without BudgetLimitDimensions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • spend

      SpendGroup.Builder spend(Spend spend)

      The spend of the row in the current period.

      Parameters:
      spend - The spend of the row in the current period.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • spend

      default SpendGroup.Builder spend(Consumer<Spend.Builder> spend)

      The spend of the row in the current period.

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

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

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

      SpendGroup.Builder limitStatus(String limitStatus)

      Specifies whether the spend has reached the budget limit that the row counts toward. That limit is the principal's own limit, or the limit of the whole budget.

      Parameters:
      limitStatus - Specifies whether the spend has reached the budget limit that the row counts toward. That limit is the principal's own limit, or the limit of the whole budget.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • limitStatus

      SpendGroup.Builder limitStatus(LimitStatus limitStatus)

      Specifies whether the spend has reached the budget limit that the row counts toward. That limit is the principal's own limit, or the limit of the whole budget.

      Parameters:
      limitStatus - Specifies whether the spend has reached the budget limit that the row counts toward. That limit is the principal's own limit, or the limit of the whole budget.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • lastUsageTime

      SpendGroup.Builder lastUsageTime(Instant lastUsageTime)

      The time of the most recent usage that counts toward the row. Amazon Web Services Budgets doesn't return this field when the budget has no BudgetLimitDimensions or when the budget has no usage in the current period yet.

      Parameters:
      lastUsageTime - The time of the most recent usage that counts toward the row. Amazon Web Services Budgets doesn't return this field when the budget has no BudgetLimitDimensions or when the budget has no usage in the current period yet.
      Returns:
      Returns a reference to this object so that method calls can be chained together.