@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FacetResult extends Object implements Serializable, Cloneable, StructuredPojo
The facet values for the documents in the response.
Constructor and Description |
---|
FacetResult() |
Modifier and Type | Method and Description |
---|---|
FacetResult |
clone() |
boolean |
equals(Object obj) |
String |
getDocumentAttributeKey()
The key for the facet values.
|
List<DocumentAttributeValueCountPair> |
getDocumentAttributeValueCountPairs()
An array of key/value pairs, where the key is the value of the attribute and the count is the number of documents
that share the key value.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDocumentAttributeKey(String documentAttributeKey)
The key for the facet values.
|
void |
setDocumentAttributeValueCountPairs(Collection<DocumentAttributeValueCountPair> documentAttributeValueCountPairs)
An array of key/value pairs, where the key is the value of the attribute and the count is the number of documents
that share the key value.
|
String |
toString()
Returns a string representation of this object.
|
FacetResult |
withDocumentAttributeKey(String documentAttributeKey)
The key for the facet values.
|
FacetResult |
withDocumentAttributeValueCountPairs(Collection<DocumentAttributeValueCountPair> documentAttributeValueCountPairs)
An array of key/value pairs, where the key is the value of the attribute and the count is the number of documents
that share the key value.
|
FacetResult |
withDocumentAttributeValueCountPairs(DocumentAttributeValueCountPair... documentAttributeValueCountPairs)
An array of key/value pairs, where the key is the value of the attribute and the count is the number of documents
that share the key value.
|
public void setDocumentAttributeKey(String documentAttributeKey)
The key for the facet values. This is the same as the DocumentAttributeKey
provided in the query.
documentAttributeKey
- The key for the facet values. This is the same as the DocumentAttributeKey
provided in the
query.public String getDocumentAttributeKey()
The key for the facet values. This is the same as the DocumentAttributeKey
provided in the query.
DocumentAttributeKey
provided in the
query.public FacetResult withDocumentAttributeKey(String documentAttributeKey)
The key for the facet values. This is the same as the DocumentAttributeKey
provided in the query.
documentAttributeKey
- The key for the facet values. This is the same as the DocumentAttributeKey
provided in the
query.public List<DocumentAttributeValueCountPair> getDocumentAttributeValueCountPairs()
An array of key/value pairs, where the key is the value of the attribute and the count is the number of documents that share the key value.
public void setDocumentAttributeValueCountPairs(Collection<DocumentAttributeValueCountPair> documentAttributeValueCountPairs)
An array of key/value pairs, where the key is the value of the attribute and the count is the number of documents that share the key value.
documentAttributeValueCountPairs
- An array of key/value pairs, where the key is the value of the attribute and the count is the number of
documents that share the key value.public FacetResult withDocumentAttributeValueCountPairs(DocumentAttributeValueCountPair... documentAttributeValueCountPairs)
An array of key/value pairs, where the key is the value of the attribute and the count is the number of documents that share the key value.
NOTE: This method appends the values to the existing list (if any). Use
setDocumentAttributeValueCountPairs(java.util.Collection)
or
withDocumentAttributeValueCountPairs(java.util.Collection)
if you want to override the existing values.
documentAttributeValueCountPairs
- An array of key/value pairs, where the key is the value of the attribute and the count is the number of
documents that share the key value.public FacetResult withDocumentAttributeValueCountPairs(Collection<DocumentAttributeValueCountPair> documentAttributeValueCountPairs)
An array of key/value pairs, where the key is the value of the attribute and the count is the number of documents that share the key value.
documentAttributeValueCountPairs
- An array of key/value pairs, where the key is the value of the attribute and the count is the number of
documents that share the key value.public String toString()
toString
in class Object
Object.toString()
public FacetResult clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.