@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetUsageRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
The GET request to get the usage data of a usage plan in a specified time interval.
NOOP
Constructor and Description |
---|
GetUsageRequest() |
Modifier and Type | Method and Description |
---|---|
GetUsageRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getEndDate()
The ending date (e.g., 2016-12-31) of the usage data.
|
String |
getKeyId()
The Id of the API key associated with the resultant usage data.
|
Integer |
getLimit()
The maximum number of returned results per page.
|
String |
getPosition()
The current pagination position in the paged result set.
|
String |
getStartDate()
The starting date (e.g., 2016-01-01) of the usage data.
|
String |
getUsagePlanId()
The Id of the usage plan associated with the usage data.
|
int |
hashCode() |
void |
setEndDate(String endDate)
The ending date (e.g., 2016-12-31) of the usage data.
|
void |
setKeyId(String keyId)
The Id of the API key associated with the resultant usage data.
|
void |
setLimit(Integer limit)
The maximum number of returned results per page.
|
void |
setPosition(String position)
The current pagination position in the paged result set.
|
void |
setStartDate(String startDate)
The starting date (e.g., 2016-01-01) of the usage data.
|
void |
setUsagePlanId(String usagePlanId)
The Id of the usage plan associated with the usage data.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
GetUsageRequest |
withEndDate(String endDate)
The ending date (e.g., 2016-12-31) of the usage data.
|
GetUsageRequest |
withKeyId(String keyId)
The Id of the API key associated with the resultant usage data.
|
GetUsageRequest |
withLimit(Integer limit)
The maximum number of returned results per page.
|
GetUsageRequest |
withPosition(String position)
The current pagination position in the paged result set.
|
GetUsageRequest |
withStartDate(String startDate)
The starting date (e.g., 2016-01-01) of the usage data.
|
GetUsageRequest |
withUsagePlanId(String usagePlanId)
The Id of the usage plan associated with the usage data.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setUsagePlanId(String usagePlanId)
The Id of the usage plan associated with the usage data.
usagePlanId
- The Id of the usage plan associated with the usage data.public String getUsagePlanId()
The Id of the usage plan associated with the usage data.
public GetUsageRequest withUsagePlanId(String usagePlanId)
The Id of the usage plan associated with the usage data.
usagePlanId
- The Id of the usage plan associated with the usage data.public void setKeyId(String keyId)
The Id of the API key associated with the resultant usage data.
keyId
- The Id of the API key associated with the resultant usage data.public String getKeyId()
The Id of the API key associated with the resultant usage data.
public GetUsageRequest withKeyId(String keyId)
The Id of the API key associated with the resultant usage data.
keyId
- The Id of the API key associated with the resultant usage data.public void setStartDate(String startDate)
The starting date (e.g., 2016-01-01) of the usage data.
startDate
- The starting date (e.g., 2016-01-01) of the usage data.public String getStartDate()
The starting date (e.g., 2016-01-01) of the usage data.
public GetUsageRequest withStartDate(String startDate)
The starting date (e.g., 2016-01-01) of the usage data.
startDate
- The starting date (e.g., 2016-01-01) of the usage data.public void setEndDate(String endDate)
The ending date (e.g., 2016-12-31) of the usage data.
endDate
- The ending date (e.g., 2016-12-31) of the usage data.public String getEndDate()
The ending date (e.g., 2016-12-31) of the usage data.
public GetUsageRequest withEndDate(String endDate)
The ending date (e.g., 2016-12-31) of the usage data.
endDate
- The ending date (e.g., 2016-12-31) of the usage data.public void setPosition(String position)
The current pagination position in the paged result set.
position
- The current pagination position in the paged result set.public String getPosition()
The current pagination position in the paged result set.
public GetUsageRequest withPosition(String position)
The current pagination position in the paged result set.
position
- The current pagination position in the paged result set.public void setLimit(Integer limit)
The maximum number of returned results per page.
limit
- The maximum number of returned results per page.public Integer getLimit()
The maximum number of returned results per page.
public GetUsageRequest withLimit(Integer limit)
The maximum number of returned results per page.
limit
- The maximum number of returned results per page.public String toString()
toString
in class Object
Object.toString()
public GetUsageRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.