Interface OpenSearchServerlessConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<OpenSearchServerlessConfiguration.Builder,,OpenSearchServerlessConfiguration> SdkBuilder<OpenSearchServerlessConfiguration.Builder,,OpenSearchServerlessConfiguration> SdkPojo
- Enclosing class:
OpenSearchServerlessConfiguration
public static interface OpenSearchServerlessConfiguration.Builder
extends SdkPojo, CopyableBuilder<OpenSearchServerlessConfiguration.Builder,OpenSearchServerlessConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptioncollectionArn(String collectionArn) The Amazon Resource Name (ARN) of the OpenSearch Service vector store.fieldMapping(Consumer<OpenSearchServerlessFieldMapping.Builder> fieldMapping) Contains the names of the fields to which to map information about the vector store.fieldMapping(OpenSearchServerlessFieldMapping fieldMapping) Contains the names of the fields to which to map information about the vector store.vectorIndexName(String vectorIndexName) The name of the vector store.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
collectionArn
The Amazon Resource Name (ARN) of the OpenSearch Service vector store.
- Parameters:
collectionArn- The Amazon Resource Name (ARN) of the OpenSearch Service vector store.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fieldMapping
OpenSearchServerlessConfiguration.Builder fieldMapping(OpenSearchServerlessFieldMapping fieldMapping) Contains the names of the fields to which to map information about the vector store.
- Parameters:
fieldMapping- Contains the names of the fields to which to map information about the vector store.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fieldMapping
default OpenSearchServerlessConfiguration.Builder fieldMapping(Consumer<OpenSearchServerlessFieldMapping.Builder> fieldMapping) Contains the names of the fields to which to map information about the vector store.
This is a convenience method that creates an instance of theOpenSearchServerlessFieldMapping.Builderavoiding the need to create one manually viaOpenSearchServerlessFieldMapping.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofieldMapping(OpenSearchServerlessFieldMapping).- Parameters:
fieldMapping- a consumer that will call methods onOpenSearchServerlessFieldMapping.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
vectorIndexName
The name of the vector store.
- Parameters:
vectorIndexName- The name of the vector store.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-