@Generated(value="software.amazon.awssdk:codegen") public class SuggestionMatch extends Object implements StructuredPojo, ToCopyableBuilder<SuggestionMatch.Builder,SuggestionMatch>
An autocomplete suggestion that matches the query string specified in a SuggestRequest.
| Modifier and Type | Class and Description |
|---|---|
static interface |
SuggestionMatch.Builder |
| Modifier and Type | Method and Description |
|---|---|
static SuggestionMatch.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
The document ID of the suggested document.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
Long |
score()
The relevance score of a suggested match.
|
static Class<? extends SuggestionMatch.Builder> |
serializableBuilderClass() |
String |
suggestion()
The string that matches the query string specified in the
SuggestRequest. |
SuggestionMatch.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copypublic String suggestion()
The string that matches the query string specified in the SuggestRequest.
SuggestRequest.public Long score()
The relevance score of a suggested match.
public String id()
The document ID of the suggested document.
public SuggestionMatch.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<SuggestionMatch.Builder,SuggestionMatch>public static SuggestionMatch.Builder builder()
public static Class<? extends SuggestionMatch.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.