Class CfnIndexPropsMixin.PropertyMappingProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.opensearchserverless.CfnIndexPropsMixin.PropertyMappingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIndexPropsMixin.PropertyMappingProperty>
- Enclosing interface:
CfnIndexPropsMixin.PropertyMappingProperty
@Stability(Stable)
public static final class CfnIndexPropsMixin.PropertyMappingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnIndexPropsMixin.PropertyMappingProperty>
A builder for
CfnIndexPropsMixin.PropertyMappingProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnIndexPropsMixin.PropertyMappingProperty.getDimension()Sets the value ofCfnIndexPropsMixin.PropertyMappingProperty.getIndex()index(IResolvable index) Sets the value ofCfnIndexPropsMixin.PropertyMappingProperty.getIndex()Sets the value ofCfnIndexPropsMixin.PropertyMappingProperty.getMethod()method(IResolvable method) Sets the value ofCfnIndexPropsMixin.PropertyMappingProperty.getMethod()properties(Map<String, ? extends Object> properties) Sets the value ofCfnIndexPropsMixin.PropertyMappingProperty.getProperties()properties(IResolvable properties) Sets the value ofCfnIndexPropsMixin.PropertyMappingProperty.getProperties()Sets the value ofCfnIndexPropsMixin.PropertyMappingProperty.getType()Sets the value ofCfnIndexPropsMixin.PropertyMappingProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dimension
@Stability(Stable) public CfnIndexPropsMixin.PropertyMappingProperty.Builder dimension(Number dimension) Sets the value ofCfnIndexPropsMixin.PropertyMappingProperty.getDimension()- Parameters:
dimension- Dimension size for vector fields, defines the number of dimensions in the vector.- Returns:
this
-
index
Sets the value ofCfnIndexPropsMixin.PropertyMappingProperty.getIndex()- Parameters:
index- Whether a field should be indexed.- Returns:
this
-
index
@Stability(Stable) public CfnIndexPropsMixin.PropertyMappingProperty.Builder index(IResolvable index) Sets the value ofCfnIndexPropsMixin.PropertyMappingProperty.getIndex()- Parameters:
index- Whether a field should be indexed.- Returns:
this
-
method
@Stability(Stable) public CfnIndexPropsMixin.PropertyMappingProperty.Builder method(IResolvable method) Sets the value ofCfnIndexPropsMixin.PropertyMappingProperty.getMethod()- Parameters:
method- Configuration for k-NN search method.- Returns:
this
-
method
@Stability(Stable) public CfnIndexPropsMixin.PropertyMappingProperty.Builder method(CfnIndexPropsMixin.MethodProperty method) Sets the value ofCfnIndexPropsMixin.PropertyMappingProperty.getMethod()- Parameters:
method- Configuration for k-NN search method.- Returns:
this
-
properties
@Stability(Stable) public CfnIndexPropsMixin.PropertyMappingProperty.Builder properties(IResolvable properties) Sets the value ofCfnIndexPropsMixin.PropertyMappingProperty.getProperties()- Parameters:
properties- Defines the fields within the mapping, including their types and configurations.- Returns:
this
-
properties
@Stability(Stable) public CfnIndexPropsMixin.PropertyMappingProperty.Builder properties(Map<String, ? extends Object> properties) Sets the value ofCfnIndexPropsMixin.PropertyMappingProperty.getProperties()- Parameters:
properties- Defines the fields within the mapping, including their types and configurations.- Returns:
this
-
type
Sets the value ofCfnIndexPropsMixin.PropertyMappingProperty.getType()- Parameters:
type- The field data type. Must be a valid OpenSearch field type.- Returns:
this
-
value
Sets the value ofCfnIndexPropsMixin.PropertyMappingProperty.getValue()- Parameters:
value- Default value for the field when not specified in a document.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnIndexPropsMixin.PropertyMappingProperty>- Returns:
- a new instance of
CfnIndexPropsMixin.PropertyMappingProperty - Throws:
NullPointerException- if any required attribute was not provided
-