com.aliyun.sdk.service.dataphin_public20230630.models.CreateBizUnitRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-dataphin_public20230630 Show documentation
Show all versions of alibabacloud-dataphin_public20230630 Show documentation
Alibaba Cloud dataphin-public (20230630) Async SDK for Java
The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.dataphin_public20230630.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateBizUnitRequest} extends {@link RequestModel}
*
* CreateBizUnitRequest
*/
public class CreateBizUnitRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("CreateCommand")
@com.aliyun.core.annotation.Validation(required = true)
private CreateCommand createCommand;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OpTenantId")
@com.aliyun.core.annotation.Validation(required = true)
private Long opTenantId;
private CreateBizUnitRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
this.createCommand = builder.createCommand;
this.opTenantId = builder.opTenantId;
}
public static Builder builder() {
return new Builder();
}
public static CreateBizUnitRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return createCommand
*/
public CreateCommand getCreateCommand() {
return this.createCommand;
}
/**
* @return opTenantId
*/
public Long getOpTenantId() {
return this.opTenantId;
}
public static final class Builder extends Request.Builder {
private String regionId;
private CreateCommand createCommand;
private Long opTenantId;
private Builder() {
super();
}
private Builder(CreateBizUnitRequest request) {
super(request);
this.regionId = request.regionId;
this.createCommand = request.createCommand;
this.opTenantId = request.opTenantId;
}
/**
* RegionId.
*/
public Builder regionId(String regionId) {
this.putHostParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* This parameter is required.
*/
public Builder createCommand(CreateCommand createCommand) {
String createCommandShrink = shrink(createCommand, "CreateCommand", "json");
this.putBodyParameter("CreateCommand", createCommandShrink);
this.createCommand = createCommand;
return this;
}
/**
* This parameter is required.
*
* example:
* 30001011
*/
public Builder opTenantId(Long opTenantId) {
this.putQueryParameter("OpTenantId", opTenantId);
this.opTenantId = opTenantId;
return this;
}
@Override
public CreateBizUnitRequest build() {
return new CreateBizUnitRequest(this);
}
}
/**
*
* {@link CreateBizUnitRequest} extends {@link TeaModel}
*
* CreateBizUnitRequest
*/
public static class BizUnitAccountList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("UserId")
@com.aliyun.core.annotation.Validation(required = true)
private String userId;
private BizUnitAccountList(Builder builder) {
this.userId = builder.userId;
}
public static Builder builder() {
return new Builder();
}
public static BizUnitAccountList create() {
return builder().build();
}
/**
* @return userId
*/
public String getUserId() {
return this.userId;
}
public static final class Builder {
private String userId;
/**
* This parameter is required.
*
* example:
* 20001201
*/
public Builder userId(String userId) {
this.userId = userId;
return this;
}
public BizUnitAccountList build() {
return new BizUnitAccountList(this);
}
}
}
/**
*
* {@link CreateBizUnitRequest} extends {@link TeaModel}
*
* CreateBizUnitRequest
*/
public static class CreateCommand extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BizUnitAccountList")
@com.aliyun.core.annotation.Validation(required = true)
private java.util.List bizUnitAccountList;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("DisplayName")
@com.aliyun.core.annotation.Validation(required = true)
private String displayName;
@com.aliyun.core.annotation.NameInMap("Icon")
@com.aliyun.core.annotation.Validation(required = true)
private String icon;
@com.aliyun.core.annotation.NameInMap("Mode")
private String mode;
@com.aliyun.core.annotation.NameInMap("Name")
@com.aliyun.core.annotation.Validation(required = true)
private String name;
private CreateCommand(Builder builder) {
this.bizUnitAccountList = builder.bizUnitAccountList;
this.description = builder.description;
this.displayName = builder.displayName;
this.icon = builder.icon;
this.mode = builder.mode;
this.name = builder.name;
}
public static Builder builder() {
return new Builder();
}
public static CreateCommand create() {
return builder().build();
}
/**
* @return bizUnitAccountList
*/
public java.util.List getBizUnitAccountList() {
return this.bizUnitAccountList;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return displayName
*/
public String getDisplayName() {
return this.displayName;
}
/**
* @return icon
*/
public String getIcon() {
return this.icon;
}
/**
* @return mode
*/
public String getMode() {
return this.mode;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
public static final class Builder {
private java.util.List bizUnitAccountList;
private String description;
private String displayName;
private String icon;
private String mode;
private String name;
/**
* This parameter is required.
*/
public Builder bizUnitAccountList(java.util.List bizUnitAccountList) {
this.bizUnitAccountList = bizUnitAccountList;
return this;
}
/**
* Description.
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* This parameter is required.
*
* example:
* create_object_name
*/
public Builder displayName(String displayName) {
this.displayName = displayName;
return this;
}
/**
* This parameter is required.
*
* example:
* icon-environment
*/
public Builder icon(String icon) {
this.icon = icon;
return this;
}
/**
* Mode.
*/
public Builder mode(String mode) {
this.mode = mode;
return this;
}
/**
* This parameter is required.
*
* example:
* create_object_code_name
*/
public Builder name(String name) {
this.name = name;
return this;
}
public CreateCommand build() {
return new CreateCommand(this);
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy