@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class QnAKendraConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Contains details about the configuration of the Amazon Kendra index used for the AMAZON.QnAIntent
.
Constructor and Description |
---|
QnAKendraConfiguration() |
Modifier and Type | Method and Description |
---|---|
QnAKendraConfiguration |
clone() |
boolean |
equals(Object obj) |
Boolean |
getExactResponse()
Specifies whether to return an exact response from the Amazon Kendra index or to let the Amazon Bedrock model you
select generate a response based on the results.
|
String |
getKendraIndex()
The ARN of the Amazon Kendra index to use.
|
String |
getQueryFilterString()
Contains the Amazon Kendra filter string to use if enabled.
|
Boolean |
getQueryFilterStringEnabled()
Specifies whether to enable an Amazon Kendra filter string or not.
|
int |
hashCode() |
Boolean |
isExactResponse()
Specifies whether to return an exact response from the Amazon Kendra index or to let the Amazon Bedrock model you
select generate a response based on the results.
|
Boolean |
isQueryFilterStringEnabled()
Specifies whether to enable an Amazon Kendra filter string or not.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setExactResponse(Boolean exactResponse)
Specifies whether to return an exact response from the Amazon Kendra index or to let the Amazon Bedrock model you
select generate a response based on the results.
|
void |
setKendraIndex(String kendraIndex)
The ARN of the Amazon Kendra index to use.
|
void |
setQueryFilterString(String queryFilterString)
Contains the Amazon Kendra filter string to use if enabled.
|
void |
setQueryFilterStringEnabled(Boolean queryFilterStringEnabled)
Specifies whether to enable an Amazon Kendra filter string or not.
|
String |
toString()
Returns a string representation of this object.
|
QnAKendraConfiguration |
withExactResponse(Boolean exactResponse)
Specifies whether to return an exact response from the Amazon Kendra index or to let the Amazon Bedrock model you
select generate a response based on the results.
|
QnAKendraConfiguration |
withKendraIndex(String kendraIndex)
The ARN of the Amazon Kendra index to use.
|
QnAKendraConfiguration |
withQueryFilterString(String queryFilterString)
Contains the Amazon Kendra filter string to use if enabled.
|
QnAKendraConfiguration |
withQueryFilterStringEnabled(Boolean queryFilterStringEnabled)
Specifies whether to enable an Amazon Kendra filter string or not.
|
public void setKendraIndex(String kendraIndex)
The ARN of the Amazon Kendra index to use.
kendraIndex
- The ARN of the Amazon Kendra index to use.public String getKendraIndex()
The ARN of the Amazon Kendra index to use.
public QnAKendraConfiguration withKendraIndex(String kendraIndex)
The ARN of the Amazon Kendra index to use.
kendraIndex
- The ARN of the Amazon Kendra index to use.public void setQueryFilterStringEnabled(Boolean queryFilterStringEnabled)
Specifies whether to enable an Amazon Kendra filter string or not.
queryFilterStringEnabled
- Specifies whether to enable an Amazon Kendra filter string or not.public Boolean getQueryFilterStringEnabled()
Specifies whether to enable an Amazon Kendra filter string or not.
public QnAKendraConfiguration withQueryFilterStringEnabled(Boolean queryFilterStringEnabled)
Specifies whether to enable an Amazon Kendra filter string or not.
queryFilterStringEnabled
- Specifies whether to enable an Amazon Kendra filter string or not.public Boolean isQueryFilterStringEnabled()
Specifies whether to enable an Amazon Kendra filter string or not.
public void setQueryFilterString(String queryFilterString)
Contains the Amazon Kendra filter string to use if enabled. For more information on the Amazon Kendra search filter JSON format, see Using document attributes to filter search results.
queryFilterString
- Contains the Amazon Kendra filter string to use if enabled. For more information on the Amazon Kendra
search filter JSON format, see Using document
attributes to filter search results.public String getQueryFilterString()
Contains the Amazon Kendra filter string to use if enabled. For more information on the Amazon Kendra search filter JSON format, see Using document attributes to filter search results.
public QnAKendraConfiguration withQueryFilterString(String queryFilterString)
Contains the Amazon Kendra filter string to use if enabled. For more information on the Amazon Kendra search filter JSON format, see Using document attributes to filter search results.
queryFilterString
- Contains the Amazon Kendra filter string to use if enabled. For more information on the Amazon Kendra
search filter JSON format, see Using document
attributes to filter search results.public void setExactResponse(Boolean exactResponse)
Specifies whether to return an exact response from the Amazon Kendra index or to let the Amazon Bedrock model you select generate a response based on the results. To use this feature, you must first add FAQ questions to your index by following the steps at Adding frequently asked questions (FAQs) to an index.
exactResponse
- Specifies whether to return an exact response from the Amazon Kendra index or to let the Amazon Bedrock
model you select generate a response based on the results. To use this feature, you must first add FAQ
questions to your index by following the steps at Adding frequently asked questions
(FAQs) to an index.public Boolean getExactResponse()
Specifies whether to return an exact response from the Amazon Kendra index or to let the Amazon Bedrock model you select generate a response based on the results. To use this feature, you must first add FAQ questions to your index by following the steps at Adding frequently asked questions (FAQs) to an index.
public QnAKendraConfiguration withExactResponse(Boolean exactResponse)
Specifies whether to return an exact response from the Amazon Kendra index or to let the Amazon Bedrock model you select generate a response based on the results. To use this feature, you must first add FAQ questions to your index by following the steps at Adding frequently asked questions (FAQs) to an index.
exactResponse
- Specifies whether to return an exact response from the Amazon Kendra index or to let the Amazon Bedrock
model you select generate a response based on the results. To use this feature, you must first add FAQ
questions to your index by following the steps at Adding frequently asked questions
(FAQs) to an index.public Boolean isExactResponse()
Specifies whether to return an exact response from the Amazon Kendra index or to let the Amazon Bedrock model you select generate a response based on the results. To use this feature, you must first add FAQ questions to your index by following the steps at Adding frequently asked questions (FAQs) to an index.
public String toString()
toString
in class Object
Object.toString()
public QnAKendraConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.