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

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

UpdateDataSourceBasicInfoRequest

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

UpdateDataSourceBasicInfoRequest

*/ public static class UpdateCommand extends TeaModel { @com.aliyun.core.annotation.NameInMap("Description") @com.aliyun.core.annotation.Validation(required = true) private String description; @com.aliyun.core.annotation.NameInMap("Id") @com.aliyun.core.annotation.Validation(required = true) private Long id; @com.aliyun.core.annotation.NameInMap("Name") @com.aliyun.core.annotation.Validation(required = true) private String name; private UpdateCommand(Builder builder) { this.description = builder.description; this.id = builder.id; this.name = builder.name; } public static Builder builder() { return new Builder(); } public static UpdateCommand create() { return builder().build(); } /** * @return description */ public String getDescription() { return this.description; } /** * @return id */ public Long getId() { return this.id; } /** * @return name */ public String getName() { return this.name; } public static final class Builder { private String description; private Long id; private String name; /** *

This parameter is required.

* * example: *

xx

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

This parameter is required.

* * example: *

23231

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

This parameter is required.

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy