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

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

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

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

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

QueryCollectionDataRequest

*/ public class QueryCollectionDataRequest extends Request { @Query @NameInMap("Collection") @Validation(required = true) private String collection; @Query @NameInMap("Content") private String content; @Query @NameInMap("DBInstanceId") @Validation(required = true) private String DBInstanceId; @Query @NameInMap("Filter") private String filter; @Query @NameInMap("IncludeValues") private Boolean includeValues; @Query @NameInMap("Metrics") private String metrics; @Query @NameInMap("Namespace") private String namespace; @Query @NameInMap("NamespacePassword") @Validation(required = true) private String namespacePassword; @Query @NameInMap("OwnerId") private Long ownerId; @Query @NameInMap("RegionId") @Validation(required = true) private String regionId; @Query @NameInMap("TopK") @Validation(required = true) private Long topK; @Query @NameInMap("Vector") private java.util.List < Double > vector; private QueryCollectionDataRequest(Builder builder) { super(builder); this.collection = builder.collection; this.content = builder.content; this.DBInstanceId = builder.DBInstanceId; this.filter = builder.filter; this.includeValues = builder.includeValues; this.metrics = builder.metrics; this.namespace = builder.namespace; this.namespacePassword = builder.namespacePassword; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.topK = builder.topK; this.vector = builder.vector; } public static Builder builder() { return new Builder(); } public static QueryCollectionDataRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return collection */ public String getCollection() { return this.collection; } /** * @return content */ public String getContent() { return this.content; } /** * @return DBInstanceId */ public String getDBInstanceId() { return this.DBInstanceId; } /** * @return filter */ public String getFilter() { return this.filter; } /** * @return includeValues */ public Boolean getIncludeValues() { return this.includeValues; } /** * @return metrics */ public String getMetrics() { return this.metrics; } /** * @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 topK */ public Long getTopK() { return this.topK; } /** * @return vector */ public java.util.List < Double > getVector() { return this.vector; } public static final class Builder extends Request.Builder { private String collection; private String content; private String DBInstanceId; private String filter; private Boolean includeValues; private String metrics; private String namespace; private String namespacePassword; private Long ownerId; private String regionId; private Long topK; private java.util.List < Double > vector; private Builder() { super(); } private Builder(QueryCollectionDataRequest request) { super(request); this.collection = request.collection; this.content = request.content; this.DBInstanceId = request.DBInstanceId; this.filter = request.filter; this.includeValues = request.includeValues; this.metrics = request.metrics; this.namespace = request.namespace; this.namespacePassword = request.namespacePassword; this.ownerId = request.ownerId; this.regionId = request.regionId; this.topK = request.topK; this.vector = request.vector; } /** * Collection. */ public Builder collection(String collection) { this.putQueryParameter("Collection", collection); this.collection = collection; return this; } /** * Content. */ public Builder content(String content) { this.putQueryParameter("Content", content); this.content = content; return this; } /** * DBInstanceId. */ public Builder DBInstanceId(String DBInstanceId) { this.putQueryParameter("DBInstanceId", DBInstanceId); this.DBInstanceId = DBInstanceId; return this; } /** * Filter. */ public Builder filter(String filter) { this.putQueryParameter("Filter", filter); this.filter = filter; return this; } /** * IncludeValues. */ public Builder includeValues(Boolean includeValues) { this.putQueryParameter("IncludeValues", includeValues); this.includeValues = includeValues; return this; } /** * Metrics. */ public Builder metrics(String metrics) { this.putQueryParameter("Metrics", metrics); this.metrics = metrics; return this; } /** * Namespace. */ public Builder namespace(String namespace) { this.putQueryParameter("Namespace", namespace); this.namespace = namespace; return this; } /** * NamespacePassword. */ 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; } /** * RegionId. */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * TopK. */ public Builder topK(Long topK) { this.putQueryParameter("TopK", topK); this.topK = topK; return this; } /** * Vector. */ public Builder vector(java.util.List < Double > vector) { String vectorShrink = shrink(vector, "Vector", "json"); this.putQueryParameter("Vector", vectorShrink); this.vector = vector; return this; } @Override public QueryCollectionDataRequest build() { return new QueryCollectionDataRequest(this); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy