com.aliyun.dingtalkservice_group_1_0.models.GetAuthTokenResponseBody 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.dingtalkservice_group_1_0.models;
import com.aliyun.tea.*;
public class GetAuthTokenResponseBody extends TeaModel {
// 错误码
@NameInMap("dingOpenErrcode")
public Integer dingOpenErrcode;
// errorMsg
@NameInMap("errorMsg")
public String errorMsg;
// 返回的对象
@NameInMap("result")
public GetAuthTokenResponseBodyResult result;
// 是否成功
@NameInMap("success")
public Boolean success;
public static GetAuthTokenResponseBody build(java.util.Map map) throws Exception {
GetAuthTokenResponseBody self = new GetAuthTokenResponseBody();
return TeaModel.build(map, self);
}
public GetAuthTokenResponseBody setDingOpenErrcode(Integer dingOpenErrcode) {
this.dingOpenErrcode = dingOpenErrcode;
return this;
}
public Integer getDingOpenErrcode() {
return this.dingOpenErrcode;
}
public GetAuthTokenResponseBody setErrorMsg(String errorMsg) {
this.errorMsg = errorMsg;
return this;
}
public String getErrorMsg() {
return this.errorMsg;
}
public GetAuthTokenResponseBody setResult(GetAuthTokenResponseBodyResult result) {
this.result = result;
return this;
}
public GetAuthTokenResponseBodyResult getResult() {
return this.result;
}
public GetAuthTokenResponseBody setSuccess(Boolean success) {
this.success = success;
return this;
}
public Boolean getSuccess() {
return this.success;
}
public static class GetAuthTokenResponseBodyResult extends TeaModel {
// token
@NameInMap("authToken")
public String authToken;
// 小二渠道来源 DT/LINKS
@NameInMap("channel")
public String channel;
// token有效期秒
@NameInMap("effectiveTime")
public Long effectiveTime;
// 小二id
@NameInMap("serverId")
public String serverId;
// 小二名称
@NameInMap("serverName")
public String serverName;
public static GetAuthTokenResponseBodyResult build(java.util.Map map) throws Exception {
GetAuthTokenResponseBodyResult self = new GetAuthTokenResponseBodyResult();
return TeaModel.build(map, self);
}
public GetAuthTokenResponseBodyResult setAuthToken(String authToken) {
this.authToken = authToken;
return this;
}
public String getAuthToken() {
return this.authToken;
}
public GetAuthTokenResponseBodyResult setChannel(String channel) {
this.channel = channel;
return this;
}
public String getChannel() {
return this.channel;
}
public GetAuthTokenResponseBodyResult setEffectiveTime(Long effectiveTime) {
this.effectiveTime = effectiveTime;
return this;
}
public Long getEffectiveTime() {
return this.effectiveTime;
}
public GetAuthTokenResponseBodyResult setServerId(String serverId) {
this.serverId = serverId;
return this;
}
public String getServerId() {
return this.serverId;
}
public GetAuthTokenResponseBodyResult setServerName(String serverName) {
this.serverName = serverName;
return this;
}
public String getServerName() {
return this.serverName;
}
}
}