Interface SpendSummary.Builder

  • Method Details

    • principalsWithSpend

      SpendSummary.Builder principalsWithSpend(Integer principalsWithSpend)

      The number of principals that have spend in the current period. Amazon Web Services Budgets doesn't return this field for a budget without BudgetLimitDimensions.

      Parameters:
      principalsWithSpend - The number of principals that have spend in the current period. Amazon Web Services Budgets doesn't return this field for a budget without BudgetLimitDimensions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • limitsReached

      SpendSummary.Builder limitsReached(Integer limitsReached)

      The number of budget limits that have been reached in the current period. Amazon Web Services Budgets doesn't return this field for a budget that has no BudgetLimitDimensions.

      Parameters:
      limitsReached - The number of budget limits that have been reached in the current period. Amazon Web Services Budgets doesn't return this field for a budget that has no BudgetLimitDimensions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • totalSpend

      SpendSummary.Builder totalSpend(Spend totalSpend)

      The total spend of the budget in the current period.

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

      default SpendSummary.Builder totalSpend(Consumer<Spend.Builder> totalSpend)

      The total spend of the budget 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 totalSpend(Spend).

      Parameters:
      totalSpend - 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:
    • lastUpdatedTime

      SpendSummary.Builder lastUpdatedTime(Instant lastUpdatedTime)

      The time when Amazon Web Services Budgets last updated the spend for the current period.

      Parameters:
      lastUpdatedTime - The time when Amazon Web Services Budgets last updated the spend for the current period.
      Returns:
      Returns a reference to this object so that method calls can be chained together.