Class CfnBotPropsMixin.ExactResponseFieldsProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lex.CfnBotPropsMixin.ExactResponseFieldsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotPropsMixin.ExactResponseFieldsProperty>
- Enclosing interface:
CfnBotPropsMixin.ExactResponseFieldsProperty
@Stability(Stable)
public static final class CfnBotPropsMixin.ExactResponseFieldsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotPropsMixin.ExactResponseFieldsProperty>
A builder for
CfnBotPropsMixin.ExactResponseFieldsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanswerField(String answerField) Sets the value ofCfnBotPropsMixin.ExactResponseFieldsProperty.getAnswerField()build()Builds the configured instance.questionField(String questionField) Sets the value ofCfnBotPropsMixin.ExactResponseFieldsProperty.getQuestionField()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
answerField
@Stability(Stable) public CfnBotPropsMixin.ExactResponseFieldsProperty.Builder answerField(String answerField) Sets the value ofCfnBotPropsMixin.ExactResponseFieldsProperty.getAnswerField()- Parameters:
answerField- The name of the field that contains the answer to the query made to the OpenSearch Service database.- Returns:
this
-
questionField
@Stability(Stable) public CfnBotPropsMixin.ExactResponseFieldsProperty.Builder questionField(String questionField) Sets the value ofCfnBotPropsMixin.ExactResponseFieldsProperty.getQuestionField()- Parameters:
questionField- The name of the field that contains the query made to the OpenSearch Service database.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBotPropsMixin.ExactResponseFieldsProperty>- Returns:
- a new instance of
CfnBotPropsMixin.ExactResponseFieldsProperty - Throws:
NullPointerException- if any required attribute was not provided
-