@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AttributeSuggestionsUpdateConfig extends Object implements Serializable, Cloneable, StructuredPojo
Updates the configuration information for the document fields/attributes that you want to base query suggestions on.
To deactivate using documents fields for query suggestions, set the mode to INACTIVE. You must also set
SuggestionTypes as either QUERY or DOCUMENT_ATTRIBUTES and then call GetQuerySuggestions. If you set
to QUERY, then Amazon Kendra uses the query history to base suggestions on. If you set to
DOCUMENT_ATTRIBUTES, then Amazon Kendra uses the contents of document fields to base suggestions on.
| Constructor and Description |
|---|
AttributeSuggestionsUpdateConfig() |
| Modifier and Type | Method and Description |
|---|---|
AttributeSuggestionsUpdateConfig |
clone() |
boolean |
equals(Object obj) |
String |
getAttributeSuggestionsMode()
You can set the mode to
ACTIVE or INACTIVE. |
List<SuggestableConfig> |
getSuggestableConfigList()
The list of fields/attributes that you want to set as suggestible for query suggestions.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setAttributeSuggestionsMode(String attributeSuggestionsMode)
You can set the mode to
ACTIVE or INACTIVE. |
void |
setSuggestableConfigList(Collection<SuggestableConfig> suggestableConfigList)
The list of fields/attributes that you want to set as suggestible for query suggestions.
|
String |
toString()
Returns a string representation of this object.
|
AttributeSuggestionsUpdateConfig |
withAttributeSuggestionsMode(AttributeSuggestionsMode attributeSuggestionsMode)
You can set the mode to
ACTIVE or INACTIVE. |
AttributeSuggestionsUpdateConfig |
withAttributeSuggestionsMode(String attributeSuggestionsMode)
You can set the mode to
ACTIVE or INACTIVE. |
AttributeSuggestionsUpdateConfig |
withSuggestableConfigList(Collection<SuggestableConfig> suggestableConfigList)
The list of fields/attributes that you want to set as suggestible for query suggestions.
|
AttributeSuggestionsUpdateConfig |
withSuggestableConfigList(SuggestableConfig... suggestableConfigList)
The list of fields/attributes that you want to set as suggestible for query suggestions.
|
public List<SuggestableConfig> getSuggestableConfigList()
The list of fields/attributes that you want to set as suggestible for query suggestions.
public void setSuggestableConfigList(Collection<SuggestableConfig> suggestableConfigList)
The list of fields/attributes that you want to set as suggestible for query suggestions.
suggestableConfigList - The list of fields/attributes that you want to set as suggestible for query suggestions.public AttributeSuggestionsUpdateConfig withSuggestableConfigList(SuggestableConfig... suggestableConfigList)
The list of fields/attributes that you want to set as suggestible for query suggestions.
NOTE: This method appends the values to the existing list (if any). Use
setSuggestableConfigList(java.util.Collection) or
withSuggestableConfigList(java.util.Collection) if you want to override the existing values.
suggestableConfigList - The list of fields/attributes that you want to set as suggestible for query suggestions.public AttributeSuggestionsUpdateConfig withSuggestableConfigList(Collection<SuggestableConfig> suggestableConfigList)
The list of fields/attributes that you want to set as suggestible for query suggestions.
suggestableConfigList - The list of fields/attributes that you want to set as suggestible for query suggestions.public void setAttributeSuggestionsMode(String attributeSuggestionsMode)
You can set the mode to ACTIVE or INACTIVE. You must also set
SuggestionTypes as either QUERY or DOCUMENT_ATTRIBUTES and then call GetQuerySuggestions. If
Mode to use query history is set to ENABLED when calling UpdateQuerySuggestionsConfig and AttributeSuggestionsMode to use fields/attributes is set to
ACTIVE, and you haven't set your SuggestionTypes preference to
DOCUMENT_ATTRIBUTES, then Amazon Kendra uses the query history.
attributeSuggestionsMode - You can set the mode to ACTIVE or INACTIVE. You must also set
SuggestionTypes as either QUERY or DOCUMENT_ATTRIBUTES and then
call GetQuerySuggestions.
If Mode to use query history is set to ENABLED when calling UpdateQuerySuggestionsConfig and AttributeSuggestionsMode to use fields/attributes is
set to ACTIVE, and you haven't set your SuggestionTypes preference to
DOCUMENT_ATTRIBUTES, then Amazon Kendra uses the query history.AttributeSuggestionsModepublic String getAttributeSuggestionsMode()
You can set the mode to ACTIVE or INACTIVE. You must also set
SuggestionTypes as either QUERY or DOCUMENT_ATTRIBUTES and then call GetQuerySuggestions. If
Mode to use query history is set to ENABLED when calling UpdateQuerySuggestionsConfig and AttributeSuggestionsMode to use fields/attributes is set to
ACTIVE, and you haven't set your SuggestionTypes preference to
DOCUMENT_ATTRIBUTES, then Amazon Kendra uses the query history.
ACTIVE or INACTIVE. You must also set
SuggestionTypes as either QUERY or DOCUMENT_ATTRIBUTES and then
call GetQuerySuggestions.
If Mode to use query history is set to ENABLED when calling UpdateQuerySuggestionsConfig and AttributeSuggestionsMode to use fields/attributes is
set to ACTIVE, and you haven't set your SuggestionTypes preference to
DOCUMENT_ATTRIBUTES, then Amazon Kendra uses the query history.AttributeSuggestionsModepublic AttributeSuggestionsUpdateConfig withAttributeSuggestionsMode(String attributeSuggestionsMode)
You can set the mode to ACTIVE or INACTIVE. You must also set
SuggestionTypes as either QUERY or DOCUMENT_ATTRIBUTES and then call GetQuerySuggestions. If
Mode to use query history is set to ENABLED when calling UpdateQuerySuggestionsConfig and AttributeSuggestionsMode to use fields/attributes is set to
ACTIVE, and you haven't set your SuggestionTypes preference to
DOCUMENT_ATTRIBUTES, then Amazon Kendra uses the query history.
attributeSuggestionsMode - You can set the mode to ACTIVE or INACTIVE. You must also set
SuggestionTypes as either QUERY or DOCUMENT_ATTRIBUTES and then
call GetQuerySuggestions.
If Mode to use query history is set to ENABLED when calling UpdateQuerySuggestionsConfig and AttributeSuggestionsMode to use fields/attributes is
set to ACTIVE, and you haven't set your SuggestionTypes preference to
DOCUMENT_ATTRIBUTES, then Amazon Kendra uses the query history.AttributeSuggestionsModepublic AttributeSuggestionsUpdateConfig withAttributeSuggestionsMode(AttributeSuggestionsMode attributeSuggestionsMode)
You can set the mode to ACTIVE or INACTIVE. You must also set
SuggestionTypes as either QUERY or DOCUMENT_ATTRIBUTES and then call GetQuerySuggestions. If
Mode to use query history is set to ENABLED when calling UpdateQuerySuggestionsConfig and AttributeSuggestionsMode to use fields/attributes is set to
ACTIVE, and you haven't set your SuggestionTypes preference to
DOCUMENT_ATTRIBUTES, then Amazon Kendra uses the query history.
attributeSuggestionsMode - You can set the mode to ACTIVE or INACTIVE. You must also set
SuggestionTypes as either QUERY or DOCUMENT_ATTRIBUTES and then
call GetQuerySuggestions.
If Mode to use query history is set to ENABLED when calling UpdateQuerySuggestionsConfig and AttributeSuggestionsMode to use fields/attributes is
set to ACTIVE, and you haven't set your SuggestionTypes preference to
DOCUMENT_ATTRIBUTES, then Amazon Kendra uses the query history.AttributeSuggestionsModepublic String toString()
toString in class ObjectObject.toString()public AttributeSuggestionsUpdateConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.