public class GetCardinalityRequest extends AmazonWebServiceRequest implements Serializable
Returns the approximate count of unique values that match the query.
| Constructor and Description |
|---|
GetCardinalityRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAggregationField()
The field to aggregate.
|
String |
getIndexName()
The name of the index to search.
|
String |
getQueryString()
The search query.
|
String |
getQueryVersion()
The query version.
|
int |
hashCode() |
void |
setAggregationField(String aggregationField)
The field to aggregate.
|
void |
setIndexName(String indexName)
The name of the index to search.
|
void |
setQueryString(String queryString)
The search query.
|
void |
setQueryVersion(String queryVersion)
The query version.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetCardinalityRequest |
withAggregationField(String aggregationField)
The field to aggregate.
|
GetCardinalityRequest |
withIndexName(String indexName)
The name of the index to search.
|
GetCardinalityRequest |
withQueryString(String queryString)
The search query.
|
GetCardinalityRequest |
withQueryVersion(String queryVersion)
The query version.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getIndexName()
The name of the index to search.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
The name of the index to search.
public void setIndexName(String indexName)
The name of the index to search.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
indexName - The name of the index to search.
public GetCardinalityRequest withIndexName(String indexName)
The name of the index to search.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
indexName - The name of the index to search.
public String getQueryString()
The search query.
Constraints:
Length: 1 -
The search query.
public void setQueryString(String queryString)
The search query.
Constraints:
Length: 1 -
queryString - The search query.
public GetCardinalityRequest withQueryString(String queryString)
The search query.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
queryString - The search query.
public String getAggregationField()
The field to aggregate.
Constraints:
Length: 1 -
The field to aggregate.
public void setAggregationField(String aggregationField)
The field to aggregate.
Constraints:
Length: 1 -
aggregationField - The field to aggregate.
public GetCardinalityRequest withAggregationField(String aggregationField)
The field to aggregate.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
aggregationField - The field to aggregate.
public String getQueryVersion()
The query version.
The query version.
public void setQueryVersion(String queryVersion)
The query version.
queryVersion - The query version.
public GetCardinalityRequest withQueryVersion(String queryVersion)
The query version.
Returns a reference to this object so that method calls can be chained together.
queryVersion - The query version.
public String toString()
toString in class ObjectObject.toString()Copyright © 2020. All rights reserved.