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

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

ListDocumentsRequest

*/ public class ListDocumentsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Collection") @com.aliyun.core.annotation.Validation(required = true) private String collection; @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("MaxResults") private Integer maxResults; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Namespace") private String namespace; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("NamespacePassword") @com.aliyun.core.annotation.Validation(required = true) private String namespacePassword; @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; private ListDocumentsRequest(Builder builder) { super(builder); this.collection = builder.collection; this.DBInstanceId = builder.DBInstanceId; this.maxResults = builder.maxResults; this.namespace = builder.namespace; this.namespacePassword = builder.namespacePassword; this.nextToken = builder.nextToken; this.ownerId = builder.ownerId; this.regionId = builder.regionId; } public static Builder builder() { return new Builder(); } public static ListDocumentsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return collection */ public String getCollection() { return this.collection; } /** * @return DBInstanceId */ public String getDBInstanceId() { return this.DBInstanceId; } /** * @return maxResults */ public Integer getMaxResults() { return this.maxResults; } /** * @return namespace */ public String getNamespace() { return this.namespace; } /** * @return namespacePassword */ public String getNamespacePassword() { return this.namespacePassword; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } public static final class Builder extends Request.Builder { private String collection; private String DBInstanceId; private Integer maxResults; private String namespace; private String namespacePassword; private String nextToken; private Long ownerId; private String regionId; private Builder() { super(); } private Builder(ListDocumentsRequest request) { super(request); this.collection = request.collection; this.DBInstanceId = request.DBInstanceId; this.maxResults = request.maxResults; this.namespace = request.namespace; this.namespacePassword = request.namespacePassword; this.nextToken = request.nextToken; this.ownerId = request.ownerId; this.regionId = request.regionId; } /** * The name of the document collection. *

* * > You can call the [CreateDocumentCollection](~~2618448~~) operation to create a document collection and call the [ListDocumentCollections](~~2618452~~) operation to query a list of document collections. */ public Builder collection(String collection) { this.putQueryParameter("Collection", collection); this.collection = collection; return this; } /** * DBInstanceId. */ public Builder DBInstanceId(String DBInstanceId) { this.putQueryParameter("DBInstanceId", DBInstanceId); this.DBInstanceId = DBInstanceId; 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 name of the namespace. Default value: public. *

* * > You can call the [CreateNamespace](~~2401495~~) operation to create a namespace and call the [ListNamespaces](~~2401502~~) operation to query a list of namespaces. */ public Builder namespace(String namespace) { this.putQueryParameter("Namespace", namespace); this.namespace = namespace; return this; } /** * The password of the namespace. *

* * > This value is specified when you call the [CreateNamespace](~~2401495~~) operation. */ public Builder namespacePassword(String namespacePassword) { this.putQueryParameter("NamespacePassword", namespacePassword); this.namespacePassword = namespacePassword; 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; } @Override public ListDocumentsRequest build() { return new ListDocumentsRequest(this); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy