Class FirestoreIndexFieldsVectorConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.firestore_index.FirestoreIndexFieldsVectorConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<FirestoreIndexFieldsVectorConfig>
- Enclosing interface:
- FirestoreIndexFieldsVectorConfig
@Stability(Stable) public static final class FirestoreIndexFieldsVectorConfig.Builder extends Object implements software.amazon.jsii.Builder<FirestoreIndexFieldsVectorConfig>
A builder forFirestoreIndexFieldsVectorConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FirestoreIndexFieldsVectorConfigbuild()Builds the configured instance.FirestoreIndexFieldsVectorConfig.Builderdimension(Number dimension)Sets the value ofFirestoreIndexFieldsVectorConfig.getDimension()FirestoreIndexFieldsVectorConfig.Builderflat(FirestoreIndexFieldsVectorConfigFlat flat)Sets the value ofFirestoreIndexFieldsVectorConfig.getFlat()
-
-
-
Method Detail
-
dimension
@Stability(Stable) public FirestoreIndexFieldsVectorConfig.Builder dimension(Number dimension)
Sets the value ofFirestoreIndexFieldsVectorConfig.getDimension()- Parameters:
dimension- The resulting index will only include vectors of this dimension, and can be used for vector search with the same dimension. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/firestore_index#dimension FirestoreIndex#dimension}- Returns:
this
-
flat
@Stability(Stable) public FirestoreIndexFieldsVectorConfig.Builder flat(FirestoreIndexFieldsVectorConfigFlat flat)
Sets the value ofFirestoreIndexFieldsVectorConfig.getFlat()- Parameters:
flat- flat block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/firestore_index#flat FirestoreIndex#flat}- Returns:
this
-
build
@Stability(Stable) public FirestoreIndexFieldsVectorConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<FirestoreIndexFieldsVectorConfig>- Returns:
- a new instance of
FirestoreIndexFieldsVectorConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-