Interface GetBudgetResponse.Builder

  • Method Details

    • budgetId

      GetBudgetResponse.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

      GetBudgetResponse.Builder usageTrackingResource(UsageTrackingResource usageTrackingResource)

      The resource that the budget is tracking usage for.

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

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

      The resource that the budget is tracking usage for.

      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

      The status of the budget.

      • ACTIVE–Get a budget being evaluated.

      • INACTIVE–Get an inactive budget. This can include expired, canceled, or deleted statuses.

      Parameters:
      status - The status of the budget.

      • ACTIVE–Get a budget being evaluated.

      • INACTIVE–Get an inactive budget. This can include expired, canceled, or 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–Get a budget being evaluated.

      • INACTIVE–Get an inactive budget. This can include expired, canceled, or deleted statuses.

      Parameters:
      status - The status of the budget.

      • ACTIVE–Get a budget being evaluated.

      • INACTIVE–Get an inactive budget. This can include expired, canceled, or deleted statuses.

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

      GetBudgetResponse.Builder displayName(String displayName)

      The display name of the budget.

      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.

      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

      GetBudgetResponse.Builder description(String description)

      The description of the budget.

      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.

      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

      GetBudgetResponse.Builder approximateDollarLimit(Float approximateDollarLimit)

      The consumed usage limit for the budget.

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

      The usages of the budget.

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

      The usages of 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:
    • actions

      The budget actions for the budget.

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

      The budget actions for the budget.

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

      The budget actions for the budget.

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

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

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

      The budget schedule.

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

      The budget schedule.

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

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

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

      GetBudgetResponse.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

      GetBudgetResponse.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

      GetBudgetResponse.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

      GetBudgetResponse.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.
    • queueStoppedAt

      GetBudgetResponse.Builder queueStoppedAt(Instant queueStoppedAt)

      The date and time the queue stopped.

      Parameters:
      queueStoppedAt - The date and time the queue stopped.
      Returns:
      Returns a reference to this object so that method calls can be chained together.