Class QueryRefinement
- java.lang.Object
-
- software.amazon.awssdk.services.geoplaces.model.QueryRefinement
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<QueryRefinement.Builder,QueryRefinement>
@Generated("software.amazon.awssdk:codegen") public final class QueryRefinement extends Object implements SdkPojo, Serializable, ToCopyableBuilder<QueryRefinement.Builder,QueryRefinement>
Suggestions for refining individual query terms. Suggestions are returned as objects which note the term, suggested replacement, and its index in the query.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceQueryRefinement.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static QueryRefinement.Builderbuilder()IntegerendIndex()End index of the parsed query.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringoriginalTerm()The sub-string of the original query that is replaced by this query term.StringrefinedTerm()The term that will be suggested to the user.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends QueryRefinement.Builder>serializableBuilderClass()IntegerstartIndex()Start index of the parsed component.QueryRefinement.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
-
refinedTerm
public final String refinedTerm()
The term that will be suggested to the user.
- Returns:
- The term that will be suggested to the user.
-
originalTerm
public final String originalTerm()
The sub-string of the original query that is replaced by this query term.
- Returns:
- The sub-string of the original query that is replaced by this query term.
-
startIndex
public final Integer startIndex()
Start index of the parsed component.
- Returns:
- Start index of the parsed component.
-
endIndex
public final Integer endIndex()
End index of the parsed query.
- Returns:
- End index of the parsed query.
-
toBuilder
public QueryRefinement.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<QueryRefinement.Builder,QueryRefinement>
-
builder
public static QueryRefinement.Builder builder()
-
serializableBuilderClass
public static Class<? extends QueryRefinement.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
-
-