com.aliyun.sdk.service.gpdb20160503.models.UpdateCollectionDataMetadataRequest 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 UpdateCollectionDataMetadataRequest} extends {@link RequestModel}
*
* UpdateCollectionDataMetadataRequest
*/
public class UpdateCollectionDataMetadataRequest 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")
private String DBInstanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Filter")
private String filter;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Ids")
private java.util.List < String > ids;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Metadata")
@com.aliyun.core.annotation.Validation(required = true)
private java.util.Map < String, ? > metadata;
@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("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("WorkspaceId")
private String workspaceId;
private UpdateCollectionDataMetadataRequest(Builder builder) {
super(builder);
this.collection = builder.collection;
this.DBInstanceId = builder.DBInstanceId;
this.filter = builder.filter;
this.ids = builder.ids;
this.metadata = builder.metadata;
this.namespace = builder.namespace;
this.namespacePassword = builder.namespacePassword;
this.ownerId = builder.ownerId;
this.regionId = builder.regionId;
this.workspaceId = builder.workspaceId;
}
public static Builder builder() {
return new Builder();
}
public static UpdateCollectionDataMetadataRequest 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 filter
*/
public String getFilter() {
return this.filter;
}
/**
* @return ids
*/
public java.util.List < String > getIds() {
return this.ids;
}
/**
* @return metadata
*/
public java.util.Map < String, ? > getMetadata() {
return this.metadata;
}
/**
* @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;
}
/**
* @return workspaceId
*/
public String getWorkspaceId() {
return this.workspaceId;
}
public static final class Builder extends Request.Builder {
private String collection;
private String DBInstanceId;
private String filter;
private java.util.List < String > ids;
private java.util.Map < String, ? > metadata;
private String namespace;
private String namespacePassword;
private Long ownerId;
private String regionId;
private String workspaceId;
private Builder() {
super();
}
private Builder(UpdateCollectionDataMetadataRequest request) {
super(request);
this.collection = request.collection;
this.DBInstanceId = request.DBInstanceId;
this.filter = request.filter;
this.ids = request.ids;
this.metadata = request.metadata;
this.namespace = request.namespace;
this.namespacePassword = request.namespacePassword;
this.ownerId = request.ownerId;
this.regionId = request.regionId;
this.workspaceId = request.workspaceId;
}
/**
* The name of the collection.
*/
public Builder collection(String collection) {
this.putQueryParameter("Collection", collection);
this.collection = collection;
return this;
}
/**
* 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 condition that is used to filter the data to be updated. Specify this parameter in a format that is the same as the WHERE clause. You cannot leave both this parameter and Ids empty.
*/
public Builder filter(String filter) {
this.putQueryParameter("Filter", filter);
this.filter = filter;
return this;
}
/**
* The row IDs of the data to be updated. You cannot leave both this parameter and Filter empty.
*/
public Builder ids(java.util.List < String > ids) {
String idsShrink = shrink(ids, "Ids", "json");
this.putQueryParameter("Ids", idsShrink);
this.ids = ids;
return this;
}
/**
* The data to be updated, which is a JSON string in the MAP format. In the JSON string, key specifies the field name and value specifies the new data value.
*/
public Builder metadata(java.util.Map < String, ? > metadata) {
String metadataShrink = shrink(metadata, "Metadata", "json");
this.putQueryParameter("Metadata", metadataShrink);
this.metadata = metadata;
return this;
}
/**
* The name of the namespace.
*/
public Builder namespace(String namespace) {
this.putQueryParameter("Namespace", namespace);
this.namespace = namespace;
return this;
}
/**
* The password of the namespace.
*/
public Builder namespacePassword(String namespacePassword) {
this.putQueryParameter("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.
*
*
* > You can call the [DescribeRegions](~~86912~~) operation to query the most recent region list.
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* WorkspaceId.
*/
public Builder workspaceId(String workspaceId) {
this.putQueryParameter("WorkspaceId", workspaceId);
this.workspaceId = workspaceId;
return this;
}
@Override
public UpdateCollectionDataMetadataRequest build() {
return new UpdateCollectionDataMetadataRequest(this);
}
}
}