com.aliyun.dingtalkmicro_app_1_0.models.AddAppRolesToMemberRequest 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.dingtalkmicro_app_1_0.models;
import com.aliyun.tea.*;
public class AddAppRolesToMemberRequest extends TeaModel {
// 人员id
@NameInMap("memberId")
public String memberId;
// 人员类型,“DEPT”表示部门,“USER”表示员工
@NameInMap("memberType")
public String memberType;
// 执行用户userId
@NameInMap("opUserId")
public String opUserId;
// 角色Id列表
@NameInMap("roleList")
public java.util.List roleList;
public static AddAppRolesToMemberRequest build(java.util.Map map) throws Exception {
AddAppRolesToMemberRequest self = new AddAppRolesToMemberRequest();
return TeaModel.build(map, self);
}
public AddAppRolesToMemberRequest setMemberId(String memberId) {
this.memberId = memberId;
return this;
}
public String getMemberId() {
return this.memberId;
}
public AddAppRolesToMemberRequest setMemberType(String memberType) {
this.memberType = memberType;
return this;
}
public String getMemberType() {
return this.memberType;
}
public AddAppRolesToMemberRequest setOpUserId(String opUserId) {
this.opUserId = opUserId;
return this;
}
public String getOpUserId() {
return this.opUserId;
}
public AddAppRolesToMemberRequest setRoleList(java.util.List roleList) {
this.roleList = roleList;
return this;
}
public java.util.List getRoleList() {
return this.roleList;
}
public static class AddAppRolesToMemberRequestRoleList extends TeaModel {
// 角色ID
@NameInMap("roleId")
public Long roleId;
// 角色范围版本号
@NameInMap("scopeVersion")
public Long scopeVersion;
public static AddAppRolesToMemberRequestRoleList build(java.util.Map map) throws Exception {
AddAppRolesToMemberRequestRoleList self = new AddAppRolesToMemberRequestRoleList();
return TeaModel.build(map, self);
}
public AddAppRolesToMemberRequestRoleList setRoleId(Long roleId) {
this.roleId = roleId;
return this;
}
public Long getRoleId() {
return this.roleId;
}
public AddAppRolesToMemberRequestRoleList setScopeVersion(Long scopeVersion) {
this.scopeVersion = scopeVersion;
return this;
}
public Long getScopeVersion() {
return this.scopeVersion;
}
}
}