@Generated(value="software.amazon.awssdk:codegen") public final class SortingConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SortingConfiguration.Builder,SortingConfiguration>
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
| Modifier and Type | Class and Description |
|---|---|
static interface |
SortingConfiguration.Builder |
| Modifier and Type | Method and Description |
|---|---|
static SortingConfiguration.Builder |
builder() |
String |
documentAttributeKey()
The name of the document attribute used to sort the response.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends SortingConfiguration.Builder> |
serializableBuilderClass() |
SortOrder |
sortOrder()
The order that the results should be returned in.
|
String |
sortOrderAsString()
The order that the results should be returned in.
|
SortingConfiguration.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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
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 final 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.
If the service returns an enum value that is not available in the current SDK version, sortOrder will
return SortOrder.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
sortOrderAsString().
SortOrderpublic final String sortOrderAsString()
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.
If the service returns an enum value that is not available in the current SDK version, sortOrder will
return SortOrder.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
sortOrderAsString().
SortOrderpublic SortingConfiguration.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SortingConfiguration.Builder,SortingConfiguration>public static SortingConfiguration.Builder builder()
public static Class<? extends SortingConfiguration.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.