Class UpdateSubaccountRequest.Builder

java.lang.Object
com.vonage.client.subaccounts.UpdateSubaccountRequest.Builder
Enclosing class:
UpdateSubaccountRequest

public static class UpdateSubaccountRequest.Builder extends Object
  • Method Details

    • name

      (OPTIONAL) Name of the subaccount.
      Parameters:
      name - The updated subaccount name, or null if not set (the default).
      Returns:
      This builder.
    • usePrimaryAccountBalance

      public UpdateSubaccountRequest.Builder usePrimaryAccountBalance(boolean usePrimaryAccountBalance)
      (OPTIONAL) Whether to use the primary account's balance.
      Parameters:
      usePrimaryAccountBalance - true if the balance is shared with the primary account or null if not set (the default).
      Returns:
      This builder.
    • suspended

      public UpdateSubaccountRequest.Builder suspended(boolean suspended)
      (OPTIONAL) Whether to suspend this subaccount.
      Parameters:
      suspended - Whether this subaccount should be suspended, or null if not set (the default).
      Returns:
      This builder.
    • build

      Returns:
      An instance of UpdateSubaccountRequest, populated with all fields from this builder.