Class DocumentAttributeBoostingConfiguration
- java.lang.Object
-
- software.amazon.awssdk.services.qbusiness.model.DocumentAttributeBoostingConfiguration
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DocumentAttributeBoostingConfiguration.Builder,DocumentAttributeBoostingConfiguration>
@Generated("software.amazon.awssdk:codegen") public final class DocumentAttributeBoostingConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DocumentAttributeBoostingConfiguration.Builder,DocumentAttributeBoostingConfiguration>
Provides information on boosting supported Amazon Q Business document attribute types. When an end user chat query matches document attributes that have been boosted, Amazon Q Business prioritizes generating responses from content that matches the boosted document attributes.
For
STRINGandSTRING_LISTtype document attributes to be used for boosting on the console and the API, they must be enabled for search using the DocumentAttributeConfiguration object of the UpdateIndex API. If you haven't enabled searching on these attributes, you can't boost attributes of these data types on either the console or the API.For more information on how boosting document attributes work in Amazon Q Business, see Boosting using document attributes.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDocumentAttributeBoostingConfiguration.Builderstatic classDocumentAttributeBoostingConfiguration.Type
-
Method Summary
-
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
-
numberConfiguration
public final NumberAttributeBoostingConfiguration numberConfiguration()
Provides information on boosting
NUMBERtype document attributes.- Returns:
- Provides information on boosting
NUMBERtype document attributes.
-
stringConfiguration
public final StringAttributeBoostingConfiguration stringConfiguration()
Provides information on boosting
STRINGtype document attributes.- Returns:
- Provides information on boosting
STRINGtype document attributes.
-
dateConfiguration
public final DateAttributeBoostingConfiguration dateConfiguration()
Provides information on boosting
DATEtype document attributes.- Returns:
- Provides information on boosting
DATEtype document attributes.
-
stringListConfiguration
public final StringListAttributeBoostingConfiguration stringListConfiguration()
Provides information on boosting
STRING_LISTtype document attributes.- Returns:
- Provides information on boosting
STRING_LISTtype document attributes.
-
toBuilder
public DocumentAttributeBoostingConfiguration.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DocumentAttributeBoostingConfiguration.Builder,DocumentAttributeBoostingConfiguration>
-
builder
public static DocumentAttributeBoostingConfiguration.Builder builder()
-
serializableBuilderClass
public static Class<? extends DocumentAttributeBoostingConfiguration.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.
-
fromNumberConfiguration
public static DocumentAttributeBoostingConfiguration fromNumberConfiguration(NumberAttributeBoostingConfiguration numberConfiguration)
Create an instance of this class withnumberConfiguration()initialized to the given value.Provides information on boosting
NUMBERtype document attributes.- Parameters:
numberConfiguration- Provides information on boostingNUMBERtype document attributes.
-
fromNumberConfiguration
public static DocumentAttributeBoostingConfiguration fromNumberConfiguration(Consumer<NumberAttributeBoostingConfiguration.Builder> numberConfiguration)
Create an instance of this class withnumberConfiguration()initialized to the given value.Provides information on boosting
NUMBERtype document attributes.- Parameters:
numberConfiguration- Provides information on boostingNUMBERtype document attributes.
-
fromStringConfiguration
public static DocumentAttributeBoostingConfiguration fromStringConfiguration(StringAttributeBoostingConfiguration stringConfiguration)
Create an instance of this class withstringConfiguration()initialized to the given value.Provides information on boosting
STRINGtype document attributes.- Parameters:
stringConfiguration- Provides information on boostingSTRINGtype document attributes.
-
fromStringConfiguration
public static DocumentAttributeBoostingConfiguration fromStringConfiguration(Consumer<StringAttributeBoostingConfiguration.Builder> stringConfiguration)
Create an instance of this class withstringConfiguration()initialized to the given value.Provides information on boosting
STRINGtype document attributes.- Parameters:
stringConfiguration- Provides information on boostingSTRINGtype document attributes.
-
fromDateConfiguration
public static DocumentAttributeBoostingConfiguration fromDateConfiguration(DateAttributeBoostingConfiguration dateConfiguration)
Create an instance of this class withdateConfiguration()initialized to the given value.Provides information on boosting
DATEtype document attributes.- Parameters:
dateConfiguration- Provides information on boostingDATEtype document attributes.
-
fromDateConfiguration
public static DocumentAttributeBoostingConfiguration fromDateConfiguration(Consumer<DateAttributeBoostingConfiguration.Builder> dateConfiguration)
Create an instance of this class withdateConfiguration()initialized to the given value.Provides information on boosting
DATEtype document attributes.- Parameters:
dateConfiguration- Provides information on boostingDATEtype document attributes.
-
fromStringListConfiguration
public static DocumentAttributeBoostingConfiguration fromStringListConfiguration(StringListAttributeBoostingConfiguration stringListConfiguration)
Create an instance of this class withstringListConfiguration()initialized to the given value.Provides information on boosting
STRING_LISTtype document attributes.- Parameters:
stringListConfiguration- Provides information on boostingSTRING_LISTtype document attributes.
-
fromStringListConfiguration
public static DocumentAttributeBoostingConfiguration fromStringListConfiguration(Consumer<StringListAttributeBoostingConfiguration.Builder> stringListConfiguration)
Create an instance of this class withstringListConfiguration()initialized to the given value.Provides information on boosting
STRING_LISTtype document attributes.- Parameters:
stringListConfiguration- Provides information on boostingSTRING_LISTtype document attributes.
-
type
public DocumentAttributeBoostingConfiguration.Type type()
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beDocumentAttributeBoostingConfiguration.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beDocumentAttributeBoostingConfiguration.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-