@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.
|
String |
getTimeRange()
The inclusive time period that the usage data applies to.
|
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.
|
void |
setTimeRange(String timeRange)
The inclusive time period that the usage data applies to.
|
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.
|
GetUsageStatisticsResult |
withTimeRange(String timeRange)
The inclusive time period that the usage data applies to.
|
GetUsageStatisticsResult |
withTimeRange(TimeRange timeRange)
The inclusive time period that the usage data applies to.
|
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 matches 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 matches 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 matches 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 matches 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 matches 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 matches 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 matches the filter criteria specified in the request.public void setTimeRange(String timeRange)
The inclusive time period that the usage data applies to. Possible values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days.
timeRange
- The inclusive time period that the usage data applies to. Possible values are: MONTH_TO_DATE, for the
current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days.TimeRange
public String getTimeRange()
The inclusive time period that the usage data applies to. Possible values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days.
TimeRange
public GetUsageStatisticsResult withTimeRange(String timeRange)
The inclusive time period that the usage data applies to. Possible values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days.
timeRange
- The inclusive time period that the usage data applies to. Possible values are: MONTH_TO_DATE, for the
current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days.TimeRange
public GetUsageStatisticsResult withTimeRange(TimeRange timeRange)
The inclusive time period that the usage data applies to. Possible values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days.
timeRange
- The inclusive time period that the usage data applies to. Possible values are: MONTH_TO_DATE, for the
current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days.TimeRange
public String toString()
toString
in class Object
Object.toString()
public GetUsageStatisticsResult clone()