com.aliyun.dyvmsapi20170525.models.CreateRobotTaskRequest Maven / Gradle / Ivy
Show all versions of dyvmsapi20170525 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.dyvmsapi20170525.models;
import com.aliyun.tea.*;
public class CreateRobotTaskRequest extends TeaModel {
/**
* The calling number.
*
* You must use the phone numbers that you have purchased and separate multiple numbers with commas (,). You can log on to the [Voice Messaging Service console](https://dyvms.console.aliyun.com/overview/home) and choose **Real Number Service** > **Real Number Management** to view the numbers you purchased.
*/
@NameInMap("Caller")
public String caller;
/**
* The company name, which must be the same as the **enterprise name** on the qualification management page.
*/
@NameInMap("CorpName")
public String corpName;
/**
* The ID of the robot or communication script that is used to initiate the call.
*
* You can log on to the [Voice Messaging Service console](https://dyvms.console.aliyun.com/overview/home) and choose **Intelligent Voice Robot** > **Communication Script Management** to view the communication script ID.
*/
@NameInMap("DialogId")
public Long dialogId;
/**
* Specifies whether to call the self-managed line. Valid values:
*
* * **false** (default)
* * **true**
*
* > If you set this parameter to **true**, calling numbers are not verified.
*/
@NameInMap("IsSelfLine")
public Boolean isSelfLine;
/**
* Specifies whether to enable number status identification. Valid values:
*
* * **false** (default)
* * **true**
*
* > If you set this parameter to **true**, the reason why a call is not answered is recorded.
*/
@NameInMap("NumberStatusIdent")
public Boolean numberStatusIdent;
@NameInMap("OwnerId")
public Long ownerId;
/**
* The redial interval. Unit: minutes. The value must be greater than 1.
*
* > The maximum redial interval is 30 minutes.
*/
@NameInMap("RecallInterval")
public Integer recallInterval;
/**
* The call state in which redial is required. Separate multiple call states with commas (,). Valid values:
*
* * **200010**: The phone of the called party is powered off.
* * **200011**: The number of the called party is out of service.
* * **200002**: The line is busy.
* * **200012**: The call is lost.
* * **200005**: The called party cannot be connected.
* * **200003**: The called party does not respond to the call.
*/
@NameInMap("RecallStateCodes")
public String recallStateCodes;
/**
* The number of redial times.
*/
@NameInMap("RecallTimes")
public Integer recallTimes;
@NameInMap("ResourceOwnerAccount")
public String resourceOwnerAccount;
@NameInMap("ResourceOwnerId")
public Long resourceOwnerId;
/**
* Specifies whether to enable auto-redial. Valid values:
*
* * **1**: enables auto-redial.
* * **0**: disables auto-redial.
*/
@NameInMap("RetryType")
public Integer retryType;
/**
* The task name. The task name can be up to 30 characters in length.
*/
@NameInMap("TaskName")
public String taskName;
public static CreateRobotTaskRequest build(java.util.Map map) throws Exception {
CreateRobotTaskRequest self = new CreateRobotTaskRequest();
return TeaModel.build(map, self);
}
public CreateRobotTaskRequest setCaller(String caller) {
this.caller = caller;
return this;
}
public String getCaller() {
return this.caller;
}
public CreateRobotTaskRequest setCorpName(String corpName) {
this.corpName = corpName;
return this;
}
public String getCorpName() {
return this.corpName;
}
public CreateRobotTaskRequest setDialogId(Long dialogId) {
this.dialogId = dialogId;
return this;
}
public Long getDialogId() {
return this.dialogId;
}
public CreateRobotTaskRequest setIsSelfLine(Boolean isSelfLine) {
this.isSelfLine = isSelfLine;
return this;
}
public Boolean getIsSelfLine() {
return this.isSelfLine;
}
public CreateRobotTaskRequest setNumberStatusIdent(Boolean numberStatusIdent) {
this.numberStatusIdent = numberStatusIdent;
return this;
}
public Boolean getNumberStatusIdent() {
return this.numberStatusIdent;
}
public CreateRobotTaskRequest setOwnerId(Long ownerId) {
this.ownerId = ownerId;
return this;
}
public Long getOwnerId() {
return this.ownerId;
}
public CreateRobotTaskRequest setRecallInterval(Integer recallInterval) {
this.recallInterval = recallInterval;
return this;
}
public Integer getRecallInterval() {
return this.recallInterval;
}
public CreateRobotTaskRequest setRecallStateCodes(String recallStateCodes) {
this.recallStateCodes = recallStateCodes;
return this;
}
public String getRecallStateCodes() {
return this.recallStateCodes;
}
public CreateRobotTaskRequest setRecallTimes(Integer recallTimes) {
this.recallTimes = recallTimes;
return this;
}
public Integer getRecallTimes() {
return this.recallTimes;
}
public CreateRobotTaskRequest setResourceOwnerAccount(String resourceOwnerAccount) {
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
public CreateRobotTaskRequest setResourceOwnerId(Long resourceOwnerId) {
this.resourceOwnerId = resourceOwnerId;
return this;
}
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public CreateRobotTaskRequest setRetryType(Integer retryType) {
this.retryType = retryType;
return this;
}
public Integer getRetryType() {
return this.retryType;
}
public CreateRobotTaskRequest setTaskName(String taskName) {
this.taskName = taskName;
return this;
}
public String getTaskName() {
return this.taskName;
}
}