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

com.aliyun.sdk.service.gpdb20160503.models.ListSchemasRequest Maven / Gradle / Ivy

The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.gpdb20160503.models;

import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * {@link ListSchemasRequest} extends {@link RequestModel}
 *
 * 

ListSchemasRequest

*/ public class ListSchemasRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DBInstanceId") @com.aliyun.core.annotation.Validation(required = true) private String DBInstanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Database") @com.aliyun.core.annotation.Validation(required = true) private String database; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MaxResults") private Integer maxResults; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @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("SchemaPattern") private String schemaPattern; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SecretArn") @com.aliyun.core.annotation.Validation(required = true) private String secretArn; private ListSchemasRequest(Builder builder) { super(builder); this.DBInstanceId = builder.DBInstanceId; this.database = builder.database; this.maxResults = builder.maxResults; this.nextToken = builder.nextToken; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.schemaPattern = builder.schemaPattern; this.secretArn = builder.secretArn; } public static Builder builder() { return new Builder(); } public static ListSchemasRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return DBInstanceId */ public String getDBInstanceId() { return this.DBInstanceId; } /** * @return database */ public String getDatabase() { return this.database; } /** * @return maxResults */ public Integer getMaxResults() { return this.maxResults; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return schemaPattern */ public String getSchemaPattern() { return this.schemaPattern; } /** * @return secretArn */ public String getSecretArn() { return this.secretArn; } public static final class Builder extends Request.Builder { private String DBInstanceId; private String database; private Integer maxResults; private String nextToken; private Long ownerId; private String regionId; private String schemaPattern; private String secretArn; private Builder() { super(); } private Builder(ListSchemasRequest request) { super(request); this.DBInstanceId = request.DBInstanceId; this.database = request.database; this.maxResults = request.maxResults; this.nextToken = request.nextToken; this.ownerId = request.ownerId; this.regionId = request.regionId; this.schemaPattern = request.schemaPattern; this.secretArn = request.secretArn; } /** * The instance ID. *

* * > You can call the [DescribeDBInstances](~~86911~~) operation to query the information about all AnalyticDB for PostgreSQL instances within a region, including instance IDs. */ public Builder DBInstanceId(String DBInstanceId) { this.putQueryParameter("DBInstanceId", DBInstanceId); this.DBInstanceId = DBInstanceId; return this; } /** * The name of the database. */ public Builder database(String database) { this.putQueryParameter("Database", database); this.database = database; return this; } /** * The maximum number of entries per page. Valid values: 1 to 100. */ public Builder maxResults(Integer maxResults) { this.putQueryParameter("MaxResults", maxResults); this.maxResults = maxResults; return this; } /** * The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken. */ public Builder nextToken(String nextToken) { this.putQueryParameter("NextToken", nextToken); this.nextToken = nextToken; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * The region ID of the instance. */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * The schema name pattern for matching. For example, `ab%` specifies to match schema names that start with ab. */ public Builder schemaPattern(String schemaPattern) { this.putQueryParameter("SchemaPattern", schemaPattern); this.schemaPattern = schemaPattern; return this; } /** * The Alibaba Cloud Resource Name (ARN) of the access credential for the created Data API account. You can call the CreateSecret operation to create an access credential. *

* * > To call the ListSchemas operation as a Resource Access Management (RAM) user, the RAM user must have the permissions to call the UseSecret or GetSecretValue operation on the ARN of the access credential. */ public Builder secretArn(String secretArn) { this.putQueryParameter("SecretArn", secretArn); this.secretArn = secretArn; return this; } @Override public ListSchemasRequest build() { return new ListSchemasRequest(this); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy