com.aliyun.dingtalkoauth2_1_0.models.GetTokenRequest 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.dingtalkoauth2_1_0.models;
import com.aliyun.tea.*;
public class GetTokenRequest extends TeaModel {
/**
* This parameter is required.
*/
@NameInMap("client_id")
public String clientId;
/**
* This parameter is required.
*/
@NameInMap("client_secret")
public String clientSecret;
/**
* This parameter is required.
*/
@NameInMap("grant_type")
public String grantType;
public static GetTokenRequest build(java.util.Map map) throws Exception {
GetTokenRequest self = new GetTokenRequest();
return TeaModel.build(map, self);
}
public GetTokenRequest setClientId(String clientId) {
this.clientId = clientId;
return this;
}
public String getClientId() {
return this.clientId;
}
public GetTokenRequest setClientSecret(String clientSecret) {
this.clientSecret = clientSecret;
return this;
}
public String getClientSecret() {
return this.clientSecret;
}
public GetTokenRequest setGrantType(String grantType) {
this.grantType = grantType;
return this;
}
public String getGrantType() {
return this.grantType;
}
}