@Generated(value="software.amazon.awssdk:codegen") public final class SuggestionMatch extends Object implements SdkPojo, Serializable, 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) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
The document ID of the suggested document.
|
Long |
score()
The relevance score of a suggested match.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends SuggestionMatch.Builder> |
serializableBuilderClass() |
String |
suggestion()
The string that matches the query string specified in the
SuggestRequest. |
SuggestionMatch.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String suggestion()
The string that matches the query string specified in the SuggestRequest.
SuggestRequest.public final Long score()
The relevance score of a suggested match.
public final String id()
The document ID of the suggested document.
public SuggestionMatch.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SuggestionMatch.Builder,SuggestionMatch>public static SuggestionMatch.Builder builder()
public static Class<? extends SuggestionMatch.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.