* 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. *
*/ private String timeRange; /** ** An array of objects that contains the results of the query. Each object contains the data for a specific usage * metric. *
*/ private java.util.List* 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. *
* * @param 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. * @see TimeRange */ public void setTimeRange(String timeRange) { this.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. *
* * @return 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. * @see TimeRange */ public String getTimeRange() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. * @see TimeRange */ public GetUsageTotalsResult withTimeRange(String timeRange) { setTimeRange(timeRange); return this; } /** ** 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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. * @see TimeRange */ public GetUsageTotalsResult withTimeRange(TimeRange timeRange) { this.timeRange = timeRange.toString(); return this; } /** ** An array of objects that contains the results of the query. Each object contains the data for a specific usage * metric. *
* * @return An array of objects that contains the results of the query. Each object contains the data for a specific * usage metric. */ public java.util.List* An array of objects that contains the results of the query. Each object contains the data for a specific usage * metric. *
* * @param usageTotals * An array of objects that contains the results of the query. Each object contains the data for a specific * usage metric. */ public void setUsageTotals(java.util.Collection* An array of objects that contains the results of the query. Each object contains the data for a specific usage * metric. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setUsageTotals(java.util.Collection)} or {@link #withUsageTotals(java.util.Collection)} if you want to * override the existing values. *
* * @param usageTotals * An array of objects that contains the results of the query. Each object contains the data for a specific * usage metric. * @return Returns a reference to this object so that method calls can be chained together. */ public GetUsageTotalsResult withUsageTotals(UsageTotal... usageTotals) { if (this.usageTotals == null) { setUsageTotals(new java.util.ArrayList* An array of objects that contains the results of the query. Each object contains the data for a specific usage * metric. *
* * @param usageTotals * An array of objects that contains the results of the query. Each object contains the data for a specific * usage metric. * @return Returns a reference to this object so that method calls can be chained together. */ public GetUsageTotalsResult withUsageTotals(java.util.Collection