@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetReservationUtilizationRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
GetReservationUtilizationRequest() |
Modifier and Type | Method and Description |
---|---|
GetReservationUtilizationRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Expression |
getFilter()
Filters utilization data by using different dimensions.
|
String |
getGranularity()
Sets the AWS cost granularity to
MONTHLY or DAILY . |
List<GroupDefinition> |
getGroupBy()
Groups only by
SubscriptionId . |
String |
getNextPageToken()
The token to retrieve the next set of results.
|
DateInterval |
getTimePeriod()
Sets the start and end dates for retrieving reserve instance (RI) utilization.
|
int |
hashCode() |
void |
setFilter(Expression filter)
Filters utilization data by using different dimensions.
|
void |
setGranularity(String granularity)
Sets the AWS cost granularity to
MONTHLY or DAILY . |
void |
setGroupBy(Collection<GroupDefinition> groupBy)
Groups only by
SubscriptionId . |
void |
setNextPageToken(String nextPageToken)
The token to retrieve the next set of results.
|
void |
setTimePeriod(DateInterval timePeriod)
Sets the start and end dates for retrieving reserve instance (RI) utilization.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
GetReservationUtilizationRequest |
withFilter(Expression filter)
Filters utilization data by using different dimensions.
|
GetReservationUtilizationRequest |
withGranularity(Granularity granularity)
Sets the AWS cost granularity to
MONTHLY or DAILY . |
GetReservationUtilizationRequest |
withGranularity(String granularity)
Sets the AWS cost granularity to
MONTHLY or DAILY . |
GetReservationUtilizationRequest |
withGroupBy(Collection<GroupDefinition> groupBy)
Groups only by
SubscriptionId . |
GetReservationUtilizationRequest |
withGroupBy(GroupDefinition... groupBy)
Groups only by
SubscriptionId . |
GetReservationUtilizationRequest |
withNextPageToken(String nextPageToken)
The token to retrieve the next set of results.
|
GetReservationUtilizationRequest |
withTimePeriod(DateInterval timePeriod)
Sets the start and end dates for retrieving reserve instance (RI) utilization.
|
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 setTimePeriod(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
.
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
.public DateInterval getTimePeriod()
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 GetReservationUtilizationRequest withTimePeriod(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
.
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
.public List<GroupDefinition> getGroupBy()
Groups only by SubscriptionId
. Metadata is included.
SubscriptionId
. Metadata is included.public void setGroupBy(Collection<GroupDefinition> groupBy)
Groups only by SubscriptionId
. Metadata is included.
groupBy
- Groups only by SubscriptionId
. Metadata is included.public GetReservationUtilizationRequest withGroupBy(GroupDefinition... groupBy)
Groups only by SubscriptionId
. Metadata is included.
NOTE: This method appends the values to the existing list (if any). Use
setGroupBy(java.util.Collection)
or withGroupBy(java.util.Collection)
if you want to override
the existing values.
groupBy
- Groups only by SubscriptionId
. Metadata is included.public GetReservationUtilizationRequest withGroupBy(Collection<GroupDefinition> groupBy)
Groups only by SubscriptionId
. Metadata is included.
groupBy
- Groups only by SubscriptionId
. Metadata is included.public void setGranularity(String 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.
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.Granularity
public String getGranularity()
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.
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 GetReservationUtilizationRequest withGranularity(String 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.
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.Granularity
public GetReservationUtilizationRequest withGranularity(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.
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.Granularity
public void setFilter(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.
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.public Expression getFilter()
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 GetReservationUtilizationRequest withFilter(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.
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.public void setNextPageToken(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.
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 String getNextPageToken()
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 withNextPageToken(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.
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 String toString()
toString
in class Object
Object.toString()
public GetReservationUtilizationRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.