com.aliyun.dingtalkcrm_1_0.models.BatchAddContactsResponseBody Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dingtalk Show documentation
Show all versions of dingtalk Show documentation
Alibaba Cloud dingtalk SDK for Java
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.dingtalkcrm_1_0.models;
import com.aliyun.tea.*;
public class BatchAddContactsResponseBody extends TeaModel {
// 批量插入结果列表,results的结果和要新增的数据是一一对应的,可以获取到每条数据分别是否成功。
@NameInMap("results")
public java.util.List results;
public static BatchAddContactsResponseBody build(java.util.Map map) throws Exception {
BatchAddContactsResponseBody self = new BatchAddContactsResponseBody();
return TeaModel.build(map, self);
}
public BatchAddContactsResponseBody setResults(java.util.List results) {
this.results = results;
return this;
}
public java.util.List getResults() {
return this.results;
}
public static class BatchAddContactsResponseBodyResults extends TeaModel {
// 如果保存失败,则表示失败的错误码。
@NameInMap("errorCode")
public String errorCode;
// 如果保存失败,则表示失败的错误原因。
@NameInMap("errorMsg")
public String errorMsg;
// 保存成功的联系人id。
@NameInMap("relationId")
public String relationId;
// 数据是否保存成功。
@NameInMap("success")
public Boolean success;
public static BatchAddContactsResponseBodyResults build(java.util.Map map) throws Exception {
BatchAddContactsResponseBodyResults self = new BatchAddContactsResponseBodyResults();
return TeaModel.build(map, self);
}
public BatchAddContactsResponseBodyResults setErrorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
public String getErrorCode() {
return this.errorCode;
}
public BatchAddContactsResponseBodyResults setErrorMsg(String errorMsg) {
this.errorMsg = errorMsg;
return this;
}
public String getErrorMsg() {
return this.errorMsg;
}
public BatchAddContactsResponseBodyResults setRelationId(String relationId) {
this.relationId = relationId;
return this;
}
public String getRelationId() {
return this.relationId;
}
public BatchAddContactsResponseBodyResults setSuccess(Boolean success) {
this.success = success;
return this;
}
public Boolean getSuccess() {
return this.success;
}
}
}