@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Suggestion extends Object implements Serializable, Cloneable, StructuredPojo
A single query suggestion.
Constructor and Description |
---|
Suggestion() |
Modifier and Type | Method and Description |
---|---|
Suggestion |
clone() |
boolean |
equals(Object obj) |
String |
getId()
The UUID (universally unique identifier) of a single query suggestion.
|
List<SourceDocument> |
getSourceDocuments()
The list of document IDs and their fields/attributes that are used for a single query suggestion, if document
fields set to use for query suggestions.
|
SuggestionValue |
getValue()
The value for the UUID (universally unique identifier) of a single query suggestion.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setId(String id)
The UUID (universally unique identifier) of a single query suggestion.
|
void |
setSourceDocuments(Collection<SourceDocument> sourceDocuments)
The list of document IDs and their fields/attributes that are used for a single query suggestion, if document
fields set to use for query suggestions.
|
void |
setValue(SuggestionValue value)
The value for the UUID (universally unique identifier) of a single query suggestion.
|
String |
toString()
Returns a string representation of this object.
|
Suggestion |
withId(String id)
The UUID (universally unique identifier) of a single query suggestion.
|
Suggestion |
withSourceDocuments(Collection<SourceDocument> sourceDocuments)
The list of document IDs and their fields/attributes that are used for a single query suggestion, if document
fields set to use for query suggestions.
|
Suggestion |
withSourceDocuments(SourceDocument... sourceDocuments)
The list of document IDs and their fields/attributes that are used for a single query suggestion, if document
fields set to use for query suggestions.
|
Suggestion |
withValue(SuggestionValue value)
The value for the UUID (universally unique identifier) of a single query suggestion.
|
public void setId(String id)
The UUID (universally unique identifier) of a single query suggestion.
id
- The UUID (universally unique identifier) of a single query suggestion.public String getId()
The UUID (universally unique identifier) of a single query suggestion.
public Suggestion withId(String id)
The UUID (universally unique identifier) of a single query suggestion.
id
- The UUID (universally unique identifier) of a single query suggestion.public void setValue(SuggestionValue value)
The value for the UUID (universally unique identifier) of a single query suggestion.
The value is the text string of a suggestion.
value
- The value for the UUID (universally unique identifier) of a single query suggestion.
The value is the text string of a suggestion.
public SuggestionValue getValue()
The value for the UUID (universally unique identifier) of a single query suggestion.
The value is the text string of a suggestion.
The value is the text string of a suggestion.
public Suggestion withValue(SuggestionValue value)
The value for the UUID (universally unique identifier) of a single query suggestion.
The value is the text string of a suggestion.
value
- The value for the UUID (universally unique identifier) of a single query suggestion.
The value is the text string of a suggestion.
public List<SourceDocument> getSourceDocuments()
The list of document IDs and their fields/attributes that are used for a single query suggestion, if document fields set to use for query suggestions.
public void setSourceDocuments(Collection<SourceDocument> sourceDocuments)
The list of document IDs and their fields/attributes that are used for a single query suggestion, if document fields set to use for query suggestions.
sourceDocuments
- The list of document IDs and their fields/attributes that are used for a single query suggestion, if
document fields set to use for query suggestions.public Suggestion withSourceDocuments(SourceDocument... sourceDocuments)
The list of document IDs and their fields/attributes that are used for a single query suggestion, if document fields set to use for query suggestions.
NOTE: This method appends the values to the existing list (if any). Use
setSourceDocuments(java.util.Collection)
or withSourceDocuments(java.util.Collection)
if you
want to override the existing values.
sourceDocuments
- The list of document IDs and their fields/attributes that are used for a single query suggestion, if
document fields set to use for query suggestions.public Suggestion withSourceDocuments(Collection<SourceDocument> sourceDocuments)
The list of document IDs and their fields/attributes that are used for a single query suggestion, if document fields set to use for query suggestions.
sourceDocuments
- The list of document IDs and their fields/attributes that are used for a single query suggestion, if
document fields set to use for query suggestions.public String toString()
toString
in class Object
Object.toString()
public Suggestion clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.