com.aliyun.dingtalkdoc_2_0.models.SpaceModel 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.dingtalkdoc_2_0.models;
import com.aliyun.tea.*;
public class SpaceModel extends TeaModel {
// 知识库id。
@NameInMap("id")
public String id;
// 知识库名称。
@NameInMap("name")
public String name;
// 知识库所有者。
@NameInMap("owner")
public SpaceModelOwner owner;
// 知识库访问url。
@NameInMap("url")
public String url;
// 访问者对当前知识库的权限等信息。
@NameInMap("visitorInfo")
public SpaceModelVisitorInfo visitorInfo;
public static SpaceModel build(java.util.Map map) throws Exception {
SpaceModel self = new SpaceModel();
return TeaModel.build(map, self);
}
public SpaceModel setId(String id) {
this.id = id;
return this;
}
public String getId() {
return this.id;
}
public SpaceModel setName(String name) {
this.name = name;
return this;
}
public String getName() {
return this.name;
}
public SpaceModel setOwner(SpaceModelOwner owner) {
this.owner = owner;
return this;
}
public SpaceModelOwner getOwner() {
return this.owner;
}
public SpaceModel setUrl(String url) {
this.url = url;
return this;
}
public String getUrl() {
return this.url;
}
public SpaceModel setVisitorInfo(SpaceModelVisitorInfo visitorInfo) {
this.visitorInfo = visitorInfo;
return this;
}
public SpaceModelVisitorInfo getVisitorInfo() {
return this.visitorInfo;
}
public static class SpaceModelOwner extends TeaModel {
// 用户名称。
@NameInMap("name")
public String name;
// 用户unionId。
@NameInMap("unionId")
public String unionId;
public static SpaceModelOwner build(java.util.Map map) throws Exception {
SpaceModelOwner self = new SpaceModelOwner();
return TeaModel.build(map, self);
}
public SpaceModelOwner setName(String name) {
this.name = name;
return this;
}
public String getName() {
return this.name;
}
public SpaceModelOwner setUnionId(String unionId) {
this.unionId = unionId;
return this;
}
public String getUnionId() {
return this.unionId;
}
}
public static class SpaceModelVisitorInfo extends TeaModel {
// 节点的操作列表。
@NameInMap("dentryActions")
public java.util.List dentryActions;
// 空间的操作列表。
@NameInMap("spaceActions")
public java.util.List spaceActions;
public static SpaceModelVisitorInfo build(java.util.Map map) throws Exception {
SpaceModelVisitorInfo self = new SpaceModelVisitorInfo();
return TeaModel.build(map, self);
}
public SpaceModelVisitorInfo setDentryActions(java.util.List dentryActions) {
this.dentryActions = dentryActions;
return this;
}
public java.util.List getDentryActions() {
return this.dentryActions;
}
public SpaceModelVisitorInfo setSpaceActions(java.util.List spaceActions) {
this.spaceActions = spaceActions;
return this;
}
public java.util.List getSpaceActions() {
return this.spaceActions;
}
}
}