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 parallelListVectors
request,segmentCount
represents the total number of vector segments into which theListVectors
operation will be divided.segmentIndex
(Integer segmentIndex) For a parallelListVectors
request,segmentIndex
is 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
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.s3vectors.model.S3VectorsRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods 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
, theListVectors
operation uses a default value of 500.If the processed dataset size exceeds 1 MB before reaching the
maxResults
value, the operation stops and returns the vectors that are retrieved up to that point, along with anextToken
that 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
, theListVectors
operation uses a default value of 500.If the processed dataset size exceeds 1 MB before reaching the
maxResults
value, the operation stops and returns the vectors that are retrieved up to that point, along with anextToken
that 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
ListVectors
request,segmentCount
represents the total number of vector segments into which theListVectors
operation will be divided. The value ofsegmentCount
corresponds to the number of application workers that will perform the parallelListVectors
operation. For example, if you want to use four application threads to list vectors in a vector index, specify asegmentCount
value of 4.If you specify a
segmentCount
value of 1, theListVectors
operation will be sequential rather than parallel.If you specify
segmentCount
, you must also specifysegmentIndex
.- Parameters:
segmentCount
- For a parallelListVectors
request,segmentCount
represents the total number of vector segments into which theListVectors
operation will be divided. The value ofsegmentCount
corresponds to the number of application workers that will perform the parallelListVectors
operation. For example, if you want to use four application threads to list vectors in a vector index, specify asegmentCount
value of 4.If you specify a
segmentCount
value of 1, theListVectors
operation 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
ListVectors
request,segmentIndex
is 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
segmentIndex
value of 0, the second thread specifies 1, and so on.The value of
segmentIndex
must be less than the value provided forsegmentCount
.If you provide
segmentIndex
, you must also providesegmentCount
.- Parameters:
segmentIndex
- For a parallelListVectors
request,segmentIndex
is 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
segmentIndex
value of 0, the second thread specifies 1, and so on.The value of
segmentIndex
must 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.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in 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.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-