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

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

UpdateAdHocFileRequest

*/ public class UpdateAdHocFileRequest extends Request { @com.aliyun.core.annotation.Host @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OpTenantId") @com.aliyun.core.annotation.Validation(required = true) private Long opTenantId; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("UpdateCommand") @com.aliyun.core.annotation.Validation(required = true) private UpdateCommand updateCommand; private UpdateAdHocFileRequest(Builder builder) { super(builder); this.regionId = builder.regionId; this.opTenantId = builder.opTenantId; this.updateCommand = builder.updateCommand; } public static Builder builder() { return new Builder(); } public static UpdateAdHocFileRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return opTenantId */ public Long getOpTenantId() { return this.opTenantId; } /** * @return updateCommand */ public UpdateCommand getUpdateCommand() { return this.updateCommand; } public static final class Builder extends Request.Builder { private String regionId; private Long opTenantId; private UpdateCommand updateCommand; private Builder() { super(); } private Builder(UpdateAdHocFileRequest request) { super(request); this.regionId = request.regionId; this.opTenantId = request.opTenantId; this.updateCommand = request.updateCommand; } /** * RegionId. */ public Builder regionId(String regionId) { this.putHostParameter("RegionId", regionId); this.regionId = regionId; return this; } /** *

This parameter is required.

* * example: *

30001011

*/ public Builder opTenantId(Long opTenantId) { this.putQueryParameter("OpTenantId", opTenantId); this.opTenantId = opTenantId; return this; } /** *

This parameter is required.

*/ public Builder updateCommand(UpdateCommand updateCommand) { String updateCommandShrink = shrink(updateCommand, "UpdateCommand", "json"); this.putBodyParameter("UpdateCommand", updateCommandShrink); this.updateCommand = updateCommand; return this; } @Override public UpdateAdHocFileRequest build() { return new UpdateAdHocFileRequest(this); } } /** * * {@link UpdateAdHocFileRequest} extends {@link TeaModel} * *

UpdateAdHocFileRequest

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

2311113

*/ public Builder fileId(Long fileId) { this.fileId = fileId; return this; } /** *

This parameter is required.

* * example: *

1212313

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy