Package com.vonage.client.subaccounts
Class CreateSubaccountRequest.Builder
java.lang.Object
com.vonage.client.subaccounts.CreateSubaccountRequest.Builder
- Enclosing class:
CreateSubaccountRequest
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the CreateSubaccountRequest.(REQUIRED) Name of the subaccount.(OPTIONAL) Secret for the subaccount.usePrimaryAccountBalance(boolean usePrimaryAccountBalance) (OPTIONAL) Whether to use the primary account's balance.
-
Method Details
-
name
(REQUIRED) Name of the subaccount.- Parameters:
name- Subaccount display name.- Returns:
- This builder.
-
usePrimaryAccountBalance
(OPTIONAL) Whether to use the primary account's balance.- Parameters:
usePrimaryAccountBalance-trueif the balance should be shared with the primary account.- Returns:
- This builder.
-
secret
(OPTIONAL) Secret for the subaccount. The requirements are as follows:- Between 8 and 25 characters long
- 1 lowercase letter
- 1 capital letter
- 1 digit
- Must be unique.
- Parameters:
secret- Subaccount API secret.- Returns:
- This builder.
-
build
Builds the CreateSubaccountRequest.- Returns:
- An instance of CreateSubaccountRequest, populated with all fields from this builder.
-