Interface ListVectorsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ListVectorsRequest.Builder,,ListVectorsRequest> S3VectorsRequest.Builder,SdkBuilder<ListVectorsRequest.Builder,,ListVectorsRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
ListVectorsRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon resource Name (ARN) of the vector index.The name of the vector index.maxResults(Integer maxResults) The maximum number of vectors to return on a page.Pagination token from a previous request.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.returnData(Boolean returnData) If true, the vector data of each vector will be included in the response.returnMetadata(Boolean returnMetadata) If true, the metadata associated with each vector will be included in the response.segmentCount(Integer segmentCount) For a parallelListVectorsrequest,segmentCountrepresents the total number of vector segments into which theListVectorsoperation will be divided.segmentIndex(Integer segmentIndex) For a parallelListVectorsrequest,segmentIndexis the index of the segment from which to list vectors in the current request.vectorBucketName(String vectorBucketName) The name of the vector bucket.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.s3vectors.model.S3VectorsRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
vectorBucketName
The name of the vector bucket.
- Parameters:
vectorBucketName- The name of the vector bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
indexName
The name of the vector index.
- Parameters:
indexName- The name of the vector index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
indexArn
The Amazon resource Name (ARN) of the vector index.
- Parameters:
indexArn- The Amazon resource Name (ARN) of the vector index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxResults
The maximum number of vectors to return on a page.
If you don't specify
maxResults, theListVectorsoperation uses a default value of 500.If the processed dataset size exceeds 1 MB before reaching the
maxResultsvalue, the operation stops and returns the vectors that are retrieved up to that point, along with anextTokenthat you can use in a subsequent request to retrieve the next set of results.- Parameters:
maxResults- The maximum number of vectors to return on a page.If you don't specify
maxResults, theListVectorsoperation uses a default value of 500.If the processed dataset size exceeds 1 MB before reaching the
maxResultsvalue, the operation stops and returns the vectors that are retrieved up to that point, along with anextTokenthat you can use in a subsequent request to retrieve the next set of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
Pagination token from a previous request. The value of this field is empty for an initial request.
- Parameters:
nextToken- Pagination token from a previous request. The value of this field is empty for an initial request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
segmentCount
For a parallel
ListVectorsrequest,segmentCountrepresents the total number of vector segments into which theListVectorsoperation will be divided. The value ofsegmentCountcorresponds to the number of application workers that will perform the parallelListVectorsoperation. For example, if you want to use four application threads to list vectors in a vector index, specify asegmentCountvalue of 4.If you specify a
segmentCountvalue of 1, theListVectorsoperation will be sequential rather than parallel.If you specify
segmentCount, you must also specifysegmentIndex.- Parameters:
segmentCount- For a parallelListVectorsrequest,segmentCountrepresents the total number of vector segments into which theListVectorsoperation will be divided. The value ofsegmentCountcorresponds to the number of application workers that will perform the parallelListVectorsoperation. For example, if you want to use four application threads to list vectors in a vector index, specify asegmentCountvalue of 4.If you specify a
segmentCountvalue of 1, theListVectorsoperation will be sequential rather than parallel.If you specify
segmentCount, you must also specifysegmentIndex.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
segmentIndex
For a parallel
ListVectorsrequest,segmentIndexis the index of the segment from which to list vectors in the current request. It identifies an individual segment to be listed by an application worker.Segment IDs are zero-based, so the first segment is always 0. For example, if you want to use four application threads to list vectors in a vector index, then the first thread specifies a
segmentIndexvalue of 0, the second thread specifies 1, and so on.The value of
segmentIndexmust be less than the value provided forsegmentCount.If you provide
segmentIndex, you must also providesegmentCount.- Parameters:
segmentIndex- For a parallelListVectorsrequest,segmentIndexis the index of the segment from which to list vectors in the current request. It identifies an individual segment to be listed by an application worker.Segment IDs are zero-based, so the first segment is always 0. For example, if you want to use four application threads to list vectors in a vector index, then the first thread specifies a
segmentIndexvalue of 0, the second thread specifies 1, and so on.The value of
segmentIndexmust be less than the value provided forsegmentCount.If you provide
segmentIndex, you must also providesegmentCount.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
returnData
If true, the vector data of each vector will be included in the response. The default value is
false.- Parameters:
returnData- If true, the vector data of each vector will be included in the response. The default value isfalse.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
returnMetadata
If true, the metadata associated with each vector will be included in the response. The default value is
false.- Parameters:
returnMetadata- If true, the metadata associated with each vector will be included in the response. The default value isfalse.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
ListVectorsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ListVectorsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-