Class CfnCollectionIndexProps.Builder
java.lang.Object
software.amazon.awscdk.services.opensearchserverless.CfnCollectionIndexProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCollectionIndexProps>
- Enclosing interface:
CfnCollectionIndexProps
@Stability(Stable)
public static final class CfnCollectionIndexProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCollectionIndexProps>
A builder for
CfnCollectionIndexProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnCollectionIndexProps.getId()Sets the value ofCfnCollectionIndexProps.getIndexName()indexSchema(String indexSchema) Sets the value ofCfnCollectionIndexProps.getIndexSchema()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
Sets the value ofCfnCollectionIndexProps.getId()- Parameters:
id- The identifier of the collection. This parameter is required.- Returns:
this
-
indexName
Sets the value ofCfnCollectionIndexProps.getIndexName()- Parameters:
indexName- The name of the collection index. This parameter is required.- Returns:
this
-
indexSchema
Sets the value ofCfnCollectionIndexProps.getIndexSchema()- Parameters:
indexSchema- The Mappings for the collection index.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCollectionIndexProps>- Returns:
- a new instance of
CfnCollectionIndexProps - Throws:
NullPointerException- if any required attribute was not provided
-