com.aliyun.sdk.service.adb20211201.models.DescribeAccountsRequest Maven / Gradle / Ivy
Show all versions of alibabacloud-adb20211201 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.adb20211201.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link DescribeAccountsRequest} extends {@link RequestModel}
*
* DescribeAccountsRequest
*/
public class DescribeAccountsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AccountName")
private String accountName;
@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("Engine")
private String engine;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private String ownerId;
private DescribeAccountsRequest(Builder builder) {
super(builder);
this.accountName = builder.accountName;
this.DBClusterId = builder.DBClusterId;
this.engine = builder.engine;
this.ownerId = builder.ownerId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeAccountsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return accountName
*/
public String getAccountName() {
return this.accountName;
}
/**
* @return DBClusterId
*/
public String getDBClusterId() {
return this.DBClusterId;
}
/**
* @return engine
*/
public String getEngine() {
return this.engine;
}
/**
* @return ownerId
*/
public String getOwnerId() {
return this.ownerId;
}
public static final class Builder extends Request.Builder {
private String accountName;
private String DBClusterId;
private String engine;
private String ownerId;
private Builder() {
super();
}
private Builder(DescribeAccountsRequest request) {
super(request);
this.accountName = request.accountName;
this.DBClusterId = request.DBClusterId;
this.engine = request.engine;
this.ownerId = request.ownerId;
}
/**
* The name of the database account.
*
*
* > If you do not specify this parameter, the information about all database accounts in the cluster is returned.
*/
public Builder accountName(String accountName) {
this.putQueryParameter("AccountName", accountName);
this.accountName = accountName;
return this;
}
/**
* The ID of the AnalyticDB for MySQL Data Lakehouse Edition (V3.0) cluster.
*/
public Builder DBClusterId(String DBClusterId) {
this.putQueryParameter("DBClusterId", DBClusterId);
this.DBClusterId = DBClusterId;
return this;
}
/**
* The database engine of the cluster. Valid values:
*
*
* * **AnalyticDB** (default): the AnalyticDB for MySQL engine.
* * **Clickhouse**: the wide table engine.
*/
public Builder engine(String engine) {
this.putQueryParameter("Engine", engine);
this.engine = engine;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(String ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
@Override
public DescribeAccountsRequest build() {
return new DescribeAccountsRequest(this);
}
}
}