Interface UpdateCollectionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdateCollectionRequest.Builder,,UpdateCollectionRequest> OpenSearchServerlessRequest.Builder,SdkBuilder<UpdateCollectionRequest.Builder,,UpdateCollectionRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateCollectionRequest
@Mutable
@NotThreadSafe
public static interface UpdateCollectionRequest.Builder
extends OpenSearchServerlessRequest.Builder, SdkPojo, CopyableBuilder<UpdateCollectionRequest.Builder,UpdateCollectionRequest>
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) Unique, case-sensitive identifier to ensure idempotency of the request.deletionProtection(String deletionProtection) Indicates whether to enable or disable deletion protection for the collection.deletionProtection(DeletionProtection deletionProtection) Indicates whether to enable or disable deletion protection for the collection.description(String description) A description of the collection.The unique identifier of the collection.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default UpdateCollectionRequest.BuildervectorOptions(Consumer<VectorOptions.Builder> vectorOptions) Configuration options for vector search capabilities in the collection.vectorOptions(VectorOptions vectorOptions) Configuration options for vector search capabilities in the collection.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.opensearchserverless.model.OpenSearchServerlessRequest.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
-
id
The unique identifier of the collection.
- Parameters:
id- The unique identifier of the collection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the collection.
- Parameters:
description- A description of the collection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vectorOptions
Configuration options for vector search capabilities in the collection.
- Parameters:
vectorOptions- Configuration options for vector search capabilities in the collection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vectorOptions
default UpdateCollectionRequest.Builder vectorOptions(Consumer<VectorOptions.Builder> vectorOptions) Configuration options for vector search capabilities in the collection.
This is a convenience method that creates an instance of theVectorOptions.Builderavoiding the need to create one manually viaVectorOptions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovectorOptions(VectorOptions).- Parameters:
vectorOptions- a consumer that will call methods onVectorOptions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
deletionProtection
Indicates whether to enable or disable deletion protection for the collection. When set to
ENABLED, the collection cannot be deleted.- Parameters:
deletionProtection- Indicates whether to enable or disable deletion protection for the collection. When set toENABLED, the collection cannot be deleted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
deletionProtection
Indicates whether to enable or disable deletion protection for the collection. When set to
ENABLED, the collection cannot be deleted.- Parameters:
deletionProtection- Indicates whether to enable or disable deletion protection for the collection. When set toENABLED, the collection cannot be deleted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientToken
Unique, case-sensitive identifier to ensure idempotency of the request.
- Parameters:
clientToken- Unique, case-sensitive identifier to ensure idempotency of the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
UpdateCollectionRequest.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
UpdateCollectionRequest.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.
-