@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateUsageResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Represents the usage data of a usage plan.
Constructor and Description |
---|
UpdateUsageResult() |
Modifier and Type | Method and Description |
---|---|
UpdateUsageResult |
addItemsEntry(String key,
List<List<Long>> value)
Add a single Items entry
|
UpdateUsageResult |
clearItemsEntries()
Removes all the entries added into Items.
|
UpdateUsageResult |
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.
|
UpdateUsageResult |
withEndDate(String endDate)
The ending date of the usage data.
|
UpdateUsageResult |
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.
|
UpdateUsageResult |
withPosition(String position) |
UpdateUsageResult |
withStartDate(String startDate)
The starting date of the usage data.
|
UpdateUsageResult |
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 UpdateUsageResult 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 UpdateUsageResult 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 UpdateUsageResult 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 UpdateUsageResult 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 UpdateUsageResult 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 UpdateUsageResult addItemsEntry(String key, List<List<Long>> value)
public UpdateUsageResult clearItemsEntries()
public String toString()
toString
in class Object
Object.toString()
public UpdateUsageResult clone()