@Generated(value="software.amazon.awssdk:codegen") public final class GetReservationCoverageRequest extends CostExplorerRequest implements ToCopyableBuilder<GetReservationCoverageRequest.Builder,GetReservationCoverageRequest>
You can use the following request parameters to query for how much of your instance usage is covered by a reservation.
Modifier and Type | Class and Description |
---|---|
static interface |
GetReservationCoverageRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static GetReservationCoverageRequest.Builder |
builder() |
boolean |
equals(Object obj) |
Expression |
filter()
Filters utilization data by dimensions.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
Granularity |
granularity()
The granularity of the AWS cost data for the reservation.
|
String |
granularityAsString()
The granularity of the AWS cost data for the reservation.
|
List<GroupDefinition> |
groupBy()
You can group the data by the following attributes:
|
int |
hashCode() |
String |
nextPageToken()
The token to retrieve the next set of results.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends GetReservationCoverageRequest.Builder> |
serializableBuilderClass() |
DateInterval |
timePeriod()
The start and end dates of the period for which you want to retrieve data about reservation coverage.
|
GetReservationCoverageRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
overrideConfiguration
copy
public DateInterval timePeriod()
The start and end dates of the period for which you want to retrieve data about reservation coverage. You can
retrieve data for a maximum of 13 months: the last 12 months and the current month. The start date is inclusive,
but the end date is exclusive. For example, if start
is 2017-01-01
and end
is 2017-05-01
, then the cost and usage data is retrieved from 2017-01-01
up to and
including 2017-04-30
but not including 2017-05-01
.
start
is 2017-01-01
and end
is 2017-05-01
, then the cost and usage data is retrieved from
2017-01-01
up to and including 2017-04-30
but not including
2017-05-01
.public List<GroupDefinition> groupBy()
You can group the data by the following attributes:
AZ
CACHE_ENGINE
DATABASE_ENGINE
DEPLOYMENT_OPTION
INSTANCE_TYPE
LINKED_ACCOUNT
OPERATING_SYSTEM
PLATFORM
REGION
TAG
TENANCY
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
AZ
CACHE_ENGINE
DATABASE_ENGINE
DEPLOYMENT_OPTION
INSTANCE_TYPE
LINKED_ACCOUNT
OPERATING_SYSTEM
PLATFORM
REGION
TAG
TENANCY
public Granularity granularity()
The granularity of the AWS cost data for the reservation. Valid values are MONTHLY
and
DAILY
.
If GroupBy
is set, Granularity
can't be set. If Granularity
isn't set, the
response object doesn't include Granularity
, either MONTHLY
or DAILY
.
If the service returns an enum value that is not available in the current SDK version, granularity
will
return Granularity.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
granularityAsString()
.
MONTHLY
and
DAILY
.
If GroupBy
is set, Granularity
can't be set. If Granularity
isn't
set, the response object doesn't include Granularity
, either MONTHLY
or
DAILY
.
Granularity
public String granularityAsString()
The granularity of the AWS cost data for the reservation. Valid values are MONTHLY
and
DAILY
.
If GroupBy
is set, Granularity
can't be set. If Granularity
isn't set, the
response object doesn't include Granularity
, either MONTHLY
or DAILY
.
If the service returns an enum value that is not available in the current SDK version, granularity
will
return Granularity.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
granularityAsString()
.
MONTHLY
and
DAILY
.
If GroupBy
is set, Granularity
can't be set. If Granularity
isn't
set, the response object doesn't include Granularity
, either MONTHLY
or
DAILY
.
Granularity
public Expression filter()
Filters utilization data by dimensions. You can filter by the following dimensions:
AZ
CACHE_ENGINE
DATABASE_ENGINE
DEPLOYMENT_OPTION
INSTANCE_TYPE
LINKED_ACCOUNT
OPERATING_SYSTEM
PLATFORM
REGION
SERVICE
TAG
TENANCY
GetReservationCoverage
uses the same
Expression
object as the other operations, but only AND
is supported among each dimension. You can nest only
one level deep. If there are multiple values for a dimension, they are OR'd together.
If you don't provide a SERVICE
filter, Cost Explorer defaults to EC2.
AZ
CACHE_ENGINE
DATABASE_ENGINE
DEPLOYMENT_OPTION
INSTANCE_TYPE
LINKED_ACCOUNT
OPERATING_SYSTEM
PLATFORM
REGION
SERVICE
TAG
TENANCY
GetReservationCoverage
uses the same
Expression
object as the other operations, but only AND
is supported among each dimension. You can nest
only one level deep. If there are multiple values for a dimension, they are OR'd together.
If you don't provide a SERVICE
filter, Cost Explorer defaults to EC2.
public String nextPageToken()
The token to retrieve the next set of results. AWS provides the token when the response from a previous call has more results than the maximum page size.
public GetReservationCoverageRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<GetReservationCoverageRequest.Builder,GetReservationCoverageRequest>
toBuilder
in class CostExplorerRequest
public static GetReservationCoverageRequest.Builder builder()
public static Class<? extends GetReservationCoverageRequest.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.