@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetUsageResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Represents the usage data of a usage plan.
Constructor and Description |
---|
GetUsageResult() |
Modifier and Type | Method and Description |
---|---|
GetUsageResult |
addItemsEntry(String key,
List<List<Long>> value) |
GetUsageResult |
clearItemsEntries()
Removes all the entries added into Items.
|
GetUsageResult |
clone() |
boolean |
equals(Object obj) |
String |
getEndDate()
The ending date of the usage data.
|
Map<String,List<List<Long>>> |
getItems()
The usage data, as daily logs of used and remaining quotas, over the specified time interval indexed over the API
keys in a usage plan.
|
String |
getPosition() |
String |
getStartDate()
The starting date of the usage data.
|
String |
getUsagePlanId()
The plan Id associated with this usage data.
|
int |
hashCode() |
void |
setEndDate(String endDate)
The ending date of the usage data.
|
void |
setItems(Map<String,List<List<Long>>> items)
The usage data, as daily logs of used and remaining quotas, over the specified time interval indexed over the API
keys in a usage plan.
|
void |
setPosition(String position) |
void |
setStartDate(String startDate)
The starting date of the usage data.
|
void |
setUsagePlanId(String usagePlanId)
The plan Id associated with this usage data.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
GetUsageResult |
withEndDate(String endDate)
The ending date of the usage data.
|
GetUsageResult |
withItems(Map<String,List<List<Long>>> items)
The usage data, as daily logs of used and remaining quotas, over the specified time interval indexed over the API
keys in a usage plan.
|
GetUsageResult |
withPosition(String position) |
GetUsageResult |
withStartDate(String startDate)
The starting date of the usage data.
|
GetUsageResult |
withUsagePlanId(String usagePlanId)
The plan Id associated with this usage data.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setUsagePlanId(String usagePlanId)
The plan Id associated with this usage data.
usagePlanId
- The plan Id associated with this usage data.public String getUsagePlanId()
The plan Id associated with this usage data.
public GetUsageResult withUsagePlanId(String usagePlanId)
The plan Id associated with this usage data.
usagePlanId
- The plan Id associated with this usage data.public void setStartDate(String startDate)
The starting date of the usage data.
startDate
- The starting date of the usage data.public String getStartDate()
The starting date of the usage data.
public GetUsageResult withStartDate(String startDate)
The starting date of the usage data.
startDate
- The starting date of the usage data.public void setEndDate(String endDate)
The ending date of the usage data.
endDate
- The ending date of the usage data.public String getEndDate()
The ending date of the usage data.
public GetUsageResult withEndDate(String endDate)
The ending date of the usage data.
endDate
- The ending date of the usage data.public void setPosition(String position)
position
- public String getPosition()
public GetUsageResult withPosition(String position)
position
- public Map<String,List<List<Long>>> getItems()
The usage data, as daily logs of used and remaining quotas, over the specified time interval indexed over the API
keys in a usage plan. For example,
{..., "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}
, where {api_key}
stands for an API key value and the daily log entry is of the format [used quota, remaining quota]
.
{..., "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}
, where
{api_key}
stands for an API key value and the daily log entry is of the format
[used quota, remaining quota]
.public void setItems(Map<String,List<List<Long>>> items)
The usage data, as daily logs of used and remaining quotas, over the specified time interval indexed over the API
keys in a usage plan. For example,
{..., "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}
, where {api_key}
stands for an API key value and the daily log entry is of the format [used quota, remaining quota]
.
items
- The usage data, as daily logs of used and remaining quotas, over the specified time interval indexed over
the API keys in a usage plan. For example,
{..., "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}
, where
{api_key}
stands for an API key value and the daily log entry is of the format
[used quota, remaining quota]
.public GetUsageResult withItems(Map<String,List<List<Long>>> items)
The usage data, as daily logs of used and remaining quotas, over the specified time interval indexed over the API
keys in a usage plan. For example,
{..., "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}
, where {api_key}
stands for an API key value and the daily log entry is of the format [used quota, remaining quota]
.
items
- The usage data, as daily logs of used and remaining quotas, over the specified time interval indexed over
the API keys in a usage plan. For example,
{..., "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}
, where
{api_key}
stands for an API key value and the daily log entry is of the format
[used quota, remaining quota]
.public GetUsageResult addItemsEntry(String key, List<List<Long>> value)
public GetUsageResult clearItemsEntries()
public String toString()
toString
in class Object
Object.toString()
public GetUsageResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.