@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SortingConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the document attribute to use to sort the response to a Amazon Kendra query. You can specify a single
attribute for sorting. The attribute must have the Sortable
flag set to true
, otherwise
Amazon Kendra returns an exception.
You can sort attributes of the following types.
Date value
Long value
String value
You can't sort attributes of the following type.
String list value
Constructor and Description |
---|
SortingConfiguration() |
Modifier and Type | Method and Description |
---|---|
SortingConfiguration |
clone() |
boolean |
equals(Object obj) |
String |
getDocumentAttributeKey()
The name of the document attribute used to sort the response.
|
String |
getSortOrder()
The order that the results should be returned in.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDocumentAttributeKey(String documentAttributeKey)
The name of the document attribute used to sort the response.
|
void |
setSortOrder(String sortOrder)
The order that the results should be returned in.
|
String |
toString()
Returns a string representation of this object.
|
SortingConfiguration |
withDocumentAttributeKey(String documentAttributeKey)
The name of the document attribute used to sort the response.
|
SortingConfiguration |
withSortOrder(SortOrder sortOrder)
The order that the results should be returned in.
|
SortingConfiguration |
withSortOrder(String sortOrder)
The order that the results should be returned in.
|
public void setDocumentAttributeKey(String documentAttributeKey)
The name of the document attribute used to sort the response. You can use any field that has the
Sortable
flag set to true.
You can also sort by any of the following built-in attributes:
_category
_created_at
_last_updated_at
_version
_view_count
documentAttributeKey
- The name of the document attribute used to sort the response. You can use any field that has the
Sortable
flag set to true.
You can also sort by any of the following built-in attributes:
_category
_created_at
_last_updated_at
_version
_view_count
public String getDocumentAttributeKey()
The name of the document attribute used to sort the response. You can use any field that has the
Sortable
flag set to true.
You can also sort by any of the following built-in attributes:
_category
_created_at
_last_updated_at
_version
_view_count
Sortable
flag set to true.
You can also sort by any of the following built-in attributes:
_category
_created_at
_last_updated_at
_version
_view_count
public SortingConfiguration withDocumentAttributeKey(String documentAttributeKey)
The name of the document attribute used to sort the response. You can use any field that has the
Sortable
flag set to true.
You can also sort by any of the following built-in attributes:
_category
_created_at
_last_updated_at
_version
_view_count
documentAttributeKey
- The name of the document attribute used to sort the response. You can use any field that has the
Sortable
flag set to true.
You can also sort by any of the following built-in attributes:
_category
_created_at
_last_updated_at
_version
_view_count
public void setSortOrder(String sortOrder)
The order that the results should be returned in. In case of ties, the relevance assigned to the result by Amazon Kendra is used as the tie-breaker.
sortOrder
- The order that the results should be returned in. In case of ties, the relevance assigned to the result by
Amazon Kendra is used as the tie-breaker.SortOrder
public String getSortOrder()
The order that the results should be returned in. In case of ties, the relevance assigned to the result by Amazon Kendra is used as the tie-breaker.
SortOrder
public SortingConfiguration withSortOrder(String sortOrder)
The order that the results should be returned in. In case of ties, the relevance assigned to the result by Amazon Kendra is used as the tie-breaker.
sortOrder
- The order that the results should be returned in. In case of ties, the relevance assigned to the result by
Amazon Kendra is used as the tie-breaker.SortOrder
public SortingConfiguration withSortOrder(SortOrder sortOrder)
The order that the results should be returned in. In case of ties, the relevance assigned to the result by Amazon Kendra is used as the tie-breaker.
sortOrder
- The order that the results should be returned in. In case of ties, the relevance assigned to the result by
Amazon Kendra is used as the tie-breaker.SortOrder
public String toString()
toString
in class Object
Object.toString()
public SortingConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.