Interface FacetResult.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<FacetResult.Builder,FacetResult>,SdkBuilder<FacetResult.Builder,FacetResult>,SdkPojo
- Enclosing class:
- FacetResult
public static interface FacetResult.Builder extends SdkPojo, CopyableBuilder<FacetResult.Builder,FacetResult>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FacetResult.BuilderdocumentAttributeKey(String documentAttributeKey)The key for the facet values.FacetResult.BuilderdocumentAttributeValueCountPairs(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.BuilderdocumentAttributeValueCountPairs(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.FacetResult.BuilderdocumentAttributeValueCountPairs(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.BuilderdocumentAttributeValueType(String documentAttributeValueType)The data type of the facet value.FacetResult.BuilderdocumentAttributeValueType(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 Detail
-
documentAttributeKey
FacetResult.Builder documentAttributeKey(String documentAttributeKey)
The key for the facet values. This is the same as the
DocumentAttributeKeyprovided in the query.- Parameters:
documentAttributeKey- The key for the facet values. This is the same as theDocumentAttributeKeyprovided in the query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentAttributeValueType
FacetResult.Builder documentAttributeValueType(String 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,DocumentAttributeValueType
-
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:
DocumentAttributeValueType,DocumentAttributeValueType
-
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.Builderavoiding the need to create one manually viaDocumentAttributeValueCountPair.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#documentAttributeValueCountPairs(List.) - 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:
#documentAttributeValueCountPairs(java.util.Collection)
-
-