@Generated(value="software.amazon.awssdk:codegen") public class GetReservationUtilizationRequest extends CostExplorerRequest implements ToCopyableBuilder<GetReservationUtilizationRequest.Builder,GetReservationUtilizationRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
GetReservationUtilizationRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static GetReservationUtilizationRequest.Builder |
builder() |
boolean |
equals(Object obj) |
Expression |
filter()
Filters utilization data by using different 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()
Sets the AWS cost granularity to
MONTHLY or DAILY . |
String |
granularityString()
Sets the AWS cost granularity to
MONTHLY or DAILY . |
List<GroupDefinition> |
groupBy()
Groups only by
SubscriptionId . |
int |
hashCode() |
String |
nextPageToken()
The token to retrieve the next set of results.
|
static Class<? extends GetReservationUtilizationRequest.Builder> |
serializableBuilderClass() |
DateInterval |
timePeriod()
Sets the start and end dates for retrieving reserve instance (RI) utilization.
|
GetReservationUtilizationRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
requestOverrideConfig
copy
public DateInterval timePeriod()
Sets the start and end dates for retrieving reserve instance (RI) utilization. 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()
Groups only by SubscriptionId
. Metadata is included.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
SubscriptionId
. Metadata is included.public Granularity granularity()
Sets the AWS cost granularity to MONTHLY
or DAILY
. If both GroupBy
and
granularity
are not set, GetReservationUtilization
defaults to DAILY
. If
GroupBy
is set, Granularity
can't be set, and the response object doesn't include
MONTHLY
or DAILY
granularity.
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
granularityString()
.
MONTHLY
or DAILY
. If both GroupBy
and granularity
are not set, GetReservationUtilization
defaults to
DAILY
. If GroupBy
is set, Granularity
can't be set, and the
response object doesn't include MONTHLY
or DAILY
granularity.Granularity
public String granularityString()
Sets the AWS cost granularity to MONTHLY
or DAILY
. If both GroupBy
and
granularity
are not set, GetReservationUtilization
defaults to DAILY
. If
GroupBy
is set, Granularity
can't be set, and the response object doesn't include
MONTHLY
or DAILY
granularity.
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
granularityString()
.
MONTHLY
or DAILY
. If both GroupBy
and granularity
are not set, GetReservationUtilization
defaults to
DAILY
. If GroupBy
is set, Granularity
can't be set, and the
response object doesn't include MONTHLY
or DAILY
granularity.Granularity
public Expression filter()
Filters utilization data by using different dimensions. GetReservationUtilization
uses the same
Expression
object as the other operations, but only AND
is supported among each
dimension, and nesting is supported up to only one level deep. If there are multiple values for a dimension, they
are OR'd together.
GetReservationUtilization
uses the
same Expression
object as the other operations, but only AND
is supported among
each dimension, and nesting is supported up to only one level deep. If there are multiple values for a
dimension, they are OR'd together.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 GetReservationUtilizationRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<GetReservationUtilizationRequest.Builder,GetReservationUtilizationRequest>
toBuilder
in class CostExplorerRequest
public static GetReservationUtilizationRequest.Builder builder()
public static Class<? extends GetReservationUtilizationRequest.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.