Class SuggestRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.cloudsearchdomain.model.SuggestRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class SuggestRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Container for the parameters to the
Suggestrequest.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description SuggestRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SuggestRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetQuery()Specifies the string for which you want to get suggestions.LonggetSize()Specifies the maximum number of suggestions to return.StringgetSuggester()Specifies the name of the suggester to use to find suggested matches.inthashCode()voidsetQuery(String query)Specifies the string for which you want to get suggestions.voidsetSize(Long size)Specifies the maximum number of suggestions to return.voidsetSuggester(String suggester)Specifies the name of the suggester to use to find suggested matches.StringtoString()Returns a string representation of this object; useful for testing and debugging.SuggestRequestwithQuery(String query)Specifies the string for which you want to get suggestions.SuggestRequestwithSize(Long size)Specifies the maximum number of suggestions to return.SuggestRequestwithSuggester(String suggester)Specifies the name of the suggester to use to find suggested matches.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setQuery
public void setQuery(String query)
Specifies the string for which you want to get suggestions.
- Parameters:
query- Specifies the string for which you want to get suggestions.
-
getQuery
public String getQuery()
Specifies the string for which you want to get suggestions.
- Returns:
- Specifies the string for which you want to get suggestions.
-
withQuery
public SuggestRequest withQuery(String query)
Specifies the string for which you want to get suggestions.
- Parameters:
query- Specifies the string for which you want to get suggestions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSuggester
public void setSuggester(String suggester)
Specifies the name of the suggester to use to find suggested matches.
- Parameters:
suggester- Specifies the name of the suggester to use to find suggested matches.
-
getSuggester
public String getSuggester()
Specifies the name of the suggester to use to find suggested matches.
- Returns:
- Specifies the name of the suggester to use to find suggested matches.
-
withSuggester
public SuggestRequest withSuggester(String suggester)
Specifies the name of the suggester to use to find suggested matches.
- Parameters:
suggester- Specifies the name of the suggester to use to find suggested matches.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSize
public void setSize(Long size)
Specifies the maximum number of suggestions to return.
- Parameters:
size- Specifies the maximum number of suggestions to return.
-
getSize
public Long getSize()
Specifies the maximum number of suggestions to return.
- Returns:
- Specifies the maximum number of suggestions to return.
-
withSize
public SuggestRequest withSize(Long size)
Specifies the maximum number of suggestions to return.
- Parameters:
size- Specifies the maximum number of suggestions to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SuggestRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-