com.aliyun.dingtalkcontact_1_0.models.CreateManagementGroupRequest 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.dingtalkcontact_1_0.models;
import com.aliyun.tea.*;
public class CreateManagementGroupRequest extends TeaModel {
/**
* This parameter is required.
*/
@NameInMap("groupName")
public String groupName;
/**
* This parameter is required.
*/
@NameInMap("members")
public java.util.List members;
/**
* This parameter is required.
*/
@NameInMap("resourceIds")
public java.util.List resourceIds;
/**
* This parameter is required.
*/
@NameInMap("scope")
public CreateManagementGroupRequestScope scope;
public static CreateManagementGroupRequest build(java.util.Map map) throws Exception {
CreateManagementGroupRequest self = new CreateManagementGroupRequest();
return TeaModel.build(map, self);
}
public CreateManagementGroupRequest setGroupName(String groupName) {
this.groupName = groupName;
return this;
}
public String getGroupName() {
return this.groupName;
}
public CreateManagementGroupRequest setMembers(java.util.List members) {
this.members = members;
return this;
}
public java.util.List getMembers() {
return this.members;
}
public CreateManagementGroupRequest setResourceIds(java.util.List resourceIds) {
this.resourceIds = resourceIds;
return this;
}
public java.util.List getResourceIds() {
return this.resourceIds;
}
public CreateManagementGroupRequest setScope(CreateManagementGroupRequestScope scope) {
this.scope = scope;
return this;
}
public CreateManagementGroupRequestScope getScope() {
return this.scope;
}
public static class CreateManagementGroupRequestMembers extends TeaModel {
/**
* This parameter is required.
*
* example:
* WB001
*/
@NameInMap("memberId")
public String memberId;
/**
* This parameter is required.
*
* example:
* user
*/
@NameInMap("memberType")
public String memberType;
public static CreateManagementGroupRequestMembers build(java.util.Map map) throws Exception {
CreateManagementGroupRequestMembers self = new CreateManagementGroupRequestMembers();
return TeaModel.build(map, self);
}
public CreateManagementGroupRequestMembers setMemberId(String memberId) {
this.memberId = memberId;
return this;
}
public String getMemberId() {
return this.memberId;
}
public CreateManagementGroupRequestMembers setMemberType(String memberType) {
this.memberType = memberType;
return this;
}
public String getMemberType() {
return this.memberType;
}
}
public static class CreateManagementGroupRequestScope extends TeaModel {
@NameInMap("deptIds")
public java.util.List deptIds;
/**
* This parameter is required.
*
* example:
* 1:全公司 2:所在部门 3:指定部门
*/
@NameInMap("scopeType")
public Integer scopeType;
public static CreateManagementGroupRequestScope build(java.util.Map map) throws Exception {
CreateManagementGroupRequestScope self = new CreateManagementGroupRequestScope();
return TeaModel.build(map, self);
}
public CreateManagementGroupRequestScope setDeptIds(java.util.List deptIds) {
this.deptIds = deptIds;
return this;
}
public java.util.List getDeptIds() {
return this.deptIds;
}
public CreateManagementGroupRequestScope setScopeType(Integer scopeType) {
this.scopeType = scopeType;
return this;
}
public Integer getScopeType() {
return this.scopeType;
}
}
}