com.aliyun.sdk.service.gpdb20160503.models.CancelUploadDocumentJobRequest Maven / Gradle / Ivy
Show all versions of alibabacloud-gpdb20160503 Show documentation
// 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 CancelUploadDocumentJobRequest} extends {@link RequestModel}
*
* CancelUploadDocumentJobRequest
*/
public class CancelUploadDocumentJobRequest extends Request {
@com.aliyun.core.annotation.Body
@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.Body
@com.aliyun.core.annotation.NameInMap("JobId")
@com.aliyun.core.annotation.Validation(required = true)
private String jobId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("Namespace")
private String namespace;
@com.aliyun.core.annotation.Body
@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("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 CancelUploadDocumentJobRequest(Builder builder) {
super(builder);
this.collection = builder.collection;
this.DBInstanceId = builder.DBInstanceId;
this.jobId = builder.jobId;
this.namespace = builder.namespace;
this.namespacePassword = builder.namespacePassword;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static CancelUploadDocumentJobRequest 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 jobId
*/
public String getJobId() {
return this.jobId;
}
/**
* @return namespace
*/
public String getNamespace() {
return this.namespace;
}
/**
* @return namespacePassword
*/
public String getNamespacePassword() {
return this.namespacePassword;
}
/**
* @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 String jobId;
private String namespace;
private String namespacePassword;
private Long ownerId;
private String regionId;
private Builder() {
super();
}
private Builder(CancelUploadDocumentJobRequest request) {
super(request);
this.collection = request.collection;
this.DBInstanceId = request.DBInstanceId;
this.jobId = request.jobId;
this.namespace = request.namespace;
this.namespacePassword = request.namespacePassword;
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.putBodyParameter("Collection", collection);
this.collection = collection;
return this;
}
/**
* The ID of the instance for which vector engine optimization is enabled.
*
*
* > 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 ID of the document upload job. You can call the `UploadDocumentAsync` operation to query the job ID.
*/
public Builder jobId(String jobId) {
this.putBodyParameter("JobId", jobId);
this.jobId = jobId;
return this;
}
/**
* The name of the namespace. Default value: public.
*
*
* > You can call the CreateNamespace operation to create a namespace and call the ListNamespaces operation to query a list of namespaces.
*/
public Builder namespace(String namespace) {
this.putBodyParameter("Namespace", namespace);
this.namespace = namespace;
return this;
}
/**
* The password of the namespace.
*
*
* > The value of this parameter is specified when you call the CreateNamespace operation.
*/
public Builder namespacePassword(String namespacePassword) {
this.putBodyParameter("NamespacePassword", namespacePassword);
this.namespacePassword = namespacePassword;
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 CancelUploadDocumentJobRequest build() {
return new CancelUploadDocumentJobRequest(this);
}
}
}