Class SuggestionMatch
- java.lang.Object
-
- software.amazon.awssdk.services.cloudsearchdomain.model.SuggestionMatch
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SuggestionMatch.Builder,SuggestionMatch>
@Generated("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.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSuggestionMatch.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SuggestionMatch.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringid()The document ID of the suggested document.Longscore()The relevance score of a suggested match.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends SuggestionMatch.Builder>serializableBuilderClass()Stringsuggestion()The string that matches the query string specified in theSuggestRequest.SuggestionMatch.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
suggestion
public final String suggestion()
The string that matches the query string specified in the
SuggestRequest.- Returns:
- The string that matches the query string specified in the
SuggestRequest.
-
score
public final Long score()
The relevance score of a suggested match.
- Returns:
- The relevance score of a suggested match.
-
id
public final String id()
The document ID of the suggested document.
- Returns:
- The document ID of the suggested document.
-
toBuilder
public SuggestionMatch.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SuggestionMatch.Builder,SuggestionMatch>
-
builder
public static SuggestionMatch.Builder builder()
-
serializableBuilderClass
public static Class<? extends SuggestionMatch.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-