Class FeaturedDocument
- java.lang.Object
-
- software.amazon.awssdk.services.kendra.model.FeaturedDocument
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<FeaturedDocument.Builder,FeaturedDocument>
@Generated("software.amazon.awssdk:codegen") public final class FeaturedDocument extends Object implements SdkPojo, Serializable, ToCopyableBuilder<FeaturedDocument.Builder,FeaturedDocument>
A featured document. This document is displayed at the top of the search results page, placed above all other results for certain queries. If there's an exact match of a query, then the document is featured in the search results.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceFeaturedDocument.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FeaturedDocument.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringid()The identifier of the document to feature in the search results.List<SdkField<?>>sdkFields()static Class<? extends FeaturedDocument.Builder>serializableBuilderClass()FeaturedDocument.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
-
id
public final String id()
The identifier of the document to feature in the search results. You can use the Query API to search for specific documents with their document IDs included in the result items, or you can use the console.
- Returns:
- The identifier of the document to feature in the search results. You can use the Query API to search for specific documents with their document IDs included in the result items, or you can use the console.
-
toBuilder
public FeaturedDocument.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<FeaturedDocument.Builder,FeaturedDocument>
-
builder
public static FeaturedDocument.Builder builder()
-
serializableBuilderClass
public static Class<? extends FeaturedDocument.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.
-
-