public static final class BuySecretNoRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
BuySecretNoRequest |
build() |
BuySecretNoRequest.Builder |
city(String city)
Specifies the home location of the phone number.
|
BuySecretNoRequest.Builder |
displayPool(Boolean displayPool)
Specifies whether to add the phone number to the pool of numbers that will be displayed during calls.
|
BuySecretNoRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
BuySecretNoRequest.Builder |
poolKey(String poolKey)
The key of the phone number pool.
|
BuySecretNoRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
BuySecretNoRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
BuySecretNoRequest.Builder |
secretNo(String secretNo)
The prefix of the phone number.
|
BuySecretNoRequest.Builder |
specId(Long specId)
The type of the phone number.
|
public BuySecretNoRequest.Builder city(String city)
Specifies the home location of the phone number.
The home location can be set only to a location in the Chinese mainland.
A phone number that starts with 95 does not have a home location. If you purchase a phone number that starts with 95, set this parameter to Nationwide.
This parameter is required.
example:hangzhou
public BuySecretNoRequest.Builder displayPool(Boolean displayPool)
Specifies whether to add the phone number to the pool of numbers that will be displayed during calls.
example:This parameter takes effect only for customers who have enabled the number display feature.
true
public BuySecretNoRequest.Builder ownerId(Long ownerId)
public BuySecretNoRequest.Builder poolKey(String poolKey)
The key of the phone number pool. Log on to the Phone Number Protection console and view the key of the phone number pool on the Number Pool Management page.
This parameter is required.
example:FC123456
public BuySecretNoRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public BuySecretNoRequest.Builder resourceOwnerId(Long resourceOwnerId)
public BuySecretNoRequest.Builder secretNo(String secretNo)
The prefix of the phone number. If you specify the value of SecretNo when you purchase a phone number, a phone number starting with the specified prefix is selected.
example:You can specify up to 18 digits of the phone number prefix.
130
public BuySecretNoRequest.Builder specId(Long specId)
The type of the phone number. Valid values:
This parameter is required.
example:1
public BuySecretNoRequest build()
Copyright © 2025. All rights reserved.