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

com.aliyun.sdk.service.dataphin_public20230630.models.CreateAdHocFileRequest 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 CreateAdHocFileRequest} extends {@link RequestModel}
 *
 * 

CreateAdHocFileRequest

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

CreateAdHocFileRequest

*/ public static class CreateCommand extends TeaModel { @com.aliyun.core.annotation.NameInMap("Content") @com.aliyun.core.annotation.Validation(required = true) private String content; @com.aliyun.core.annotation.NameInMap("Directory") @com.aliyun.core.annotation.Validation(required = true) private String directory; @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; private CreateCommand(Builder builder) { this.content = builder.content; this.directory = builder.directory; this.name = builder.name; this.projectId = builder.projectId; } public static Builder builder() { return new Builder(); } public static CreateCommand create() { return builder().build(); } /** * @return content */ public String getContent() { return this.content; } /** * @return directory */ public String getDirectory() { return this.directory; } /** * @return name */ public String getName() { return this.name; } /** * @return projectId */ public Long getProjectId() { return this.projectId; } public static final class Builder { private String content; private String directory; private String name; private Long projectId; /** *

This parameter is required.

* * example: *

select 1;

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

This parameter is required.

* * example: *

/xx1/xx2/

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

This parameter is required.

* * example: *

test_xx

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

This parameter is required.

* * example: *

11212133

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy