Class ResultData
- java.lang.Object
-
- software.amazon.awssdk.services.qconnect.model.ResultData
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ResultData.Builder,ResultData>
@Generated("software.amazon.awssdk:codegen") public final class ResultData extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResultData.Builder,ResultData>
Information about the result.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceResultData.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResultData.Builderbuilder()DataSummarydata()Summary of the recommended content.Documentdocument()The document.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()DoublerelevanceScore()The relevance score of the results.StringresultId()The identifier of the result data.List<SdkField<?>>sdkFields()static Class<? extends ResultData.Builder>serializableBuilderClass()ResultData.BuildertoBuilder()StringtoString()Returns a string representation of this object.QueryResultTypetype()The type of the query result.StringtypeAsString()The type of the query result.-
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
-
data
public final DataSummary data()
Summary of the recommended content.
- Returns:
- Summary of the recommended content.
-
document
public final Document document()
The document.
- Returns:
- The document.
-
relevanceScore
public final Double relevanceScore()
The relevance score of the results.
- Returns:
- The relevance score of the results.
-
resultId
public final String resultId()
The identifier of the result data.
- Returns:
- The identifier of the result data.
-
type
public final QueryResultType type()
The type of the query result.
If the service returns an enum value that is not available in the current SDK version,
typewill returnQueryResultType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of the query result.
- See Also:
QueryResultType
-
typeAsString
public final String typeAsString()
The type of the query result.
If the service returns an enum value that is not available in the current SDK version,
typewill returnQueryResultType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of the query result.
- See Also:
QueryResultType
-
toBuilder
public ResultData.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ResultData.Builder,ResultData>
-
builder
public static ResultData.Builder builder()
-
serializableBuilderClass
public static Class<? extends ResultData.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.
-
-