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