Class DocumentAttributeBoostingConfiguration
- All Implemented Interfaces:
- Serializable,- SdkPojo,- 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.
In version 2, boosting uses numeric values (ONE, TWO) to indicate priority tiers that establish clear hierarchical relationships between boosted attributes. This allows for more precise control over how different attributes influence search results.
 For STRING and STRING_LIST type 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:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum
- 
Method SummaryModifier and TypeMethodDescriptionbuilder()Provides information on boostingDATEtype document attributes.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.fromDateConfiguration(Consumer<DateAttributeBoostingConfiguration.Builder> dateConfiguration) Create an instance of this class withdateConfiguration()initialized to the given value.fromDateConfiguration(DateAttributeBoostingConfiguration dateConfiguration) Create an instance of this class withdateConfiguration()initialized to the given value.fromNumberConfiguration(Consumer<NumberAttributeBoostingConfiguration.Builder> numberConfiguration) Create an instance of this class withnumberConfiguration()initialized to the given value.fromNumberConfiguration(NumberAttributeBoostingConfiguration numberConfiguration) Create an instance of this class withnumberConfiguration()initialized to the given value.fromStringConfiguration(Consumer<StringAttributeBoostingConfiguration.Builder> stringConfiguration) Create an instance of this class withstringConfiguration()initialized to the given value.fromStringConfiguration(StringAttributeBoostingConfiguration stringConfiguration) Create an instance of this class withstringConfiguration()initialized to the given value.fromStringListConfiguration(Consumer<StringListAttributeBoostingConfiguration.Builder> stringListConfiguration) Create an instance of this class withstringListConfiguration()initialized to the given value.fromStringListConfiguration(StringListAttributeBoostingConfiguration stringListConfiguration) Create an instance of this class withstringListConfiguration()initialized to the given value.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()Provides information on boostingNUMBERtype document attributes.static Class<? extends DocumentAttributeBoostingConfiguration.Builder> Provides information on boostingSTRINGtype document attributes.Provides information on boostingSTRING_LISTtype document attributes.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.type()Retrieve an enum value representing which member of this object is populated.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuildercopy
- 
Method Details- 
numberConfigurationProvides information on boosting NUMBERtype document attributes.NUMBERattributes are not supported when usingNativeIndexConfigurationversion 2, which focuses onDATEattributes for recency andSTRINGattributes for source prioritization.- Returns:
- Provides information on boosting NUMBERtype document attributes.NUMBERattributes are not supported when usingNativeIndexConfigurationversion 2, which focuses onDATEattributes for recency andSTRINGattributes for source prioritization.
 
- 
stringConfigurationProvides information on boosting STRINGtype document attributes.Version 2 assigns priority tiers to STRINGattributes, establishing clear hierarchical relationships with other boosted attributes.- Returns:
- Provides information on boosting STRINGtype document attributes.Version 2 assigns priority tiers to STRINGattributes, establishing clear hierarchical relationships with other boosted attributes.
 
- 
dateConfigurationProvides information on boosting DATEtype document attributes.Version 2 assigns priority tiers to DATEattributes, establishing clear hierarchical relationships with other boosted attributes.- Returns:
- Provides information on boosting DATEtype document attributes.Version 2 assigns priority tiers to DATEattributes, establishing clear hierarchical relationships with other boosted attributes.
 
- 
stringListConfigurationProvides information on boosting STRING_LISTtype document attributes.STRING_LISTattributes are not supported when usingNativeIndexConfigurationversion 2, which focuses onDATEattributes for recency andSTRINGattributes for source prioritization.- Returns:
- Provides information on boosting STRING_LISTtype document attributes.STRING_LISTattributes are not supported when usingNativeIndexConfigurationversion 2, which focuses onDATEattributes for recency andSTRINGattributes for source prioritization.
 
- 
toBuilderDescription copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
- toBuilderin interface- ToCopyableBuilder<DocumentAttributeBoostingConfiguration.Builder,- DocumentAttributeBoostingConfiguration> 
- Returns:
- a builder for type T
 
- 
builder
- 
serializableBuilderClasspublic static Class<? extends DocumentAttributeBoostingConfiguration.Builder> serializableBuilderClass()
- 
hashCode
- 
equals
- 
equalsBySdkFieldsDescription copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
- equalsBySdkFieldsin interface- SdkPojo
- Parameters:
- obj- the object to be compared with
- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
 
- 
toString
- 
getValueForField
- 
fromNumberConfigurationpublic static DocumentAttributeBoostingConfiguration fromNumberConfiguration(NumberAttributeBoostingConfiguration numberConfiguration) Create an instance of this class withnumberConfiguration()initialized to the given value.Provides information on boosting NUMBERtype document attributes.NUMBERattributes are not supported when usingNativeIndexConfigurationversion 2, which focuses onDATEattributes for recency andSTRINGattributes for source prioritization.- Parameters:
- numberConfiguration- Provides information on boosting- NUMBERtype document attributes.- NUMBERattributes are not supported when using- NativeIndexConfigurationversion 2, which focuses on- DATEattributes for recency and- STRINGattributes for source prioritization.
 
- 
fromNumberConfigurationpublic 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.NUMBERattributes are not supported when usingNativeIndexConfigurationversion 2, which focuses onDATEattributes for recency andSTRINGattributes for source prioritization.- Parameters:
- numberConfiguration- Provides information on boosting- NUMBERtype document attributes.- NUMBERattributes are not supported when using- NativeIndexConfigurationversion 2, which focuses on- DATEattributes for recency and- STRINGattributes for source prioritization.
 
- 
fromStringConfigurationpublic static DocumentAttributeBoostingConfiguration fromStringConfiguration(StringAttributeBoostingConfiguration stringConfiguration) Create an instance of this class withstringConfiguration()initialized to the given value.Provides information on boosting STRINGtype document attributes.Version 2 assigns priority tiers to STRINGattributes, establishing clear hierarchical relationships with other boosted attributes.- Parameters:
- stringConfiguration- Provides information on boosting- STRINGtype document attributes.- Version 2 assigns priority tiers to - STRINGattributes, establishing clear hierarchical relationships with other boosted attributes.
 
- 
fromStringConfigurationpublic 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.Version 2 assigns priority tiers to STRINGattributes, establishing clear hierarchical relationships with other boosted attributes.- Parameters:
- stringConfiguration- Provides information on boosting- STRINGtype document attributes.- Version 2 assigns priority tiers to - STRINGattributes, establishing clear hierarchical relationships with other boosted attributes.
 
- 
fromDateConfigurationpublic static DocumentAttributeBoostingConfiguration fromDateConfiguration(DateAttributeBoostingConfiguration dateConfiguration) Create an instance of this class withdateConfiguration()initialized to the given value.Provides information on boosting DATEtype document attributes.Version 2 assigns priority tiers to DATEattributes, establishing clear hierarchical relationships with other boosted attributes.- Parameters:
- dateConfiguration- Provides information on boosting- DATEtype document attributes.- Version 2 assigns priority tiers to - DATEattributes, establishing clear hierarchical relationships with other boosted attributes.
 
- 
fromDateConfigurationpublic 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.Version 2 assigns priority tiers to DATEattributes, establishing clear hierarchical relationships with other boosted attributes.- Parameters:
- dateConfiguration- Provides information on boosting- DATEtype document attributes.- Version 2 assigns priority tiers to - DATEattributes, establishing clear hierarchical relationships with other boosted attributes.
 
- 
fromStringListConfigurationpublic 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.STRING_LISTattributes are not supported when usingNativeIndexConfigurationversion 2, which focuses onDATEattributes for recency andSTRINGattributes for source prioritization.- Parameters:
- stringListConfiguration- Provides information on boosting- STRING_LISTtype document attributes.- STRING_LISTattributes are not supported when using- NativeIndexConfigurationversion 2, which focuses on- DATEattributes for recency and- STRINGattributes for source prioritization.
 
- 
fromStringListConfigurationpublic 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.STRING_LISTattributes are not supported when usingNativeIndexConfigurationversion 2, which focuses onDATEattributes for recency andSTRINGattributes for source prioritization.- Parameters:
- stringListConfiguration- Provides information on boosting- STRING_LISTtype document attributes.- STRING_LISTattributes are not supported when using- NativeIndexConfigurationversion 2, which focuses on- DATEattributes for recency and- STRINGattributes for source prioritization.
 
- 
typeRetrieve 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.
- 
sdkFields
- 
sdkFieldNameToField- Specified by:
- sdkFieldNameToFieldin interface- SdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
 
 
-