@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetQuerySuggestionsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
GetQuerySuggestionsRequest() |
Modifier and Type | Method and Description |
---|---|
GetQuerySuggestionsRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getIndexId()
The identifier of the index you want to get query suggestions from.
|
Integer |
getMaxSuggestionsCount()
The maximum number of query suggestions you want to show to your users.
|
String |
getQueryText()
The text of a user's query to generate query suggestions.
|
int |
hashCode() |
void |
setIndexId(String indexId)
The identifier of the index you want to get query suggestions from.
|
void |
setMaxSuggestionsCount(Integer maxSuggestionsCount)
The maximum number of query suggestions you want to show to your users.
|
void |
setQueryText(String queryText)
The text of a user's query to generate query suggestions.
|
String |
toString()
Returns a string representation of this object.
|
GetQuerySuggestionsRequest |
withIndexId(String indexId)
The identifier of the index you want to get query suggestions from.
|
GetQuerySuggestionsRequest |
withMaxSuggestionsCount(Integer maxSuggestionsCount)
The maximum number of query suggestions you want to show to your users.
|
GetQuerySuggestionsRequest |
withQueryText(String queryText)
The text of a user's query to generate query suggestions.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setIndexId(String indexId)
The identifier of the index you want to get query suggestions from.
indexId
- The identifier of the index you want to get query suggestions from.public String getIndexId()
The identifier of the index you want to get query suggestions from.
public GetQuerySuggestionsRequest withIndexId(String indexId)
The identifier of the index you want to get query suggestions from.
indexId
- The identifier of the index you want to get query suggestions from.public void setQueryText(String queryText)
The text of a user's query to generate query suggestions.
A query is suggested if the query prefix matches what a user starts to type as their query.
Amazon Kendra does not show any suggestions if a user types fewer than two characters or more than 60 characters. A query must also have at least one search result and contain at least one word of more than four characters.
queryText
- The text of a user's query to generate query suggestions.
A query is suggested if the query prefix matches what a user starts to type as their query.
Amazon Kendra does not show any suggestions if a user types fewer than two characters or more than 60 characters. A query must also have at least one search result and contain at least one word of more than four characters.
public String getQueryText()
The text of a user's query to generate query suggestions.
A query is suggested if the query prefix matches what a user starts to type as their query.
Amazon Kendra does not show any suggestions if a user types fewer than two characters or more than 60 characters. A query must also have at least one search result and contain at least one word of more than four characters.
A query is suggested if the query prefix matches what a user starts to type as their query.
Amazon Kendra does not show any suggestions if a user types fewer than two characters or more than 60 characters. A query must also have at least one search result and contain at least one word of more than four characters.
public GetQuerySuggestionsRequest withQueryText(String queryText)
The text of a user's query to generate query suggestions.
A query is suggested if the query prefix matches what a user starts to type as their query.
Amazon Kendra does not show any suggestions if a user types fewer than two characters or more than 60 characters. A query must also have at least one search result and contain at least one word of more than four characters.
queryText
- The text of a user's query to generate query suggestions.
A query is suggested if the query prefix matches what a user starts to type as their query.
Amazon Kendra does not show any suggestions if a user types fewer than two characters or more than 60 characters. A query must also have at least one search result and contain at least one word of more than four characters.
public void setMaxSuggestionsCount(Integer maxSuggestionsCount)
The maximum number of query suggestions you want to show to your users.
maxSuggestionsCount
- The maximum number of query suggestions you want to show to your users.public Integer getMaxSuggestionsCount()
The maximum number of query suggestions you want to show to your users.
public GetQuerySuggestionsRequest withMaxSuggestionsCount(Integer maxSuggestionsCount)
The maximum number of query suggestions you want to show to your users.
maxSuggestionsCount
- The maximum number of query suggestions you want to show to your users.public String toString()
toString
in class Object
Object.toString()
public GetQuerySuggestionsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()