com.aliyun.dingtalkdrive_1_0.models.AddPermissionRequest 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
The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.dingtalkdrive_1_0.models;
import com.aliyun.tea.*;
public class AddPermissionRequest extends TeaModel {
/**
* This parameter is required.
*/
@NameInMap("members")
public java.util.List members;
/**
* This parameter is required.
*/
@NameInMap("role")
public String role;
/**
* This parameter is required.
*/
@NameInMap("unionId")
public String unionId;
public static AddPermissionRequest build(java.util.Map map) throws Exception {
AddPermissionRequest self = new AddPermissionRequest();
return TeaModel.build(map, self);
}
public AddPermissionRequest setMembers(java.util.List members) {
this.members = members;
return this;
}
public java.util.List getMembers() {
return this.members;
}
public AddPermissionRequest setRole(String role) {
this.role = role;
return this;
}
public String getRole() {
return this.role;
}
public AddPermissionRequest setUnionId(String unionId) {
this.unionId = unionId;
return this;
}
public String getUnionId() {
return this.unionId;
}
public static class AddPermissionRequestMembers extends TeaModel {
/**
* This parameter is required.
*/
@NameInMap("corpId")
public String corpId;
/**
* This parameter is required.
*/
@NameInMap("memberId")
public String memberId;
/**
* This parameter is required.
*/
@NameInMap("memberType")
public String memberType;
public static AddPermissionRequestMembers build(java.util.Map map) throws Exception {
AddPermissionRequestMembers self = new AddPermissionRequestMembers();
return TeaModel.build(map, self);
}
public AddPermissionRequestMembers setCorpId(String corpId) {
this.corpId = corpId;
return this;
}
public String getCorpId() {
return this.corpId;
}
public AddPermissionRequestMembers setMemberId(String memberId) {
this.memberId = memberId;
return this;
}
public String getMemberId() {
return this.memberId;
}
public AddPermissionRequestMembers setMemberType(String memberType) {
this.memberType = memberType;
return this;
}
public String getMemberType() {
return this.memberType;
}
}
}