Interface FacetResult.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<FacetResult.Builder,
,FacetResult> SdkBuilder<FacetResult.Builder,
,FacetResult> SdkPojo
- Enclosing class:
FacetResult
-
Method Summary
Modifier and TypeMethodDescriptiondocumentAttributeKey
(String documentAttributeKey) The key for the facet values.documentAttributeValueCountPairs
(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
(Consumer<DocumentAttributeValueCountPair.Builder>... 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
(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.documentAttributeValueType
(String documentAttributeValueType) The data type of the facet value.documentAttributeValueType
(DocumentAttributeValueType documentAttributeValueType) The data type of the facet value.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
documentAttributeKey
The key for the facet values. This is the same as the
DocumentAttributeKey
provided in the query.- Parameters:
documentAttributeKey
- The key for the facet values. This is the same as theDocumentAttributeKey
provided in the query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentAttributeValueType
The data type of the facet value. This is the same as the type defined for the index field when it was created.
- Parameters:
documentAttributeValueType
- The data type of the facet value. This is the same as the type defined for the index field when it was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
documentAttributeValueType
FacetResult.Builder documentAttributeValueType(DocumentAttributeValueType documentAttributeValueType) The data type of the facet value. This is the same as the type defined for the index field when it was created.
- Parameters:
documentAttributeValueType
- The data type of the facet value. This is the same as the type defined for the index field when it was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
documentAttributeValueCountPairs
FacetResult.Builder documentAttributeValueCountPairs(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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentAttributeValueCountPairs
FacetResult.Builder documentAttributeValueCountPairs(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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentAttributeValueCountPairs
FacetResult.Builder documentAttributeValueCountPairs(Consumer<DocumentAttributeValueCountPair.Builder>... 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.
This is a convenience method that creates an instance of theDocumentAttributeValueCountPair.Builder
avoiding the need to create one manually viaDocumentAttributeValueCountPair.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todocumentAttributeValueCountPairs(List<DocumentAttributeValueCountPair>)
.- Parameters:
documentAttributeValueCountPairs
- a consumer that will call methods onDocumentAttributeValueCountPair.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-