All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.sdk.service.dataphin_public20230630.models.CreateBatchTaskRequest Maven / Gradle / Ivy

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 CreateBatchTaskRequest} extends {@link RequestModel}
 *
 * 

CreateBatchTaskRequest

*/ public class CreateBatchTaskRequest 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 CreateBatchTaskRequest(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 CreateBatchTaskRequest 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(CreateBatchTaskRequest 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 CreateBatchTaskRequest build() { return new CreateBatchTaskRequest(this); } } /** * * {@link CreateBatchTaskRequest} extends {@link TeaModel} * *

CreateBatchTaskRequest

*/ public static class CreateCommand extends TeaModel { @com.aliyun.core.annotation.NameInMap("DataSourceCatalog") private String dataSourceCatalog; @com.aliyun.core.annotation.NameInMap("DataSourceId") private String dataSourceId; @com.aliyun.core.annotation.NameInMap("DataSourceSchema") private String dataSourceSchema; @com.aliyun.core.annotation.NameInMap("Description") @com.aliyun.core.annotation.Validation(required = true) private String description; @com.aliyun.core.annotation.NameInMap("Directory") @com.aliyun.core.annotation.Validation(required = true) private String directory; @com.aliyun.core.annotation.NameInMap("Engine") private String engine; @com.aliyun.core.annotation.NameInMap("Name") @com.aliyun.core.annotation.Validation(required = true) private String name; @com.aliyun.core.annotation.NameInMap("ProjectId") @com.aliyun.core.annotation.Validation(required = true) private Long projectId; @com.aliyun.core.annotation.NameInMap("PythonModuleList") private java.util.List pythonModuleList; @com.aliyun.core.annotation.NameInMap("ScheduleType") @com.aliyun.core.annotation.Validation(required = true) private Integer scheduleType; @com.aliyun.core.annotation.NameInMap("TaskType") @com.aliyun.core.annotation.Validation(required = true) private Integer taskType; private CreateCommand(Builder builder) { this.dataSourceCatalog = builder.dataSourceCatalog; this.dataSourceId = builder.dataSourceId; this.dataSourceSchema = builder.dataSourceSchema; this.description = builder.description; this.directory = builder.directory; this.engine = builder.engine; this.name = builder.name; this.projectId = builder.projectId; this.pythonModuleList = builder.pythonModuleList; this.scheduleType = builder.scheduleType; this.taskType = builder.taskType; } public static Builder builder() { return new Builder(); } public static CreateCommand create() { return builder().build(); } /** * @return dataSourceCatalog */ public String getDataSourceCatalog() { return this.dataSourceCatalog; } /** * @return dataSourceId */ public String getDataSourceId() { return this.dataSourceId; } /** * @return dataSourceSchema */ public String getDataSourceSchema() { return this.dataSourceSchema; } /** * @return description */ public String getDescription() { return this.description; } /** * @return directory */ public String getDirectory() { return this.directory; } /** * @return engine */ public String getEngine() { return this.engine; } /** * @return name */ public String getName() { return this.name; } /** * @return projectId */ public Long getProjectId() { return this.projectId; } /** * @return pythonModuleList */ public java.util.List getPythonModuleList() { return this.pythonModuleList; } /** * @return scheduleType */ public Integer getScheduleType() { return this.scheduleType; } /** * @return taskType */ public Integer getTaskType() { return this.taskType; } public static final class Builder { private String dataSourceCatalog; private String dataSourceId; private String dataSourceSchema; private String description; private String directory; private String engine; private String name; private Long projectId; private java.util.List pythonModuleList; private Integer scheduleType; private Integer taskType; /** * DataSourceCatalog. */ public Builder dataSourceCatalog(String dataSourceCatalog) { this.dataSourceCatalog = dataSourceCatalog; return this; } /** * DataSourceId. */ public Builder dataSourceId(String dataSourceId) { this.dataSourceId = dataSourceId; return this; } /** * DataSourceSchema. */ public Builder dataSourceSchema(String dataSourceSchema) { this.dataSourceSchema = dataSourceSchema; return this; } /** *

This parameter is required.

* * example: *

xx test.

*/ public Builder description(String description) { this.description = description; return this; } /** *

This parameter is required.

* * example: *

/a/b

*/ public Builder directory(String directory) { this.directory = directory; return this; } /** * Engine. */ public Builder engine(String engine) { this.engine = engine; return this; } /** *

This parameter is required.

* * example: *

test111

*/ public Builder name(String name) { this.name = name; return this; } /** *

This parameter is required.

* * example: *

10121101

*/ public Builder projectId(Long projectId) { this.projectId = projectId; return this; } /** * PythonModuleList. */ public Builder pythonModuleList(java.util.List pythonModuleList) { this.pythonModuleList = pythonModuleList; return this; } /** *

This parameter is required.

* * example: *

3

*/ public Builder scheduleType(Integer scheduleType) { this.scheduleType = scheduleType; return this; } /** *

This parameter is required.

* * example: *

5

*/ public Builder taskType(Integer taskType) { this.taskType = taskType; return this; } public CreateCommand build() { return new CreateCommand(this); } } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy