Package com.vonage.client.subaccounts
Class UpdateSubaccountRequest.Builder
java.lang.Object
com.vonage.client.subaccounts.UpdateSubaccountRequest.Builder
- Enclosing class:
UpdateSubaccountRequest
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the UpdateSubaccountRequest.(OPTIONAL) Name of the subaccount.suspended(boolean suspended) (OPTIONAL) Whether to suspend this subaccount.usePrimaryAccountBalance(boolean usePrimaryAccountBalance) (OPTIONAL) Whether to use the primary account's balance.
-
Method Details
-
name
(OPTIONAL) Name of the subaccount.- Parameters:
name- The updated subaccount name, ornullif not set (the default).- Returns:
- This builder.
-
usePrimaryAccountBalance
(OPTIONAL) Whether to use the primary account's balance.- Parameters:
usePrimaryAccountBalance-trueif the balance is shared with the primary account ornullif not set (the default).- Returns:
- This builder.
-
suspended
(OPTIONAL) Whether to suspend this subaccount.- Parameters:
suspended- Whether this subaccount should be suspended, ornullif not set (the default).- Returns:
- This builder.
-
build
Builds the UpdateSubaccountRequest.- Returns:
- An instance of UpdateSubaccountRequest, populated with all fields from this builder.
-