Class SuggestResult
- java.lang.Object
-
- com.amazonaws.services.cloudsearchdomain.model.SuggestResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class SuggestResult extends Object implements Serializable, Cloneable
Contains the response to a
Suggest
request.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SuggestResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SuggestResult
clone()
boolean
equals(Object obj)
SuggestStatus
getStatus()
The status of aSuggestRequest
.SuggestModel
getSuggest()
Container for the matching search suggestion information.int
hashCode()
void
setStatus(SuggestStatus status)
The status of aSuggestRequest
.void
setSuggest(SuggestModel suggest)
Container for the matching search suggestion information.String
toString()
Returns a string representation of this object; useful for testing and debugging.SuggestResult
withStatus(SuggestStatus status)
The status of aSuggestRequest
.SuggestResult
withSuggest(SuggestModel suggest)
Container for the matching search suggestion information.
-
-
-
Method Detail
-
setStatus
public void setStatus(SuggestStatus status)
The status of a
SuggestRequest
. Contains the resource ID (rid
) and how long it took to process the request (timems
).- Parameters:
status
- The status of aSuggestRequest
. Contains the resource ID (rid
) and how long it took to process the request (timems
).
-
getStatus
public SuggestStatus getStatus()
The status of a
SuggestRequest
. Contains the resource ID (rid
) and how long it took to process the request (timems
).- Returns:
- The status of a
SuggestRequest
. Contains the resource ID (rid
) and how long it took to process the request (timems
).
-
withStatus
public SuggestResult withStatus(SuggestStatus status)
The status of a
SuggestRequest
. Contains the resource ID (rid
) and how long it took to process the request (timems
).- Parameters:
status
- The status of aSuggestRequest
. Contains the resource ID (rid
) and how long it took to process the request (timems
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSuggest
public void setSuggest(SuggestModel suggest)
Container for the matching search suggestion information.
- Parameters:
suggest
- Container for the matching search suggestion information.
-
getSuggest
public SuggestModel getSuggest()
Container for the matching search suggestion information.
- Returns:
- Container for the matching search suggestion information.
-
withSuggest
public SuggestResult withSuggest(SuggestModel suggest)
Container for the matching search suggestion information.
- Parameters:
suggest
- Container for the matching search suggestion information.- 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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SuggestResult clone()
-
-