@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class StringAttributeBoostingConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Provides information on boosting STRING type document attributes.
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.
| Constructor and Description |
|---|
StringAttributeBoostingConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
StringAttributeBoostingConfiguration |
addAttributeValueBoostingEntry(String key,
String value)
Add a single AttributeValueBoosting entry
|
StringAttributeBoostingConfiguration |
clearAttributeValueBoostingEntries()
Removes all the entries added into AttributeValueBoosting.
|
StringAttributeBoostingConfiguration |
clone() |
boolean |
equals(Object obj) |
Map<String,String> |
getAttributeValueBoosting()
Specifies specific values of a
STRING type document attribute being boosted. |
String |
getBoostingLevel()
Specifies how much a document attribute is boosted.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setAttributeValueBoosting(Map<String,String> attributeValueBoosting)
Specifies specific values of a
STRING type document attribute being boosted. |
void |
setBoostingLevel(String boostingLevel)
Specifies how much a document attribute is boosted.
|
String |
toString()
Returns a string representation of this object.
|
StringAttributeBoostingConfiguration |
withAttributeValueBoosting(Map<String,String> attributeValueBoosting)
Specifies specific values of a
STRING type document attribute being boosted. |
StringAttributeBoostingConfiguration |
withBoostingLevel(DocumentAttributeBoostingLevel boostingLevel)
Specifies how much a document attribute is boosted.
|
StringAttributeBoostingConfiguration |
withBoostingLevel(String boostingLevel)
Specifies how much a document attribute is boosted.
|
public StringAttributeBoostingConfiguration()
public void setBoostingLevel(String boostingLevel)
Specifies how much a document attribute is boosted.
boostingLevel - Specifies how much a document attribute is boosted.DocumentAttributeBoostingLevelpublic String getBoostingLevel()
Specifies how much a document attribute is boosted.
DocumentAttributeBoostingLevelpublic StringAttributeBoostingConfiguration withBoostingLevel(String boostingLevel)
Specifies how much a document attribute is boosted.
boostingLevel - Specifies how much a document attribute is boosted.DocumentAttributeBoostingLevelpublic StringAttributeBoostingConfiguration withBoostingLevel(DocumentAttributeBoostingLevel boostingLevel)
Specifies how much a document attribute is boosted.
boostingLevel - Specifies how much a document attribute is boosted.DocumentAttributeBoostingLevelpublic Map<String,String> getAttributeValueBoosting()
Specifies specific values of a STRING type document attribute being boosted.
STRING type document attribute being boosted.public void setAttributeValueBoosting(Map<String,String> attributeValueBoosting)
Specifies specific values of a STRING type document attribute being boosted.
attributeValueBoosting - Specifies specific values of a STRING type document attribute being boosted.public StringAttributeBoostingConfiguration withAttributeValueBoosting(Map<String,String> attributeValueBoosting)
Specifies specific values of a STRING type document attribute being boosted.
attributeValueBoosting - Specifies specific values of a STRING type document attribute being boosted.public StringAttributeBoostingConfiguration addAttributeValueBoostingEntry(String key, String value)
public StringAttributeBoostingConfiguration clearAttributeValueBoostingEntries()
public String toString()
toString in class ObjectObject.toString()public StringAttributeBoostingConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.