Class CollectionIndexReference.Builder
java.lang.Object
software.amazon.awscdk.interfaces.opensearchserverless.CollectionIndexReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CollectionIndexReference>
- Enclosing interface:
CollectionIndexReference
@Stability(Stable)
public static final class CollectionIndexReference.Builder
extends Object
implements software.amazon.jsii.Builder<CollectionIndexReference>
A builder for
CollectionIndexReference-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.collectionIndexId(String collectionIndexId) Sets the value ofCollectionIndexReference.getCollectionIndexId()Sets the value ofCollectionIndexReference.getIndexName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
collectionIndexId
@Stability(Stable) public CollectionIndexReference.Builder collectionIndexId(String collectionIndexId) Sets the value ofCollectionIndexReference.getCollectionIndexId()- Parameters:
collectionIndexId- The Id of the CollectionIndex resource. This parameter is required.- Returns:
this
-
indexName
Sets the value ofCollectionIndexReference.getIndexName()- Parameters:
indexName- The IndexName of the CollectionIndex resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CollectionIndexReference>- Returns:
- a new instance of
CollectionIndexReference - Throws:
NullPointerException- if any required attribute was not provided
-