public class IvrCallRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 类和说明 |
|---|---|
static class |
IvrCallRequest.IvrCallRequestMenuKeyMap |
| 限定符和类型 | 字段和说明 |
|---|---|
String |
byeCode
The end voice.
|
String |
byeTtsParams
The variables in the TTS template, in the JSON format.
|
String |
calledNumber
The called number.
|
String |
calledShowNumber
The calling number.
|
List<IvrCallRequest.IvrCallRequestMenuKeyMap> |
menuKeyMap
The information about the key pressed by the subscriber.
|
String |
outId
The ID that is reserved for the caller of the operation.
|
Long |
ownerId |
Long |
playTimes
The number of replay times.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
startCode
The voice that is played when the call begins.
|
String |
startTtsParams
The variables in the TTS template, in the JSON format.
|
Integer |
timeout
The timeout period for the subscriber to press a key.
|
| 构造器和说明 |
|---|
IvrCallRequest() |
@NameInMap(value="ByeCode") public String byeCode
The end voice.
example:The value of the ByeCode parameter must be of the same type as the value of the StartCode parameter. This means that both parameters must specify voice IDs or TTS template IDs.
TTS_1234****
@NameInMap(value="ByeTtsParams") public String byeTtsParams
The variables in the TTS template, in the JSON format.
example:This parameter is required when the ByeCode parameter is set to the ID of a TTS template that contains variables.
{"name":"xxx","code":"123"}
@NameInMap(value="CalledNumber") public String calledNumber
The called number.
Only phone numbers in the Chinese mainland are supported. Each request supports only one called number.
This parameter is required.
example:1590****000
@NameInMap(value="CalledShowNumber") public String calledShowNumber
The calling number.
The value must be a number you purchased. Each request supports only one calling number. In most cases, a calling number is configured with the maximum number of concurrent requests. New requests fail if the maximum number of concurrent requests is reached. You can log on to the Voice Messaging Service console and choose Real Number Service > Real Number Management to view the number you purchased.
This parameter is required.
example:0571****5678
@NameInMap(value="MenuKeyMap") public List<IvrCallRequest.IvrCallRequestMenuKeyMap> menuKeyMap
The information about the key pressed by the subscriber.
@NameInMap(value="OutId") public String outId
The ID that is reserved for the caller of the operation. This ID is returned to the caller in a receipt message.
The value is of the STRING type and must be 1 to 15 bytes in length.
example:PR0210428****
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="PlayTimes") public Long playTimes
The number of replay times. Valid values: 1 to 3.
example:3
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="StartCode") public String startCode
The voice that is played when the call begins.
This parameter is required.
example:TTS_1234****
@NameInMap(value="StartTtsParams") public String startTtsParams
The variables in the TTS template, in the JSON format.
example:This parameter is required when the StartCode parameter is set to the ID of a TTS template that contains variables.
{"name":"xxx","code":"123"}
@NameInMap(value="Timeout") public Integer timeout
The timeout period for the subscriber to press a key. Unit: milliseconds.
example:3000
public static IvrCallRequest build(Map<String,?> map) throws Exception
Exceptionpublic IvrCallRequest setByeCode(String byeCode)
public String getByeCode()
public IvrCallRequest setByeTtsParams(String byeTtsParams)
public String getByeTtsParams()
public IvrCallRequest setCalledNumber(String calledNumber)
public String getCalledNumber()
public IvrCallRequest setCalledShowNumber(String calledShowNumber)
public String getCalledShowNumber()
public IvrCallRequest setMenuKeyMap(List<IvrCallRequest.IvrCallRequestMenuKeyMap> menuKeyMap)
public List<IvrCallRequest.IvrCallRequestMenuKeyMap> getMenuKeyMap()
public IvrCallRequest setOutId(String outId)
public String getOutId()
public IvrCallRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public IvrCallRequest setPlayTimes(Long playTimes)
public Long getPlayTimes()
public IvrCallRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public IvrCallRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public IvrCallRequest setStartCode(String startCode)
public String getStartCode()
public IvrCallRequest setStartTtsParams(String startTtsParams)
public String getStartTtsParams()
public IvrCallRequest setTimeout(Integer timeout)
public Integer getTimeout()
Copyright © 2025. All rights reserved.