Class SuggestResultItem
- java.lang.Object
-
- software.amazon.awssdk.services.geoplaces.model.SuggestResultItem
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SuggestResultItem.Builder,SuggestResultItem>
@Generated("software.amazon.awssdk:codegen") public final class SuggestResultItem extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SuggestResultItem.Builder,SuggestResultItem>
The resulting item from the suggested query.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSuggestResultItem.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SuggestResultItem.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()SuggestHighlightshighlights()Describes how the parts of the response element matched the input query by returning the sections of the response which matched to input query terms.SuggestPlaceResultplace()The suggested place by its unique ID.SuggestQueryResultquery()Returns the value of the Query property for this object.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends SuggestResultItem.Builder>serializableBuilderClass()SuggestResultItemTypesuggestResultItemType()The result type.StringsuggestResultItemTypeAsString()The result type.Stringtitle()The display title that should be used when presenting this option to the end user.SuggestResultItem.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
-
title
public final String title()
The display title that should be used when presenting this option to the end user.
- Returns:
- The display title that should be used when presenting this option to the end user.
-
suggestResultItemType
public final SuggestResultItemType suggestResultItemType()
The result type. Place results represent the final result for a point of interest, Query results represent a follow up query which can be completed through the SearchText operation.
If the service returns an enum value that is not available in the current SDK version,
suggestResultItemTypewill returnSuggestResultItemType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsuggestResultItemTypeAsString().- Returns:
- The result type. Place results represent the final result for a point of interest, Query results represent a follow up query which can be completed through the SearchText operation.
- See Also:
SuggestResultItemType
-
suggestResultItemTypeAsString
public final String suggestResultItemTypeAsString()
The result type. Place results represent the final result for a point of interest, Query results represent a follow up query which can be completed through the SearchText operation.
If the service returns an enum value that is not available in the current SDK version,
suggestResultItemTypewill returnSuggestResultItemType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsuggestResultItemTypeAsString().- Returns:
- The result type. Place results represent the final result for a point of interest, Query results represent a follow up query which can be completed through the SearchText operation.
- See Also:
SuggestResultItemType
-
place
public final SuggestPlaceResult place()
The suggested place by its unique ID.
- Returns:
- The suggested place by its unique ID.
-
query
public final SuggestQueryResult query()
Returns the value of the Query property for this object.- Returns:
- The value of the Query property for this object.
-
highlights
public final SuggestHighlights highlights()
Describes how the parts of the response element matched the input query by returning the sections of the response which matched to input query terms.
- Returns:
- Describes how the parts of the response element matched the input query by returning the sections of the response which matched to input query terms.
-
toBuilder
public SuggestResultItem.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SuggestResultItem.Builder,SuggestResultItem>
-
builder
public static SuggestResultItem.Builder builder()
-
serializableBuilderClass
public static Class<? extends SuggestResultItem.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
-
-