Class CfnBotPropsMixin.OpensearchConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lex.CfnBotPropsMixin.OpensearchConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotPropsMixin.OpensearchConfigurationProperty>
- Enclosing interface:
CfnBotPropsMixin.OpensearchConfigurationProperty
@Stability(Stable)
public static final class CfnBotPropsMixin.OpensearchConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotPropsMixin.OpensearchConfigurationProperty>
A builder for
CfnBotPropsMixin.OpensearchConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.domainEndpoint(String domainEndpoint) Sets the value ofCfnBotPropsMixin.OpensearchConfigurationProperty.getDomainEndpoint()exactResponse(Boolean exactResponse) Sets the value ofCfnBotPropsMixin.OpensearchConfigurationProperty.getExactResponse()exactResponse(IResolvable exactResponse) Sets the value ofCfnBotPropsMixin.OpensearchConfigurationProperty.getExactResponse()exactResponseFields(CfnBotPropsMixin.ExactResponseFieldsProperty exactResponseFields) exactResponseFields(IResolvable exactResponseFields) includeFields(List<String> includeFields) Sets the value ofCfnBotPropsMixin.OpensearchConfigurationProperty.getIncludeFields()Sets the value ofCfnBotPropsMixin.OpensearchConfigurationProperty.getIndexName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
domainEndpoint
@Stability(Stable) public CfnBotPropsMixin.OpensearchConfigurationProperty.Builder domainEndpoint(String domainEndpoint) Sets the value ofCfnBotPropsMixin.OpensearchConfigurationProperty.getDomainEndpoint()- Parameters:
domainEndpoint- The endpoint of the Amazon OpenSearch Service domain.- Returns:
this
-
exactResponse
@Stability(Stable) public CfnBotPropsMixin.OpensearchConfigurationProperty.Builder exactResponse(Boolean exactResponse) Sets the value ofCfnBotPropsMixin.OpensearchConfigurationProperty.getExactResponse()- Parameters:
exactResponse- Specifies whether to return an exact response or to return an answer generated by the model using the fields you specify from the database.- Returns:
this
-
exactResponse
@Stability(Stable) public CfnBotPropsMixin.OpensearchConfigurationProperty.Builder exactResponse(IResolvable exactResponse) Sets the value ofCfnBotPropsMixin.OpensearchConfigurationProperty.getExactResponse()- Parameters:
exactResponse- Specifies whether to return an exact response or to return an answer generated by the model using the fields you specify from the database.- Returns:
this
-
exactResponseFields
@Stability(Stable) public CfnBotPropsMixin.OpensearchConfigurationProperty.Builder exactResponseFields(IResolvable exactResponseFields) - Parameters:
exactResponseFields- Contains the names of the fields used for an exact response to the user.- Returns:
this
-
exactResponseFields
@Stability(Stable) public CfnBotPropsMixin.OpensearchConfigurationProperty.Builder exactResponseFields(CfnBotPropsMixin.ExactResponseFieldsProperty exactResponseFields) - Parameters:
exactResponseFields- Contains the names of the fields used for an exact response to the user.- Returns:
this
-
includeFields
@Stability(Stable) public CfnBotPropsMixin.OpensearchConfigurationProperty.Builder includeFields(List<String> includeFields) Sets the value ofCfnBotPropsMixin.OpensearchConfigurationProperty.getIncludeFields()- Parameters:
includeFields- Contains a list of fields from the Amazon OpenSearch Service that the model can use to generate the answer to the query.- Returns:
this
-
indexName
@Stability(Stable) public CfnBotPropsMixin.OpensearchConfigurationProperty.Builder indexName(String indexName) Sets the value ofCfnBotPropsMixin.OpensearchConfigurationProperty.getIndexName()- Parameters:
indexName- The name of the Amazon OpenSearch Service index.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBotPropsMixin.OpensearchConfigurationProperty>- Returns:
- a new instance of
CfnBotPropsMixin.OpensearchConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-