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

com.aliyun.sdk.service.polardb20170801.models.OpenAITaskRequest Maven / Gradle / Ivy

There is a newer version: 4.0.28
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.polardb20170801.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 OpenAITaskRequest} extends {@link RequestModel}
 *
 * 

OpenAITaskRequest

*/ public class OpenAITaskRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DBClusterId") @com.aliyun.core.annotation.Validation(required = true) private String DBClusterId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NodeType") private String nodeType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Password") private String password; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Username") private String username; private OpenAITaskRequest(Builder builder) { super(builder); this.DBClusterId = builder.DBClusterId; this.nodeType = builder.nodeType; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.password = builder.password; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.username = builder.username; } public static Builder builder() { return new Builder(); } public static OpenAITaskRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return DBClusterId */ public String getDBClusterId() { return this.DBClusterId; } /** * @return nodeType */ public String getNodeType() { return this.nodeType; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return password */ public String getPassword() { return this.password; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return username */ public String getUsername() { return this.username; } public static final class Builder extends Request.Builder { private String DBClusterId; private String nodeType; private String ownerAccount; private Long ownerId; private String password; private String regionId; private String resourceGroupId; private String resourceOwnerAccount; private Long resourceOwnerId; private String username; private Builder() { super(); } private Builder(OpenAITaskRequest request) { super(request); this.DBClusterId = request.DBClusterId; this.nodeType = request.nodeType; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.password = request.password; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.username = request.username; } /** *

The cluster ID.

*

This parameter is required.

* * example: *

pc-****************

*/ public Builder DBClusterId(String DBClusterId) { this.putQueryParameter("DBClusterId", DBClusterId); this.DBClusterId = DBClusterId; return this; } /** *

The node type. Valid values:

*
    *
  • DLNode: This node is an AI node.
  • *
  • SearchNode: This node is a node for which the PolarDB for AI feature is enabled.
  • *
* * example: *

DLNode

*/ public Builder nodeType(String nodeType) { this.putQueryParameter("NodeType", nodeType); this.nodeType = nodeType; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** *

The password used to access the database for which you want to enable the PolarDB for AI feature.

* * example: *

testPassword

*/ public Builder password(String password) { this.putQueryParameter("Password", password); this.password = password; return this; } /** *

The ID of the region.

*

This parameter is required.

* * example: *

cn-hangzhou

*/ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** *

The ID of the resource group.

* * example: *

rg-************

*/ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** *

The username used to access the database for which you want to enable the PolarDB for AI feature.

* * example: *

testAccountName

*/ public Builder username(String username) { this.putQueryParameter("Username", username); this.username = username; return this; } @Override public OpenAITaskRequest build() { return new OpenAITaskRequest(this); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy