Interface PerBudgetSpendItem.Builder

  • Method Details

    • budgetName

      PerBudgetSpendItem.Builder budgetName(String budgetName)

      The name of the budget.

      Parameters:
      budgetName - The name of the budget.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • budgetLimit

      PerBudgetSpendItem.Builder budgetLimit(Spend budgetLimit)

      The budget limit that applies to the principal.

      Parameters:
      budgetLimit - The budget limit that applies to the principal.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • budgetLimit

      default PerBudgetSpendItem.Builder budgetLimit(Consumer<Spend.Builder> budgetLimit)

      The budget limit that applies to the principal.

      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 budgetLimit(Spend).

      Parameters:
      budgetLimit - 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:
    • timePeriod

      PerBudgetSpendItem.Builder timePeriod(TimePeriod timePeriod)

      The current period of the budget.

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

      default PerBudgetSpendItem.Builder timePeriod(Consumer<TimePeriod.Builder> timePeriod)

      The current period of the budget.

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

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

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

      The principal's spend in the budget for the current period.

      Parameters:
      spend - The principal's spend in the budget for the current period.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • spend

      The principal's spend in the budget for 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

      PerBudgetSpendItem.Builder limitStatus(String limitStatus)

      Specifies whether the principal's spend has reached the budget limit.

      Parameters:
      limitStatus - Specifies whether the principal's spend has reached the budget limit.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • limitStatus

      PerBudgetSpendItem.Builder limitStatus(LimitStatus limitStatus)

      Specifies whether the principal's spend has reached the budget limit.

      Parameters:
      limitStatus - Specifies whether the principal's spend has reached the budget limit.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • lastUsageTime

      PerBudgetSpendItem.Builder lastUsageTime(Instant lastUsageTime)

      The time of the principal's most recent usage that counts toward the budget.

      Parameters:
      lastUsageTime - The time of the principal's most recent usage that counts toward the budget.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • budgetLimitDimensions

      PerBudgetSpendItem.Builder budgetLimitDimensions(Collection<BudgetLimitDimension> budgetLimitDimensions)

      The dimension that the budget limit applies to.

      Parameters:
      budgetLimitDimensions - The dimension that the budget limit applies to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • budgetLimitDimensions

      PerBudgetSpendItem.Builder budgetLimitDimensions(BudgetLimitDimension... budgetLimitDimensions)

      The dimension that the budget limit applies to.

      Parameters:
      budgetLimitDimensions - The dimension that the budget limit applies to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • budgetLimitDimensions

      PerBudgetSpendItem.Builder budgetLimitDimensions(Consumer<BudgetLimitDimension.Builder>... budgetLimitDimensions)

      The dimension that the budget limit applies to.

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

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

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

      PerBudgetSpendItem.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.
    • keys

      The values of the budget's BudgetLimitDimensions, in the same order. For a budget with a limit for each principal, this is the ID of the principal. For a budget with one limit for all principals, the list is empty.

      Parameters:
      keys - The values of the budget's BudgetLimitDimensions, in the same order. For a budget with a limit for each principal, this is the ID of the principal. For a budget with one limit for all principals, the list is empty.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • keys

      The values of the budget's BudgetLimitDimensions, in the same order. For a budget with a limit for each principal, this is the ID of the principal. For a budget with one limit for all principals, the list is empty.

      Parameters:
      keys - The values of the budget's BudgetLimitDimensions, in the same order. For a budget with a limit for each principal, this is the ID of the principal. For a budget with one limit for all principals, the list is empty.
      Returns:
      Returns a reference to this object so that method calls can be chained together.