@Generated(value="software.amazon.awssdk:codegen") public final class GetUsageRequest extends ApiGatewayRequest implements ToCopyableBuilder<GetUsageRequest.Builder,GetUsageRequest>
The GET request to get the usage data of a usage plan in a specified time interval.
Modifier and Type | Class and Description |
---|---|
static interface |
GetUsageRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static GetUsageRequest.Builder |
builder() |
String |
endDate()
[Required] The ending date (e.g., 2016-12-31) of the usage data.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
String |
keyId()
The Id of the API key associated with the resultant usage data.
|
Integer |
limit()
The maximum number of returned results per page.
|
String |
position()
The current pagination position in the paged result set.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends GetUsageRequest.Builder> |
serializableBuilderClass() |
String |
startDate()
[Required] The starting date (e.g., 2016-01-01) of the usage data.
|
GetUsageRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
usagePlanId()
[Required] The Id of the usage plan associated with the usage data.
|
overrideConfiguration
copy
public String usagePlanId()
[Required] The Id of the usage plan associated with the usage data.
public String keyId()
The Id of the API key associated with the resultant usage data.
public String startDate()
[Required] The starting date (e.g., 2016-01-01) of the usage data.
public String endDate()
[Required] The ending date (e.g., 2016-12-31) of the usage data.
public String position()
The current pagination position in the paged result set.
public Integer limit()
The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
public GetUsageRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<GetUsageRequest.Builder,GetUsageRequest>
toBuilder
in class ApiGatewayRequest
public static GetUsageRequest.Builder builder()
public static Class<? extends GetUsageRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.