@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CollapseConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Specifies how to group results by document attribute value, and how to display them collapsed/expanded under a designated primary document for each group.
| Constructor and Description |
|---|
CollapseConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
CollapseConfiguration |
clone() |
boolean |
equals(Object obj) |
String |
getDocumentAttributeKey()
The document attribute used to group search results.
|
Boolean |
getExpand()
Specifies whether to expand the collapsed results.
|
ExpandConfiguration |
getExpandConfiguration()
Provides configuration information to customize expansion options for a collapsed group.
|
String |
getMissingAttributeKeyStrategy()
Specifies the behavior for documents without a value for the collapse attribute.
|
List<SortingConfiguration> |
getSortingConfigurations()
A prioritized list of document attributes/fields that determine the primary document among those in a collapsed
group.
|
int |
hashCode() |
Boolean |
isExpand()
Specifies whether to expand the collapsed results.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setDocumentAttributeKey(String documentAttributeKey)
The document attribute used to group search results.
|
void |
setExpand(Boolean expand)
Specifies whether to expand the collapsed results.
|
void |
setExpandConfiguration(ExpandConfiguration expandConfiguration)
Provides configuration information to customize expansion options for a collapsed group.
|
void |
setMissingAttributeKeyStrategy(String missingAttributeKeyStrategy)
Specifies the behavior for documents without a value for the collapse attribute.
|
void |
setSortingConfigurations(Collection<SortingConfiguration> sortingConfigurations)
A prioritized list of document attributes/fields that determine the primary document among those in a collapsed
group.
|
String |
toString()
Returns a string representation of this object.
|
CollapseConfiguration |
withDocumentAttributeKey(String documentAttributeKey)
The document attribute used to group search results.
|
CollapseConfiguration |
withExpand(Boolean expand)
Specifies whether to expand the collapsed results.
|
CollapseConfiguration |
withExpandConfiguration(ExpandConfiguration expandConfiguration)
Provides configuration information to customize expansion options for a collapsed group.
|
CollapseConfiguration |
withMissingAttributeKeyStrategy(MissingAttributeKeyStrategy missingAttributeKeyStrategy)
Specifies the behavior for documents without a value for the collapse attribute.
|
CollapseConfiguration |
withMissingAttributeKeyStrategy(String missingAttributeKeyStrategy)
Specifies the behavior for documents without a value for the collapse attribute.
|
CollapseConfiguration |
withSortingConfigurations(Collection<SortingConfiguration> sortingConfigurations)
A prioritized list of document attributes/fields that determine the primary document among those in a collapsed
group.
|
CollapseConfiguration |
withSortingConfigurations(SortingConfiguration... sortingConfigurations)
A prioritized list of document attributes/fields that determine the primary document among those in a collapsed
group.
|
public void setDocumentAttributeKey(String documentAttributeKey)
The document attribute used to group search results. You can use any attribute 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 document attribute used to group search results. You can use any attribute 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 document attribute used to group search results. You can use any attribute 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 CollapseConfiguration withDocumentAttributeKey(String documentAttributeKey)
The document attribute used to group search results. You can use any attribute 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 document attribute used to group search results. You can use any attribute 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 List<SortingConfiguration> getSortingConfigurations()
A prioritized list of document attributes/fields that determine the primary document among those in a collapsed group.
public void setSortingConfigurations(Collection<SortingConfiguration> sortingConfigurations)
A prioritized list of document attributes/fields that determine the primary document among those in a collapsed group.
sortingConfigurations - A prioritized list of document attributes/fields that determine the primary document among those in a
collapsed group.public CollapseConfiguration withSortingConfigurations(SortingConfiguration... sortingConfigurations)
A prioritized list of document attributes/fields that determine the primary document among those in a collapsed group.
NOTE: This method appends the values to the existing list (if any). Use
setSortingConfigurations(java.util.Collection) or
withSortingConfigurations(java.util.Collection) if you want to override the existing values.
sortingConfigurations - A prioritized list of document attributes/fields that determine the primary document among those in a
collapsed group.public CollapseConfiguration withSortingConfigurations(Collection<SortingConfiguration> sortingConfigurations)
A prioritized list of document attributes/fields that determine the primary document among those in a collapsed group.
sortingConfigurations - A prioritized list of document attributes/fields that determine the primary document among those in a
collapsed group.public void setMissingAttributeKeyStrategy(String missingAttributeKeyStrategy)
Specifies the behavior for documents without a value for the collapse attribute.
Amazon Kendra offers three customization options:
Choose to COLLAPSE all documents with null or missing values in one group. This is the default
configuration.
Choose to IGNORE documents with null or missing values. Ignored documents will not appear in query
results.
Choose to EXPAND each document with a null or missing value into a group of its own.
missingAttributeKeyStrategy - Specifies the behavior for documents without a value for the collapse attribute.
Amazon Kendra offers three customization options:
Choose to COLLAPSE all documents with null or missing values in one group. This is the
default configuration.
Choose to IGNORE documents with null or missing values. Ignored documents will not appear in
query results.
Choose to EXPAND each document with a null or missing value into a group of its own.
MissingAttributeKeyStrategypublic String getMissingAttributeKeyStrategy()
Specifies the behavior for documents without a value for the collapse attribute.
Amazon Kendra offers three customization options:
Choose to COLLAPSE all documents with null or missing values in one group. This is the default
configuration.
Choose to IGNORE documents with null or missing values. Ignored documents will not appear in query
results.
Choose to EXPAND each document with a null or missing value into a group of its own.
Amazon Kendra offers three customization options:
Choose to COLLAPSE all documents with null or missing values in one group. This is the
default configuration.
Choose to IGNORE documents with null or missing values. Ignored documents will not appear in
query results.
Choose to EXPAND each document with a null or missing value into a group of its own.
MissingAttributeKeyStrategypublic CollapseConfiguration withMissingAttributeKeyStrategy(String missingAttributeKeyStrategy)
Specifies the behavior for documents without a value for the collapse attribute.
Amazon Kendra offers three customization options:
Choose to COLLAPSE all documents with null or missing values in one group. This is the default
configuration.
Choose to IGNORE documents with null or missing values. Ignored documents will not appear in query
results.
Choose to EXPAND each document with a null or missing value into a group of its own.
missingAttributeKeyStrategy - Specifies the behavior for documents without a value for the collapse attribute.
Amazon Kendra offers three customization options:
Choose to COLLAPSE all documents with null or missing values in one group. This is the
default configuration.
Choose to IGNORE documents with null or missing values. Ignored documents will not appear in
query results.
Choose to EXPAND each document with a null or missing value into a group of its own.
MissingAttributeKeyStrategypublic CollapseConfiguration withMissingAttributeKeyStrategy(MissingAttributeKeyStrategy missingAttributeKeyStrategy)
Specifies the behavior for documents without a value for the collapse attribute.
Amazon Kendra offers three customization options:
Choose to COLLAPSE all documents with null or missing values in one group. This is the default
configuration.
Choose to IGNORE documents with null or missing values. Ignored documents will not appear in query
results.
Choose to EXPAND each document with a null or missing value into a group of its own.
missingAttributeKeyStrategy - Specifies the behavior for documents without a value for the collapse attribute.
Amazon Kendra offers three customization options:
Choose to COLLAPSE all documents with null or missing values in one group. This is the
default configuration.
Choose to IGNORE documents with null or missing values. Ignored documents will not appear in
query results.
Choose to EXPAND each document with a null or missing value into a group of its own.
MissingAttributeKeyStrategypublic void setExpand(Boolean expand)
Specifies whether to expand the collapsed results.
expand - Specifies whether to expand the collapsed results.public Boolean getExpand()
Specifies whether to expand the collapsed results.
public CollapseConfiguration withExpand(Boolean expand)
Specifies whether to expand the collapsed results.
expand - Specifies whether to expand the collapsed results.public Boolean isExpand()
Specifies whether to expand the collapsed results.
public void setExpandConfiguration(ExpandConfiguration expandConfiguration)
Provides configuration information to customize expansion options for a collapsed group.
expandConfiguration - Provides configuration information to customize expansion options for a collapsed group.public ExpandConfiguration getExpandConfiguration()
Provides configuration information to customize expansion options for a collapsed group.
public CollapseConfiguration withExpandConfiguration(ExpandConfiguration expandConfiguration)
Provides configuration information to customize expansion options for a collapsed group.
expandConfiguration - Provides configuration information to customize expansion options for a collapsed group.public String toString()
toString in class ObjectObject.toString()public CollapseConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.