public static final class BindAxbRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
BindAxbRequest.Builder |
ASRModelId(String ASRModelId)
The ID of the ASR model.
|
BindAxbRequest.Builder |
ASRStatus(Boolean ASRStatus)
Specifies whether to enable automatic speech recognition (ASR).
|
BindAxbRequest |
build() |
BindAxbRequest.Builder |
callDisplayType(Integer callDisplayType)
Re-sets the phone number display logic in the AXB binding.
|
BindAxbRequest.Builder |
callRestrict(String callRestrict)
The status of the one-way call restriction.
|
BindAxbRequest.Builder |
callTimeout(Integer callTimeout)
The maximum ringing duration for each number in sequential ringing.
|
BindAxbRequest.Builder |
dtmfConfig(String dtmfConfig)
Specifies the dual tone multiple frequency (DTMF) key configuration in the AXB binding.
|
BindAxbRequest.Builder |
expectCity(String expectCity)
Specifies the city to which phone number X to be selected belongs.
|
BindAxbRequest.Builder |
expiration(String expiration)
The expiration time of the AXB binding.
|
BindAxbRequest.Builder |
isRecordingEnabled(Boolean isRecordingEnabled)
Specifies whether to record all calls made by the bound phone numbers.
|
BindAxbRequest.Builder |
outId(String outId)
The extension field for the external business.
|
BindAxbRequest.Builder |
outOrderId(String outOrderId)
The ID of the external business.
|
BindAxbRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
BindAxbRequest.Builder |
phoneNoA(String phoneNoA)
Phone number A in the AXB binding.
|
BindAxbRequest.Builder |
phoneNoB(String phoneNoB)
Phone number B in the AXB binding.
|
BindAxbRequest.Builder |
phoneNoX(String phoneNoX)
Phone number X in the AXB binding.
|
BindAxbRequest.Builder |
poolKey(String poolKey)
The key of the phone number pool.
|
BindAxbRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
BindAxbRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
BindAxbRequest.Builder |
ringConfig(String ringConfig)
Sets the ringtone code for enterprise Color Ring Back Tone (CRBT) in the AXB binding.
|
public BindAxbRequest.Builder ASRModelId(String ASRModelId)
The ID of the ASR model. On the Automatic Speech Recognition (ASR) Model Management page, you can view the ID of the ASR model.
example:7ee372834d2f4cc7ac0d0ab2d0ae1aac
public BindAxbRequest.Builder ASRStatus(Boolean ASRStatus)
Specifies whether to enable automatic speech recognition (ASR). Valid values:
false
public BindAxbRequest.Builder callDisplayType(Integer callDisplayType)
Re-sets the phone number display logic in the AXB binding. Fixed value: 1, indicating that phone number X is displayed on both the calling phone and the called phone.
example:Due to the regulatory restrictions imposed by carriers, the setting to display real phone numbers during calls does not take effect.
1
public BindAxbRequest.Builder callRestrict(String callRestrict)
The status of the one-way call restriction. Valid values:
CONTROL_AX_DISABLE
public BindAxbRequest.Builder callTimeout(Integer callTimeout)
The maximum ringing duration for each number in sequential ringing. Unit: seconds. The value ranges from 5 to 20.
example:10
public BindAxbRequest.Builder dtmfConfig(String dtmfConfig)
Specifies the dual tone multiple frequency (DTMF) key configuration in the AXB binding. The following content can be configured:
{ "endCallIvrPhoneNo":"A", "waitingDtmfTime":10, "maxLoop":3, "step1File":"62ab72f8-4750-4234-859e-e8d678c0cad3-flow_tts_test_1.wav", "step2File":"62ab72f8-4750-4234-859e-e8d678c0cad3-flow_tts_test_2.wav", "validKey":"1,2", "waitingEndCall":2 }
public BindAxbRequest.Builder expectCity(String expectCity)
Specifies the city to which phone number X to be selected belongs.
hangzhou
public BindAxbRequest.Builder expiration(String expiration)
The expiration time of the AXB binding.
The expiration time must be more than 1 minute later than the time when you call this API operation.
This parameter is required.
example:2021-09-05 12:00:00
public BindAxbRequest.Builder isRecordingEnabled(Boolean isRecordingEnabled)
Specifies whether to record all calls made by the bound phone numbers. Valid values:
true
public BindAxbRequest.Builder outId(String outId)
The extension field for the external business. This parameter is returned in a call record receipt.
example:abcdef
public BindAxbRequest.Builder outOrderId(String outOrderId)
The ID of the external business.
example:34553330****
public BindAxbRequest.Builder ownerId(Long ownerId)
public BindAxbRequest.Builder phoneNoA(String phoneNoA)
Phone number A in the AXB binding.
Phone number A can be set to a mobile phone number or a landline phone number. The landline phone number must be added with an area code, and no hyphen is required between the area code and the landline phone number.
This parameter is required.
example:139****0000
public BindAxbRequest.Builder phoneNoB(String phoneNoB)
Phone number B in the AXB binding. If phone number A is used to call phone number X, the call is forwarded to phone number B. Phone number B can be set to a mobile phone number or a landline phone number. The landline phone number must be added with an area code, and no hyphen is required between the area code and the landline phone number.
example:If you need to update phone number B, call the UpdateSubscription operation.
139****0000
public BindAxbRequest.Builder phoneNoX(String phoneNoX)
Phone number X in the AXB binding.
Phone number X is the phone number that you purchased in the Phone Number Protection console or by using the BuySecretNo operation before you bind a phone number. Phone number X is used to forward calls.
If you do not specify this parameter, a random phone number is selected from the phone number pool based on the value of the ExpectCity parameter and is used as phone number X.
example:139****0000
public BindAxbRequest.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.
example:FC5526*****
public BindAxbRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public BindAxbRequest.Builder resourceOwnerId(Long resourceOwnerId)
public BindAxbRequest.Builder ringConfig(String ringConfig)
Sets the ringtone code for enterprise Color Ring Back Tone (CRBT) in the AXB binding.
Enterprise CRBT codes: Enterprise CRBT codes can be queried in the Phone Number Protection console. You can choose Number Pool Management > Enterprise CRBT Management to view enterprise CRBT codes. You can also upload, delete, or perform other operations on enterprise CRBT codes.
example:The bound enterprise CRBTs are preferentially used. If no enterprise CRBT is set or the setting does not take effect, the enterprise CRBTs at the phone number pool level are used.
{"AXBRing_B":"10001","AXBRing_A":"10001"}
public BindAxbRequest build()
Copyright © 2025. All rights reserved.