public class GetStatisticsRequest extends AmazonWebServiceRequest implements java.io.Serializable
Returns the count, average, sum, minimum, maximum, sum of squares, variance,
and standard deviation for the specified aggregated field. If the aggregation
field is of type String
, only the count statistic is returned.
Constructor and Description |
---|
GetStatisticsRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAggregationField()
The aggregation field name.
|
java.lang.String |
getIndexName()
The name of the index to search.
|
java.lang.String |
getQueryString()
The query used to search.
|
java.lang.String |
getQueryVersion()
The version of the query used to search.
|
int |
hashCode() |
void |
setAggregationField(java.lang.String aggregationField)
The aggregation field name.
|
void |
setIndexName(java.lang.String indexName)
The name of the index to search.
|
void |
setQueryString(java.lang.String queryString)
The query used to search.
|
void |
setQueryVersion(java.lang.String queryVersion)
The version of the query used to search.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetStatisticsRequest |
withAggregationField(java.lang.String aggregationField)
The aggregation field name.
|
GetStatisticsRequest |
withIndexName(java.lang.String indexName)
The name of the index to search.
|
GetStatisticsRequest |
withQueryString(java.lang.String queryString)
The query used to search.
|
GetStatisticsRequest |
withQueryVersion(java.lang.String queryVersion)
The version of the query used to search.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getIndexName()
The name of the index to search. The default value is
AWS_Things
.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
The name of the index to search. The default value is
AWS_Things
.
public void setIndexName(java.lang.String indexName)
The name of the index to search. The default value is
AWS_Things
.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
indexName
-
The name of the index to search. The default value is
AWS_Things
.
public GetStatisticsRequest withIndexName(java.lang.String indexName)
The name of the index to search. The default value is
AWS_Things
.
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. The default value is
AWS_Things
.
public java.lang.String getQueryString()
The query used to search. You can specify "*" for the query string to get the count of all indexed things in your AWS account.
Constraints:
Length: 1 -
The query used to search. You can specify "*" for the query string to get the count of all indexed things in your AWS account.
public void setQueryString(java.lang.String queryString)
The query used to search. You can specify "*" for the query string to get the count of all indexed things in your AWS account.
Constraints:
Length: 1 -
queryString
- The query used to search. You can specify "*" for the query string to get the count of all indexed things in your AWS account.
public GetStatisticsRequest withQueryString(java.lang.String queryString)
The query used to search. You can specify "*" for the query string to get the count of all indexed things in your AWS account.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
queryString
- The query used to search. You can specify "*" for the query string to get the count of all indexed things in your AWS account.
public java.lang.String getAggregationField()
The aggregation field name.
Constraints:
Length: 1 -
The aggregation field name.
public void setAggregationField(java.lang.String aggregationField)
The aggregation field name.
Constraints:
Length: 1 -
aggregationField
- The aggregation field name.
public GetStatisticsRequest withAggregationField(java.lang.String aggregationField)
The aggregation field name.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
aggregationField
- The aggregation field name.
public java.lang.String getQueryVersion()
The version of the query used to search.
The version of the query used to search.
public void setQueryVersion(java.lang.String queryVersion)
The version of the query used to search.
queryVersion
- The version of the query used to search.
public GetStatisticsRequest withQueryVersion(java.lang.String queryVersion)
The version of the query used to search.
Returns a reference to this object so that method calls can be chained together.
queryVersion
- The version of the query used to search.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.