Interface BudgetSummary.Builder

  • Method Details

    • budgetId

      BudgetSummary.Builder budgetId(String budgetId)

      The budget ID.

      Parameters:
      budgetId - The budget ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • usageTrackingResource

      BudgetSummary.Builder usageTrackingResource(UsageTrackingResource usageTrackingResource)

      The resource used to track expenditure in the budget.

      Parameters:
      usageTrackingResource - The resource used to track expenditure in the budget.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • usageTrackingResource

      default BudgetSummary.Builder usageTrackingResource(Consumer<UsageTrackingResource.Builder> usageTrackingResource)

      The resource used to track expenditure in the budget.

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

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

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

      BudgetSummary.Builder status(String status)

      The status of the budget.

      • ACTIVE–The budget is being evaluated.

      • INACTIVE–The budget is inactive. This can include Expired, Canceled, or deleted Deleted statuses.

      Parameters:
      status - The status of the budget.

      • ACTIVE–The budget is being evaluated.

      • INACTIVE–The budget is inactive. This can include Expired, Canceled, or deleted Deleted statuses.

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

      The status of the budget.

      • ACTIVE–The budget is being evaluated.

      • INACTIVE–The budget is inactive. This can include Expired, Canceled, or deleted Deleted statuses.

      Parameters:
      status - The status of the budget.

      • ACTIVE–The budget is being evaluated.

      • INACTIVE–The budget is inactive. This can include Expired, Canceled, or deleted Deleted statuses.

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

      BudgetSummary.Builder displayName(String displayName)

      The display name of the budget summary to update.

      This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.

      Parameters:
      displayName - The display name of the budget summary to update.

      This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.

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

      @Deprecated BudgetSummary.Builder description(String description)
      Deprecated.
      ListBudgets no longer supports description. Use GetBudget if description is needed.

      The description of the budget summary.

      This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.

      Parameters:
      description - The description of the budget summary.

      This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.

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

      BudgetSummary.Builder approximateDollarLimit(Float approximateDollarLimit)

      The approximate dollar limit of the budget.

      Parameters:
      approximateDollarLimit - The approximate dollar limit of the budget.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • usages

      The consumed usage for the budget.

      Parameters:
      usages - The consumed usage for the budget.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • usages

      The consumed usage for the budget.

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

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

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

      BudgetSummary.Builder createdBy(String createdBy)

      The user or system that created this resource.

      Parameters:
      createdBy - The user or system that created this resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      BudgetSummary.Builder createdAt(Instant createdAt)

      The date and time the resource was created.

      Parameters:
      createdAt - The date and time the resource was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedBy

      BudgetSummary.Builder updatedBy(String updatedBy)

      The user or system that updated this resource.

      Parameters:
      updatedBy - The user or system that updated this resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      BudgetSummary.Builder updatedAt(Instant updatedAt)

      The date and time the resource was updated.

      Parameters:
      updatedAt - The date and time the resource was updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.