Interface UpdateBudgetRequest.Builder

  • Method Details

    • clientToken

      UpdateBudgetRequest.Builder clientToken(String clientToken)

      The unique token which the server uses to recognize retries of the same request.

      Parameters:
      clientToken - The unique token which the server uses to recognize retries of the same request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • farmId

      The farm ID of the budget to update.

      Parameters:
      farmId - The farm ID of the budget to update.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • budgetId

      UpdateBudgetRequest.Builder budgetId(String budgetId)

      The budget ID to update.

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

      UpdateBudgetRequest.Builder displayName(String displayName)

      The display name of the budget 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 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

      UpdateBudgetRequest.Builder description(String description)

      The description of the budget 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:
      description - The description of the budget 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.
    • status

      Updates 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 - Updates 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

      Updates 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 - Updates 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:
    • approximateDollarLimit

      UpdateBudgetRequest.Builder approximateDollarLimit(Float approximateDollarLimit)

      The dollar limit to update on the budget. Based on consumed usage.

      Parameters:
      approximateDollarLimit - The dollar limit to update on the budget. Based on consumed usage.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • actionsToAdd

      The budget actions to add. Budget actions specify what happens when the budget runs out.

      Parameters:
      actionsToAdd - The budget actions to add. Budget actions specify what happens when the budget runs out.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • actionsToAdd

      UpdateBudgetRequest.Builder actionsToAdd(BudgetActionToAdd... actionsToAdd)

      The budget actions to add. Budget actions specify what happens when the budget runs out.

      Parameters:
      actionsToAdd - The budget actions to add. Budget actions specify what happens when the budget runs out.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • actionsToAdd

      The budget actions to add. Budget actions specify what happens when the budget runs out.

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

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

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

      UpdateBudgetRequest.Builder actionsToRemove(Collection<BudgetActionToRemove> actionsToRemove)

      The budget actions to remove from the budget.

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

      UpdateBudgetRequest.Builder actionsToRemove(BudgetActionToRemove... actionsToRemove)

      The budget actions to remove from the budget.

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

      The budget actions to remove from the budget.

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

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

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

      The schedule to update.

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

      The schedule to update.

      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:
    • overrideConfiguration

      UpdateBudgetRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.