com.aliyun.dingtalkdoc_2_0.models.CrossOrgMigrateRequest 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 CrossOrgMigrateRequest extends TeaModel {
@NameInMap("option")
public CrossOrgMigrateRequestOption option;
/**
* This parameter is required.
*/
@NameInMap("param")
public CrossOrgMigrateRequestParam param;
/**
* This parameter is required.
*
* example:
* union_id
*/
@NameInMap("operatorId")
public String operatorId;
public static CrossOrgMigrateRequest build(java.util.Map map) throws Exception {
CrossOrgMigrateRequest self = new CrossOrgMigrateRequest();
return TeaModel.build(map, self);
}
public CrossOrgMigrateRequest setOption(CrossOrgMigrateRequestOption option) {
this.option = option;
return this;
}
public CrossOrgMigrateRequestOption getOption() {
return this.option;
}
public CrossOrgMigrateRequest setParam(CrossOrgMigrateRequestParam param) {
this.param = param;
return this;
}
public CrossOrgMigrateRequestParam getParam() {
return this.param;
}
public CrossOrgMigrateRequest setOperatorId(String operatorId) {
this.operatorId = operatorId;
return this;
}
public String getOperatorId() {
return this.operatorId;
}
public static class CrossOrgMigrateRequestOption extends TeaModel {
/**
* example:
* true
*/
@NameInMap("checkOperatorSourceRole")
public Boolean checkOperatorSourceRole;
/**
* example:
* true
*/
@NameInMap("deleteSource")
public Boolean deleteSource;
/**
* example:
* true
*/
@NameInMap("needRecycleFailedWorkspaceId")
public Boolean needRecycleFailedWorkspaceId;
/**
* example:
* 1L
*/
@NameInMap("relateTeamId")
public Long relateTeamId;
/**
* example:
* team_id
*/
@NameInMap("relateTeamIdStr")
public String relateTeamIdStr;
/**
* example:
* true
*/
@NameInMap("retainOrgGroup")
public Boolean retainOrgGroup;
/**
* example:
* true
*/
@NameInMap("skipRole")
public Boolean skipRole;
@NameInMap("workspaceIdStrs")
public java.util.List workspaceIdStrs;
@NameInMap("workspaceIds")
public java.util.List workspaceIds;
public static CrossOrgMigrateRequestOption build(java.util.Map map) throws Exception {
CrossOrgMigrateRequestOption self = new CrossOrgMigrateRequestOption();
return TeaModel.build(map, self);
}
public CrossOrgMigrateRequestOption setCheckOperatorSourceRole(Boolean checkOperatorSourceRole) {
this.checkOperatorSourceRole = checkOperatorSourceRole;
return this;
}
public Boolean getCheckOperatorSourceRole() {
return this.checkOperatorSourceRole;
}
public CrossOrgMigrateRequestOption setDeleteSource(Boolean deleteSource) {
this.deleteSource = deleteSource;
return this;
}
public Boolean getDeleteSource() {
return this.deleteSource;
}
public CrossOrgMigrateRequestOption setNeedRecycleFailedWorkspaceId(Boolean needRecycleFailedWorkspaceId) {
this.needRecycleFailedWorkspaceId = needRecycleFailedWorkspaceId;
return this;
}
public Boolean getNeedRecycleFailedWorkspaceId() {
return this.needRecycleFailedWorkspaceId;
}
public CrossOrgMigrateRequestOption setRelateTeamId(Long relateTeamId) {
this.relateTeamId = relateTeamId;
return this;
}
public Long getRelateTeamId() {
return this.relateTeamId;
}
public CrossOrgMigrateRequestOption setRelateTeamIdStr(String relateTeamIdStr) {
this.relateTeamIdStr = relateTeamIdStr;
return this;
}
public String getRelateTeamIdStr() {
return this.relateTeamIdStr;
}
public CrossOrgMigrateRequestOption setRetainOrgGroup(Boolean retainOrgGroup) {
this.retainOrgGroup = retainOrgGroup;
return this;
}
public Boolean getRetainOrgGroup() {
return this.retainOrgGroup;
}
public CrossOrgMigrateRequestOption setSkipRole(Boolean skipRole) {
this.skipRole = skipRole;
return this;
}
public Boolean getSkipRole() {
return this.skipRole;
}
public CrossOrgMigrateRequestOption setWorkspaceIdStrs(java.util.List workspaceIdStrs) {
this.workspaceIdStrs = workspaceIdStrs;
return this;
}
public java.util.List getWorkspaceIdStrs() {
return this.workspaceIdStrs;
}
public CrossOrgMigrateRequestOption setWorkspaceIds(java.util.List workspaceIds) {
this.workspaceIds = workspaceIds;
return this;
}
public java.util.List getWorkspaceIds() {
return this.workspaceIds;
}
}
public static class CrossOrgMigrateRequestParam extends TeaModel {
/**
* example:
* corp_id
*/
@NameInMap("corpId")
public String corpId;
public static CrossOrgMigrateRequestParam build(java.util.Map map) throws Exception {
CrossOrgMigrateRequestParam self = new CrossOrgMigrateRequestParam();
return TeaModel.build(map, self);
}
public CrossOrgMigrateRequestParam setCorpId(String corpId) {
this.corpId = corpId;
return this;
}
public String getCorpId() {
return this.corpId;
}
}
}