@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetUsageStatisticsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetUsageStatisticsResult() |
Modifier and Type | Method and Description |
---|---|
GetUsageStatisticsResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
The string to use in a subsequent request to get the next page of results in a paginated response.
|
List<UsageRecord> |
getRecords()
An array of objects that contains the results of the query.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
The string to use in a subsequent request to get the next page of results in a paginated response.
|
void |
setRecords(Collection<UsageRecord> records)
An array of objects that contains the results of the query.
|
String |
toString()
Returns a string representation of this object.
|
GetUsageStatisticsResult |
withNextToken(String nextToken)
The string to use in a subsequent request to get the next page of results in a paginated response.
|
GetUsageStatisticsResult |
withRecords(Collection<UsageRecord> records)
An array of objects that contains the results of the query.
|
GetUsageStatisticsResult |
withRecords(UsageRecord... records)
An array of objects that contains the results of the query.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setNextToken(String nextToken)
The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.
nextToken
- The string to use in a subsequent request to get the next page of results in a paginated response. This
value is null if there are no additional pages.public String getNextToken()
The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.
public GetUsageStatisticsResult withNextToken(String nextToken)
The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.
nextToken
- The string to use in a subsequent request to get the next page of results in a paginated response. This
value is null if there are no additional pages.public List<UsageRecord> getRecords()
An array of objects that contains the results of the query. Each object contains the data for an account that meets the filter criteria specified in the request.
public void setRecords(Collection<UsageRecord> records)
An array of objects that contains the results of the query. Each object contains the data for an account that meets the filter criteria specified in the request.
records
- An array of objects that contains the results of the query. Each object contains the data for an account
that meets the filter criteria specified in the request.public GetUsageStatisticsResult withRecords(UsageRecord... records)
An array of objects that contains the results of the query. Each object contains the data for an account that meets the filter criteria specified in the request.
NOTE: This method appends the values to the existing list (if any). Use
setRecords(java.util.Collection)
or withRecords(java.util.Collection)
if you want to override
the existing values.
records
- An array of objects that contains the results of the query. Each object contains the data for an account
that meets the filter criteria specified in the request.public GetUsageStatisticsResult withRecords(Collection<UsageRecord> records)
An array of objects that contains the results of the query. Each object contains the data for an account that meets the filter criteria specified in the request.
records
- An array of objects that contains the results of the query. Each object contains the data for an account
that meets the filter criteria specified in the request.public String toString()
toString
in class Object
Object.toString()
public GetUsageStatisticsResult clone()